/*
 * Sellpin theme.
 *
 * Same identity as the app: indigo-dye ink, market marigold, the woven
 * "wax" fringe and the Paid stamp. The home page reads like a market
 * poster: one marigold block, big type, a real phone, then quiet ruled
 * rows like an order book. Few boxes, few borders, no decoration for its
 * own sake.
 */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
}

/* ---------- Tokens (kept in step with the plugin's app.css) ---------- */
:root {
	--paper: #F6F3EE;
	--surface: #FFFFFF;
	--surface-2: #EFEBE3;
	--line: #E2DCD0;
	--line-strong: #CFC7B8;
	--ink: #1E1C33;
	--ink-2: #4E4B66;
	--ink-3: #6E6A84;
	--accent: #E9A21B;
	--accent-strong: #C98400;
	--accent-ink: #1E1C33;
	--accent-soft: #FBEBC8;
	--good: #1E7A50;
	--good-soft: #DDF0E6;
	--warn: #9A5300;
	--warn-soft: #FCE9D4;
	--bad: #B3261E;
	--focus: #2F3AA8;
	--band: #1E1C33;
	--band-ink: #F3EFE6;
	--band-ink-2: #C9C4D8;
	--hero-bg: #E9A21B;
	--hero-ink: #1E1C33;
	--hero-ink-2: #3B2E14;
	--hero-btn-bg: #1E1C33;
	--hero-btn-fg: #F6F3EE;
	--wa: #0B7A3E;
	--wa-ink: #FFFFFF;
	--wa-bubble: #DCF5D0;
	--chat-bg: #EFE7DC;
	--shadow-1: 0 1px 0 rgba(30, 28, 51, .05), 0 1px 3px rgba(30, 28, 51, .07);
	--shadow-2: 0 24px 60px -12px rgba(30, 28, 51, .28);
	--radius-s: 10px;
	--radius: 14px;
	--radius-l: 22px;
	--display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--wrap: 1180px;
	--gutter: 20px;
	--header-h: 64px;
	--wax: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 7 0l7 14z' fill='%23E9A21B'/%3E%3Cpath d='M14 14 21 4l7 10z' fill='%23E9A21B' opacity='.55'/%3E%3Ccircle cx='21' cy='2' r='1.4' fill='%23E9A21B'/%3E%3C/svg%3E");
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #15142A;
		--surface: #1F1E38;
		--surface-2: #282744;
		--line: #34335A;
		--line-strong: #47466F;
		--ink: #F3EFE6;
		--ink-2: #C9C4D8;
		--ink-3: #A29DB7;
		--accent: #F0B03A;
		--accent-strong: #F6C25E;
		--accent-ink: #1A1830;
		--accent-soft: #3B3320;
		--good: #5CC795;
		--good-soft: #1C3A30;
		--warn: #F2A65A;
		--warn-soft: #3D2C1E;
		--bad: #F28B82;
		--focus: #9DA8FF;
		--band: #100F22;
		--hero-bg: #100F22;
		--hero-ink: #F3EFE6;
		--hero-ink-2: #C9C4D8;
		--hero-btn-bg: #F0B03A;
		--hero-btn-fg: #1A1830;
		--wa: #3FCB7E;
		--wa-ink: #0D1F15;
		--wa-bubble: #1F4A35;
		--chat-bg: #1A1930;
		--shadow-1: 0 1px 0 rgba(0, 0, 0, .3);
		--shadow-2: 0 24px 60px -12px rgba(0, 0, 0, .7);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #15142A;
	--surface: #1F1E38;
	--surface-2: #282744;
	--line: #34335A;
	--line-strong: #47466F;
	--ink: #F3EFE6;
	--ink-2: #C9C4D8;
	--ink-3: #A29DB7;
	--accent: #F0B03A;
	--accent-strong: #F6C25E;
	--accent-ink: #1A1830;
	--accent-soft: #3B3320;
	--good: #5CC795;
	--good-soft: #1C3A30;
	--warn: #F2A65A;
	--warn-soft: #3D2C1E;
	--bad: #F28B82;
	--focus: #9DA8FF;
	--band: #100F22;
	--hero-bg: #100F22;
	--hero-ink: #F3EFE6;
	--hero-ink-2: #C9C4D8;
	--hero-btn-bg: #F0B03A;
	--hero-btn-fg: #1A1830;
	--wa: #3FCB7E;
	--wa-ink: #0D1F15;
	--wa-bubble: #1F4A35;
	--chat-bg: #1A1930;
	--shadow-1: 0 1px 0 rgba(0, 0, 0, .3);
	--shadow-2: 0 24px 60px -12px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
	background: var(--paper);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
button, input, textarea, select { font: inherit; color: inherit; }
:where(svg[aria-hidden]) { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.sr-only, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-s);
	font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }

.h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.3rem); letter-spacing: -.03em; }
.h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: -.03em; }
.h3 { font-size: 1.3rem; }
.h4 { font-size: 1.08rem; letter-spacing: -.005em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.link { color: inherit; font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Buttons (same shape as the app's) ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: 0 20px; border-radius: 12px;
	border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
	font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform .12s var(--ease), background-color .15s, border-color .15s, opacity .15s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 700; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 700; }
.btn-ink:hover { border-color: var(--ink); opacity: .9; }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { border-color: var(--wa); opacity: .92; }
.btn .ico { width: 1.15em; height: 1.15em; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--paper); color: var(--ink);
	transition: background-color .2s, box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__in { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }

/* On the home page the header sits on the marigold poster until you scroll. */
.home .site-header:not(.is-stuck) { background: var(--hero-bg); color: var(--hero-ink); }
.home .site-header:not(.is-stuck) .nav__list a { color: var(--hero-ink); }
.home .site-header:not(.is-stuck) .nav__list a:hover { background: color-mix(in srgb, var(--hero-ink) 10%, transparent); }
.home .site-header:not(.is-stuck) .btn-ghost { border-color: color-mix(in srgb, var(--hero-ink) 40%, transparent); color: var(--hero-ink); }
.home .site-header:not(.is-stuck) .btn-primary { background: var(--hero-btn-bg); border-color: var(--hero-btn-bg); color: var(--hero-btn-fg); }
.home .site-header:not(.is-stuck) .brand { color: var(--hero-ink); }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__name { font: 750 1.32rem/1 var(--display); letter-spacing: -.03em; }
.mark { width: 32px; height: 32px; }
.custom-logo { max-height: 40px; width: auto; }
.custom-logo-link { display: inline-flex; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
	color: var(--ink-2); font-weight: 500; text-decoration: none;
}
.nav__list a:hover, .nav__list .current_page_item > a, .nav__list .current_page_parent > a { color: var(--ink); background: var(--surface-2); }
.nav__actions { display: flex; gap: 8px; margin-left: 12px; }
.nav__actions .btn { min-height: 44px; padding: 0 16px; }
.site-header__tools { display: flex; align-items: center; gap: 2px; }
.nav-toggle { display: none; }
.nav-toggle__open { display: inline-grid; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-grid; }

@media (max-width: 900px) {
	.site-header__tools { order: 2; }
	.js .nav-toggle { display: inline-grid; }
	.js .nav {
		position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 8px var(--gutter) 24px; background: var(--paper); color: var(--ink);
		border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .25);
		max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
	}
	.admin-bar.js .nav { top: calc(var(--header-h) + 46px); }
	.js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s var(--ease); }
	.js .nav__list { flex-direction: column; }
	.js .nav__list a {
		display: flex; min-height: 54px; font: 650 1.35rem/1 var(--display); letter-spacing: -.02em; padding: 0 4px; color: var(--ink);
		border-bottom: 1px solid var(--line); border-radius: 0;
	}
	.js .nav__actions { flex-direction: column; margin: 8px 0 0; }
	.js .nav__actions .btn { min-height: 52px; }
	.js .nav.is-open .btn-ghost { border-color: var(--line-strong) !important; color: var(--ink) !important; }
	.js .nav.is-open .btn-primary { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important; }
	html:not(.js) .site-header__in { flex-wrap: wrap; padding-block: 8px; }
	html:not(.js) .nav { order: 3; width: 100%; flex-wrap: wrap; }
	html:not(.js) .nav__actions { margin-left: 0; }
}
@media (max-width: 600px) { .admin-bar.js .nav { top: var(--header-h); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 4vw + 32px, 112px); }
.prose { max-width: 70ch; }

/* ---------- Hero: the marigold poster ---------- */
.hero {
	--tail: 120px;
	position: relative; overflow: hidden;
	color: var(--hero-ink);
	background: linear-gradient(to bottom, var(--hero-bg) calc(100% - var(--tail)), var(--paper) 0);
	padding: clamp(20px, 3vw, 56px) 0 28px;
}
/* Woven fringe where the poster meets the page */
.hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--tail) - 14px); height: 14px;
	background: var(--wax) repeat-x; transform: scaleY(-1);
}
:root[data-theme="dark"] .hero::after { bottom: calc(var(--tail) - 1px); transform: none; opacity: .9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero::after { bottom: calc(var(--tail) - 1px); transform: none; opacity: .9; } }

.hero__in { position: relative; z-index: 1; display: grid; gap: 36px; align-items: end; }
@media (min-width: 960px) {
	.hero { --tail: 150px; }
	.hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
	.hero__copy { padding-bottom: calc(var(--tail) + 56px); }
}
.hero__title {
	font-size: clamp(3rem, 1.5rem + 6.4vw, 6rem); line-height: .94; letter-spacing: -.045em; font-weight: 800;
	max-width: 11ch;
}
.hero__text { margin: 22px 0 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--hero-ink-2); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.btn-hero { background: var(--hero-btn-bg); border-color: var(--hero-btn-bg); color: var(--hero-btn-fg); font-family: var(--display); font-weight: 700; }
.btn-hero:hover { border-color: var(--hero-btn-bg); opacity: .92; }
.hero__link { font-weight: 600; color: var(--hero-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
.hero__note { margin: 16px 0 0; font-size: .95rem; color: var(--hero-ink-2); }

/* The phone */
.hero__stage { margin: 0; display: flex; justify-content: center; }
@media (min-width: 960px) { .hero__stage { justify-content: flex-end; } }
.phone {
	position: relative; width: 300px; max-width: 82vw; aspect-ratio: 300 / 600;
	padding: 10px; border-radius: 48px; background: #0F0E1E;
	box-shadow: var(--shadow-2), inset 0 0 0 2px #2B2A44;
}
.phone__screen {
	position: relative; height: 100%; overflow: hidden; border-radius: 38px;
	background: var(--chat-bg); color: var(--ink); font-size: 13px; line-height: 1.38;
}
@media (min-width: 960px) { .phone { width: 340px; } .phone__screen { font-size: 14px; } }
.phone__bar { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 24px; font: 600 12px/1 var(--body); }
.phone__bar i { width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid currentColor; position: relative; }
.phone__bar i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.phone__bar::before { content: ""; position: absolute; left: 50%; top: 9px; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #0F0E1E; }

.chat { padding: 4px 12px; display: flex; flex-direction: column; gap: 6px; }
.chat__who { display: flex; align-items: center; gap: 9px; margin: 0 -12px 6px; padding: 6px 14px 10px; border-bottom: 1px solid var(--line); }
.chat__who b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 11px/1 var(--display); }
.chat__who span { display: flex; flex-direction: column; font-weight: 600; }
.chat__who small { font-weight: 400; color: var(--ink-3); font-size: 11px; }
.bubble {
	margin: 0; padding: 7px 10px; max-width: 84%; border-radius: 12px; border-top-left-radius: 3px;
	background: var(--surface); box-shadow: var(--shadow-1); align-self: flex-start;
}
.bubble--me { align-self: flex-end; background: var(--wa-bubble); border-radius: 12px; border-top-right-radius: 3px; }
.chat .bubble { animation: pop .4s var(--ease) both; animation-delay: calc(.4s + var(--d, 0) * .5s); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }

.sheet {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px 20px;
	background: var(--surface); border-radius: 22px 22px 0 0;
	box-shadow: 0 -10px 30px rgba(15, 14, 30, .18);
	animation: sheet-up .55s var(--ease) both; animation-delay: 2.7s;
}
@keyframes sheet-up { from { transform: translateY(105%); } }
.sheet__grip { display: block; width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: var(--line-strong); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.sheet__head b { font: 750 17px/1 var(--display); letter-spacing: -.01em; }
.sheet__who { margin: 0 0 10px; font-weight: 600; }
.sheet__who span { display: block; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sheet__lines { margin: 0 0 10px; padding-top: 8px; border-top: 1.5px dashed var(--line-strong); }
.sheet__lines div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.sheet__lines dt { color: var(--ink-2); }
.sheet__lines dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.sheet__total { margin-top: 6px; padding-top: 7px !important; border-top: 1px solid var(--line); }
.sheet__total dt { color: var(--ink); font-weight: 700; }
.sheet__total dd { font: 750 18px/1 var(--display); }
.sheet__ref { display: flex; justify-content: space-between; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); }
.sheet__ref b { color: var(--ink); font-family: var(--mono); letter-spacing: .06em; }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }

.notif {
	position: absolute; left: 8px; right: 8px; top: 38px; margin: 0; padding: 10px 12px;
	border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px rgba(15, 14, 30, .22); font-size: 12px; color: var(--ink-2);
	animation: drop .5s var(--ease) both; animation-delay: 4.2s;
}
.notif b { display: block; color: var(--ink); font-size: 12px; margin-bottom: 2px; }
@keyframes drop { from { opacity: 0; transform: translateY(-120%); } }

.stamp {
	position: absolute; right: 14px; top: 62px;
	padding: 5px 12px; border: 3px solid var(--good); border-radius: 8px; color: var(--good);
	font: 800 22px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
	transform: rotate(-12deg); background: color-mix(in srgb, var(--surface) 80%, transparent);
	animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: 5s;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } 60% { opacity: 1; } }

.hero__stage.is-replay * { animation: none !important; }

/* ---------- How it works: four moments as tabs ---------- */
.scenes__title { max-width: 16ch; margin-bottom: clamp(28px, 3vw, 56px); }
.scenes__grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .scenes__grid.is-ready { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; } }

.scenes__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.scenes__tabs[hidden] { display: none; }
.tab {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 2px 12px; margin: 0;
	border: 0; border-bottom: 2px solid var(--line); background: none; color: var(--ink-3); text-align: left; cursor: pointer;
	font: 600 .95rem/1.2 var(--body);
	transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab__num { font: 500 .8rem/1 var(--mono); color: var(--ink-3); }
.tab[aria-selected="true"] .tab__num { color: var(--warn); }
.tab__body { display: none; }

@media (min-width: 900px) {
	.scenes__tabs { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
	.tab { flex-direction: row; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
	.tab[aria-selected="true"] { border-bottom-color: var(--line); }
	.tab__num { padding-top: .45em; min-width: 2ch; }
	.tab__short { display: none; }
	.tab__body { display: block; }
	.tab__title { display: block; font: 700 clamp(1.3rem, 1rem + .8vw, 1.65rem)/1.15 var(--display); letter-spacing: -.02em; }
	.tab__text { display: none; margin-top: 10px; color: var(--ink-2); font-weight: 400; font-size: 1.02rem; line-height: 1.55; max-width: 46ch; }
	.tab[aria-selected="true"] .tab__text { display: block; animation: fade .3s var(--ease); }
	.is-ready .scene__copy { display: none; }
}
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

.scene + .scene { margin-top: 40px; }
.is-ready .scene + .scene { margin-top: 0; }
.scene[hidden] { display: none; }
.scene__copy { margin-bottom: 18px; }
.scene__title { font-size: 1.35rem; margin-bottom: 8px; }
.scene__title span { font: 500 .85rem/1 var(--mono); color: var(--warn); margin-right: 10px; vertical-align: .2em; }
.is-ready .scene__title { display: none; }
.scene__copy p { margin: 0; color: var(--ink-2); }

/* The stage looks like a page from an order book. */
.scene__stage {
	display: grid; place-items: center; min-height: 400px; padding: 28px 20px; border-radius: var(--radius-l);
	background:
		repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--line-strong) 45%, transparent) 31px 32px),
		var(--surface-2);
	overflow: hidden;
}
@media (min-width: 900px) { .scene__stage { min-height: 500px; } }
.is-ready .scene { animation: fade .3s var(--ease); }

/* App screens */
.scr {
	width: min(340px, 100%); padding: 16px; border-radius: 18px; background: var(--surface);
	border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: .9rem; line-height: 1.4;
	display: flex; flex-direction: column; gap: 8px;
}
.scr__head { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.scr__head b { font: 750 1.08rem/1.1 var(--display); letter-spacing: -.01em; }
.scr__sub { margin: -2px 0 2px; color: var(--ink-3); font-size: .82rem; }
.fld { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fld span { font-size: .74rem; font-weight: 600; color: var(--ink-2); }
.fld b { display: block; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fld--warn b { border-color: var(--warn); background: var(--warn-soft); }
.fld-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px 56px; gap: 6px; }
.scr__btn {
	display: flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 4px; border-radius: 11px;
	background: var(--accent); color: var(--accent-ink); font: 700 .95rem/1 var(--display);
}
.scr__btn--wa { background: var(--wa); color: var(--wa-ink); font-family: var(--body); font-weight: 600; }
.scr__sms { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font: .8rem/1.5 var(--mono); color: var(--ink-2); }
.scr__sms::first-line { color: var(--ink); }
.match { margin-top: 4px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--good); background: var(--good-soft); }
.match__tag { margin: 0 0 6px; color: var(--good); font-weight: 700; font-size: .8rem; }
.match__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.match__row small { display: block; font-weight: 400; color: var(--ink-2); font-size: .8rem; }
.match__row b { font: 750 1.15rem/1 var(--display); }
.scr__fine { margin: 2px 0 0; font-size: .78rem; color: var(--ink-3); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dots i.on { background: var(--good); }
.checks { list-style: none; margin: 4px 0 0; padding: 0; }
.checks li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.checks li::after { font-weight: 700; }
.checks .ok::after { content: "✓"; color: var(--good); }
.checks .no::after { content: "✕"; color: var(--bad); }
.scr__warn { margin: 4px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: .82rem; font-weight: 500; }
.scr .bubble { margin-top: 6px; font-size: .84rem; max-width: 92%; }
.scr__big { margin: 0 0 4px; font: 750 1.5rem/1 var(--display); letter-spacing: -.02em; }
.collect { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.collect b { font: 800 1.3rem/1 var(--display); }
.place { margin: 2px 0 0; color: var(--ink-2); }
.place b { display: block; color: var(--ink); font-family: var(--mono); letter-spacing: .04em; }
.steps-mini { display: grid; gap: 8px; margin-top: 4px; }
.steps-mini .done { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--good-soft); color: var(--good); font-weight: 600; font-size: .85rem; }
.steps-mini .done::before { content: "✓"; }
.steps-mini .scr__btn { margin: 0; }

/* ---------- Made for Ghana: one paragraph, the real words ---------- */
.ghana { border-top: 1px solid var(--line); }
.ghana__label { margin-bottom: 20px; font: 600 1rem/1.3 var(--display); letter-spacing: 0; color: var(--ink-3); }
.ghana__say {
	margin: 0; max-width: 28ch; font: 600 clamp(1.6rem, 1.05rem + 2.4vw, 2.9rem)/1.28 var(--display); letter-spacing: -.025em;
	text-wrap: pretty;
}
.tok {
	display: inline; padding: .02em .3em; border-radius: 8px; white-space: nowrap;
	font: 500 .7em/1 var(--mono); letter-spacing: -.02em; vertical-align: .1em;
	background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong), 0 2px 0 var(--accent);
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tok--no { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* ---------- Band: privacy and the price receipt ---------- */
.band { position: relative; background: var(--band); color: var(--band-ink); padding-block: clamp(64px, 5vw + 36px, 120px); }
.band::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: var(--wax) repeat-x; }
.band__in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) { .band__in { grid-template-columns: 1fr minmax(0, 400px); gap: 80px; } }
.band__trust .h2 { max-width: 14ch; }
.band__trust p { margin: 18px 0 18px; color: var(--band-ink-2); font-size: 1.12rem; max-width: 44ch; }
.band__link { color: var(--band-ink); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.band--solo .band__in { grid-template-columns: 1fr auto; }

.receipt {
	--edge: radial-gradient(circle at 7px 0, transparent 6px, #000 6.5px) 0 0 / 14px 100% repeat-x;
	position: relative; padding: 30px 26px 30px; color: #1E1C33; background: #F6F3EE;
	transform: rotate(-1.5deg);
	-webkit-mask: radial-gradient(circle 6px at 7px 0, transparent 98%, #000) 0 0 / 14px 51% repeat-x, radial-gradient(circle 6px at 7px 100%, transparent 98%, #000) 0 100% / 14px 51% repeat-x;
	mask: radial-gradient(circle 6px at 7px 0, transparent 98%, #000) 0 0 / 14px 51% repeat-x, radial-gradient(circle 6px at 7px 100%, transparent 98%, #000) 0 100% / 14px 51% repeat-x;
	filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35));
}
.receipt__shop { margin: 0 0 4px; font: 600 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6E6A84; text-align: center; }
.receipt__title { margin: 0 0 18px; font: 800 1.9rem/1.05 var(--display); letter-spacing: -.03em; text-align: center; }
.receipt__lines { margin: 0 0 16px; padding: 14px 0 0; border-top: 1.5px dashed #CFC7B8; font: .9rem/1.4 var(--mono); }
.receipt__lines div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.receipt__lines dd { margin: 0; }
.receipt__total { margin-top: 10px; padding-top: 12px !important; border-top: 1.5px dashed #CFC7B8; font-weight: 700; }
.receipt__total dd { font: 800 1.6rem/1 var(--display); }
.receipt__note { margin: 0 0 18px; font-size: .92rem; color: #4E4B66; }
.receipt .btn-ink { background: #1E1C33; border-color: #1E1C33; color: #F6F3EE; }

/* ---------- FAQ: ruled rows ---------- */
.faq__in { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq__in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.faq .h2 { max-width: 12ch; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
	position: relative; display: block; padding: 20px 44px 20px 0; cursor: pointer; list-style: none;
	font: 650 1.12rem/1.35 var(--display); letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--ink-2);
	transition: transform .2s var(--ease);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa summary:hover { color: var(--ink); }
.qa p { margin: 0; padding: 0 0 22px; color: var(--ink-2); max-width: 60ch; }
.faq__more { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; }
.faq__more .link { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: 44px; font-size: .95rem; }
.site-footer__in { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 760px) { .site-footer__in { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } .site-footer__brand { grid-column: auto; } }
.site-footer__note { margin: 12px 0 0; color: var(--ink-3); max-width: 30ch; }
.site-footer__h { margin-bottom: 8px; font: 600 .9rem/1.2 var(--body); color: var(--ink-3); letter-spacing: 0; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list a { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; color: var(--ink); text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site-footer__list .ico { color: var(--ink-3); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-block: 18px 24px; color: var(--ink-3); font-size: .88rem; background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.site-footer__base p { margin: 0; }
.site-footer__base a { color: inherit; }
.weave { height: 14px; background: var(--wax) repeat-x; }

.wa-float {
	position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
	display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
	background: var(--wa); color: var(--wa-ink); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-2);
}
.wa-float .ico { width: 24px; height: 24px; }
@media (max-width: 480px) { .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .wa-float { padding: 0; width: 56px; height: 56px; justify-content: center; } }

/* ---------- Inner pages ---------- */
.inner { padding-block: clamp(40px, 4vw + 20px, 88px); }
.page__head { margin-bottom: clamp(28px, 3vw, 48px); }
.page__head .lead { margin-top: 12px; }
.page__head .searchform { margin-top: 20px; }
.article { max-width: calc(760px + var(--gutter) * 2); }
.article__head .h1 { max-width: 22ch; }
.article__head .post-meta { margin-top: 14px; }
.article__img { margin: 0 0 36px; }
.article__img img { border-radius: var(--radius-l); width: 100%; }
.post-tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.post-meta { margin: 0; color: var(--ink-3); font-size: .92rem; }

.cards { border-top: 1px solid var(--line); }
.card { position: relative; display: grid; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.card.has-post-thumbnail { grid-template-columns: minmax(0, 1fr) 120px; align-items: start; }
@media (min-width: 720px) { .card.has-post-thumbnail { grid-template-columns: minmax(0, 1fr) 220px; } }
.card__img { order: 2; }
.card__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.card__title { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); letter-spacing: -.025em; margin-bottom: 8px; max-width: 30ch; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.card__title a:focus-visible { outline: none; }
.card__text { margin: 10px 0 0; color: var(--ink-2); max-width: 62ch; }
.card.sticky .card__title::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: .15em; }

.empty { padding: 32px 0; border-top: 1px solid var(--line); }
.empty .h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-2); }

.pagination, .post-navigation { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-numbers.dots { border: 0; background: none; }
.post-navigation .nav-links { display: grid; gap: 12px; justify-content: stretch; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } .post-navigation .nav-next { text-align: right; grid-column: 2; } }
.post-navigation a { display: block; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.post-navigation a:hover { border-color: var(--line-strong); }
.post-nav__label { display: block; color: var(--ink-3); font-size: .85rem; margin-bottom: 4px; }
.post-nav__title { font-weight: 600; }

.note-cta {
	display: grid; gap: 18px; align-items: center; margin-top: 56px; padding: 26px 28px; border-radius: var(--radius-l);
	background: var(--band); color: var(--band-ink); position: relative; overflow: hidden;
}
.note-cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--wax) repeat-x; background-size: 20px 10px; }
@media (min-width: 640px) { .note-cta { grid-template-columns: 1fr auto; } }
.note-cta__title { margin: 0 0 4px; font: 700 1.25rem/1.2 var(--display); }
.note-cta p:last-child { margin: 0; color: var(--band-ink-2); }

/* Help page */
.help__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .help__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; } .help__side { position: sticky; top: calc(var(--header-h) + 24px); } }
.help__main h2#questions { margin-top: 2.2em; }
.help__main .faq__list { margin-top: 18px; }
.help__card { padding: 22px 0 0; border-top: 3px solid var(--accent); display: grid; gap: 10px; }
.help__card .h3 { margin: 0; }
.help__card p { margin: 0 0 6px; color: var(--ink-2); }
.help__app { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.help__app .ico { color: var(--ink); }

/* 404 */
.lost { text-align: center; display: flex; flex-direction: column; align-items: center; }
.lost__code { margin: 0 0 8px; font: 800 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.lost .h1 { max-width: 20ch; }
.lost .lead { margin: 16px auto 0; }
.lost .hero__actions { justify-content: center; }
.lost .searchform { margin-top: 40px; width: min(440px, 100%); }

/* Search */
.searchform { display: flex; gap: 8px; max-width: 520px; }
.searchform__input {
	flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border-radius: 12px;
	border: 1.5px solid var(--line-strong); background: var(--surface);
}
.searchform__input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.searchform__btn { width: 50px; min-height: 50px; padding: 0; }

/* ---------- Prose (post content, block editor output) ---------- */
.prose { font-size: 1.1rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: inherit; font-weight: 500; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent-strong); }
.prose blockquote, .prose .wp-block-quote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-size: 1.2rem; color: var(--ink-2); }
.prose cite { display: block; margin-top: 8px; font-size: .95rem; font-style: normal; color: var(--ink-3); }
.prose img, .prose .wp-block-image img { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; font-size: .9rem; color: var(--ink-3); text-align: center; }
.prose hr, .prose .wp-block-separator { border: 0; height: 14px; background: var(--wax) repeat-x; opacity: .7; margin-block: 2.4em; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: .9em; }
.prose pre { padding: 18px; border-radius: var(--radius); background: var(--surface-2); overflow-x: auto; font-size: .92rem; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-weight: 700; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-button__link, .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
	background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.prose .is-style-outline .wp-block-button__link { background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink); }
.prose .has-text-align-center { text-align: center; }
.alignwide { max-width: min(1000px, 100%); }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; display: block; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, .gallery-caption { font-size: .9rem; color: var(--ink-3); }
.bypostauthor { display: block; }
.page-links { margin-top: 2em; display: flex; gap: 8px; }

/* Comments */
.comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments__list { list-style: none; padding: 0; margin: 20px 0 40px; }
.comments__list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .85rem; color: var(--ink-3); margin: 4px 0 10px; }
.comment-metadata a { color: inherit; }
.comment-respond label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
	width: 100%; padding: 12px 14px; border-radius: var(--radius-s); border: 1.5px solid var(--line-strong); background: var(--surface);
}
.comment-respond textarea { min-height: 140px; }
.comment-form > p { margin: 0 0 16px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }


/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .wa-float, .note-cta, .comments, .weave { display: none !important; }
	body { background: #fff; color: #000; }
}
