/*
Theme Name: Bizzlet Light
Theme URI: https://bizzlet.app/
Author: Bizzlet
Description: Clean, product-led launch theme for the Bizzlet progressive web app.
Version: 3.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: bizzlet-light
*/

/*
 * System
 * - One light theme. Forest green is the only dark surface (hero panel, trial panel, footer).
 * - Leaf green is the action colour (buttons, links, icons). Lime is a highlight only.
 * - Shape: interactive controls are pills; containers use --r-lg (24px) or --r-md (14px).
 * - Motion: one fade-up on enter, plus the install and steps sequences that explain a flow.
 */
:root {
	--canvas: var(--wp--preset--color--canvas, #f4f7f1);
	--surface: var(--wp--preset--color--surface, #fcfdfb);
	--mist: var(--wp--preset--color--mist, #e4f0d6);
	--sage: var(--wp--preset--color--sage, #e9eee5);
	--ink: var(--wp--preset--color--ink, #0c2216);
	--muted: var(--wp--preset--color--muted, #55675b);
	--forest: var(--wp--preset--color--forest, #123d25);
	--leaf: var(--wp--preset--color--leaf, #2d7622);
	--lime: var(--wp--preset--color--lime, #95e726);
	--leaf-press: #235e1a;
	--on-dark: #f3f7f0;
	--on-dark-muted: rgba(243, 247, 240, .72);
	--line: rgba(12, 34, 22, .1);
	--line-strong: rgba(12, 34, 22, .18);
	--line-dark: rgba(255, 255, 255, .14);
	--shadow-sm: 0 1px 2px rgba(18, 61, 37, .06), 0 4px 12px -6px rgba(18, 61, 37, .12);
	--shadow: 0 24px 48px -28px rgba(18, 61, 37, .35);
	--r-lg: 24px;
	--r-md: 14px;
	--gutter: clamp(20px, 4vw, 40px);
	--ease: cubic-bezier(.16, 1, .3, 1);
	--nav-h: 72px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 24px); }
html, body { overflow-x: clip; }
body {
	background: var(--canvas);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--mist); color: var(--ink); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/*
 * Mask icons for editable blocks: add a "has-icon-{name}" class to a block
 * (Advanced → Additional CSS class) to pick any icon in assets/icons.
 */
.has-icon-arrow-right { --icon: url("assets/icons/arrow-right.svg"); }
.has-icon-arrow-up-right { --icon: url("assets/icons/arrow-up-right.svg"); }
.has-icon-chart-line-up { --icon: url("assets/icons/chart-line-up.svg"); }
.has-icon-check { --icon: url("assets/icons/check.svg"); }
.has-icon-credit-card { --icon: url("assets/icons/credit-card.svg"); }
.has-icon-export { --icon: url("assets/icons/export.svg"); }
.has-icon-package { --icon: url("assets/icons/package.svg"); }
.has-icon-plus-square { --icon: url("assets/icons/plus-square.svg"); }
.has-icon-storefront { --icon: url("assets/icons/storefront.svg"); }
.has-icon-users { --icon: url("assets/icons/users.svg"); }
.wp-block-button[class*="has-icon-"] .wp-block-button__link::after,
.track__label::after,
.urlbar::before,
.sheet__row--hit::after {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
	content: "";
}

.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Buttons ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button .wp-block-button__link,
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 550;
	letter-spacing: -.005em;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.wp-block-button .wp-block-button__link:active, .btn:active { transform: translateY(1px); }
.btn--sm .wp-block-button__link, .btn--sm { min-height: 42px; padding: 0 20px; font-size: .94rem; }
.wp-block-button .wp-block-button__link, .btn--primary { background: var(--leaf); color: #fff; }
.wp-block-button .wp-block-button__link:hover, .btn--primary:hover { background: var(--leaf-press); }
.is-style-ghost .wp-block-button__link, .btn--ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.is-style-ghost .wp-block-button__link:hover, .btn--ghost:hover { border-color: var(--ink); background: transparent; }
.is-style-dark .wp-block-button__link, .btn--dark { background: var(--forest); color: var(--surface); }
.is-style-dark .wp-block-button__link:hover, .btn--dark:hover { background: var(--ink); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	z-index: 40;
	top: var(--wp-admin--admin-bar--height, 0px);
	border-bottom: 1px solid transparent;
	background: rgba(244, 247, 241, .92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav-shell {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: min(1200px, 100% - var(--gutter) * 2);
	height: var(--nav-h);
	margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 650; letter-spacing: -.03em; }
.brand img { width: 24px; }
.brand .wp-block-image a, .brand .custom-logo-link { display: block; }
/* Navigation blocks put their class on both the <nav> and its <ul>. */
.nav-links, .footer-links { display: flex; gap: 32px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-links__cta { display: none; }
.nav-cta { justify-self: end; }
.nav-toggle {
	display: none;
	justify-self: end;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font-size: 1.25rem;
	cursor: pointer;
}
.nav-toggle span { display: grid; }
.nav-toggle .nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: grid; }

/* ---------- Hero: copy left, product on a brand panel right ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	padding-block: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px);
}
.hero__copy { display: grid; justify-items: start; }
.eyebrow { margin-bottom: 20px; color: var(--leaf); font-size: .95rem; font-weight: 600; letter-spacing: -.005em; }
.hero__title {
	max-width: 13ch;
	font-size: clamp(2.5rem, 4.3vw, 4rem);
	font-weight: 600;
	line-height: 1.03;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.hero__title mark { background: transparent; color: var(--leaf); }
.hero__lede {
	max-width: 36ch;
	margin-top: 24px;
	color: var(--muted);
	font-size: clamp(1.08rem, 1.3vw, 1.2rem);
	line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__form { width: min(100%, 480px); margin-top: 32px; }

.hero__visual { position: relative; padding-block: clamp(28px, 4vw, 48px); }
.hero__visual::before {
	position: absolute;
	inset: 0 0 0 12%;
	border-radius: var(--r-lg);
	background: var(--forest);
	content: "";
}
.hero__tile { position: relative; width: 104%; margin: 0 0 0 -4%; }
.hero__tile img { width: 100%; height: auto; filter: drop-shadow(0 24px 32px rgba(4, 21, 11, .35)); }

/* ---------- Section scaffolding ---------- */
.compare, .features, .steps, .install, .faq { padding-block: clamp(72px, 9vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title {
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.03em;
	text-wrap: balance;
}
.section-lede {
	max-width: 52ch;
	margin-top: 16px;
	color: var(--muted);
	font-size: 1.12rem;
	line-height: 1.55;
}
.section-head--center .section-lede { margin-inline: auto; }
.section-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 56px); }

/* ---------- Before / after ---------- */
.compare__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	max-width: 1000px;
	margin-inline: auto;
}
.compare__card { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); }
.compare__card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.compare__card--before { border: 1px solid var(--line); background: var(--surface); }
.compare__card--before h3 { color: var(--muted); }
.compare__card--after { background: var(--forest); color: var(--on-dark); }
.compare__card--after h3 { color: #fff; }
.compare__list { margin-top: 20px; }
.compare__list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 1.04rem; }
.compare__list li + li { border-top: 1px solid var(--line); }
.compare__card--after .compare__list li + li { border-color: var(--line-dark); }
.compare__list li::before {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--sage) url("assets/icons/x.svg") center / 13px no-repeat;
	content: "";
}
.compare__card--before .compare__list li { color: var(--muted); }
.compare__card--after .compare__list li::before { background: var(--lime) url("assets/icons/check.svg") center / 14px no-repeat; }

/* ---------- Features bento ---------- */
.bento {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	grid-template-rows: repeat(2, minmax(280px, auto));
	gap: 16px;
}
.tile {
	position: relative;
	overflow: hidden;
	min-height: 280px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	isolation: isolate;
}
.tile__text { position: relative; z-index: 1; max-width: 17ch; }
.tile h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.tile .wp-block-image { position: static; }
.tile img {
	position: absolute;
	z-index: 0;
	right: -3%;
	bottom: -5%;
	width: 52%;
	transition: transform .5s var(--ease);
}
.tile:hover img { transform: translateY(-4px); }
.tile--store { grid-row: span 2; border-color: transparent; background: var(--mist); }
.tile--store .tile__text { max-width: 18ch; }
.tile--store h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.08; letter-spacing: -.03em; }
.tile--store img { right: 50%; bottom: 3%; width: 80%; transform: translateX(50%); }
.tile--store:hover img { transform: translateX(50%) translateY(-4px); }
.tile--payments { border-color: transparent; background: var(--forest); color: var(--on-dark); }
.tile--payments p { color: var(--on-dark-muted); }
.tile--customers { border-color: transparent; background: var(--sage); }
.tile--growth { border-color: transparent; background: var(--lime); }
.tile--growth p { color: rgba(12, 34, 22, .78); }
.bento > :nth-child(2) { --i: 1; }
.bento > :nth-child(3) { --i: 2; }
.bento > :nth-child(4) { --i: 3; }
.bento > :nth-child(5) { --i: 4; }

/* ---------- Steps track ---------- */
.track {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
.track::before, .track::after {
	position: absolute;
	top: 31px;
	left: 12.5%;
	right: 12.5%;
	height: 2px;
	background: var(--line-strong);
	content: "";
}
.track::after { background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.track.is-visible::after { transform: scaleX(1); }
.track > :nth-child(2) { --i: 1; }
.track > :nth-child(3) { --i: 2; }
.track > :nth-child(4) { --i: 3; }
/* Each step is one paragraph: ::before draws the node, ::after its icon. */
.track__label { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; text-align: center; font-size: 1.08rem; font-weight: 550; letter-spacing: -.015em; }
.track__label::before,
.track__label::after { transition: background-color .3s ease, border-color .3s ease; transition-delay: calc(var(--i, 0) * .35s + .3s); }
.track__label::before {
	width: 64px;
	height: 64px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--canvas);
	content: "";
}
.track__label::after {
	position: absolute;
	top: 0;
	left: calc(50% - 32px);
	width: 64px;
	height: 64px;
	background: var(--muted);
	-webkit-mask-size: 1.5rem;
	mask-size: 1.5rem;
}
.track.is-visible .track__label::before { border-color: var(--leaf); background: var(--mist); }
.track.is-visible .track__label::after { background: var(--leaf); }

/* ---------- Install flow ---------- */
.flow {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 3vw, 40px);
	padding: clamp(32px, 4vw, 52px) clamp(20px, 4vw, 52px) 0;
	border-radius: var(--r-lg);
	background: var(--mist);
	overflow: hidden;
	counter-reset: flow;
}
.flow__step { display: flex; flex-direction: column; gap: 24px; }
.flow__label { position: relative; min-height: 28px; padding-left: 40px; font-size: 1.04rem; line-height: 28px; color: var(--muted); }
.flow__label::before {
	counter-increment: flow;
	content: counter(flow);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--forest);
	color: #fff;
	font-size: .82rem;
	font-weight: 600;
}
.flow__label strong { color: var(--ink); font-weight: 600; }

.screen {
	position: relative;
	overflow: hidden;
	height: clamp(260px, 26vw, 320px);
	padding: 38px 16px 0;
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: 32px 32px 0 0;
	background: var(--surface);
}
.screen::before {
	/* Dynamic Island. */
	position: absolute;
	top: 12px;
	left: 50%;
	width: 72px;
	height: 18px;
	border-radius: 999px;
	background: var(--ink);
	transform: translateX(-50%);
	content: "";
}
.urlbar-row { display: flex; gap: 8px; }
.urlbar {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 38px;
	border-radius: 12px;
	background: var(--sage);
	font-size: .86rem;
	font-weight: 500;
}
.urlbar { --icon: url("assets/icons/lock-simple.svg"); }
.urlbar::before { width: 13px; height: 13px; background: var(--muted); }
.share-btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--sage);
	color: var(--leaf);
	font-size: 1.1rem;
}
.screen__page { display: grid; justify-items: center; gap: 10px; padding-top: 34px; }
.screen__page img { width: 38px; margin-bottom: 8px; }
.skeleton { width: 70%; height: 10px; border-radius: 999px; background: var(--sage); }
.skeleton--lg { width: 82%; height: 14px; }
.skeleton--btn { width: 44%; height: 30px; margin-top: 8px; background: var(--leaf); }
.screen--sheet { background: var(--sage); }
.sheet { display: grid; overflow: hidden; margin-top: 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
/* Beat core's first-child margin reset in flow layouts. */
.screen.screen--sheet > .sheet { margin-top: 18px; }
.sheet__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.sheet__head::before { width: 18px; height: 22px; background: url("assets/images/mark.png") center / contain no-repeat; content: ""; }
.sheet__row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: .9rem; }
.sheet__row + .sheet__row { border-top: 1px solid var(--line); }
.sheet__row--hit { --icon: url("assets/icons/plus-square.svg"); font-weight: 600; }
.sheet__row--hit::after { font-size: 1.1rem; background: var(--leaf); }
.screen--home { background: var(--forest); border-color: transparent; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 14px; padding: 18px 8px 0; }
.apps > * { aspect-ratio: 1; border-radius: 14px; background: rgba(255, 255, 255, .14); }
.app-bizzlet { position: relative; display: grid; place-items: center; background: var(--surface) !important; }
.app-bizzlet .wp-block-image { width: 46%; }
.app-bizzlet img { width: 100%; }
.app-bizzlet__name { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); color: var(--surface); font-size: .7rem; font-weight: 500; }
.flow .sheet__row--hit { background: var(--mist); }
.flow .share-btn { box-shadow: 0 0 0 2px var(--leaf); }

/* ---------- FAQ: accordion beside an image ---------- */
.faq {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
	align-items: start;
	gap: clamp(40px, 6vw, 88px);
}
.faq .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	font-size: 1.1rem;
	font-weight: 550;
	letter-spacing: -.015em;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
/* Plus that turns into a cross. */
.faq__item summary::after {
	flex: none;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--leaf);
	background:
		linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
	transition: transform .3s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease;
	content: "";
}
.faq__item summary:hover::after { border-color: var(--leaf); }
.faq__item[open] summary::after { border-color: var(--leaf); background-color: var(--leaf); color: #fff; transform: rotate(45deg); }
.faq__item p { max-width: 60ch; padding: 0 48px 24px 0; color: var(--muted); line-height: 1.6; }
@supports (interpolate-size: allow-keywords) {
	.faq__item { interpolate-size: allow-keywords; }
	.faq__item::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
	.faq__item[open]::details-content { height: auto; }
}
.faq__media {
	position: sticky;
	top: calc(var(--nav-h) + 32px);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	margin: 0;
	border-radius: var(--r-lg);
	background: var(--sage);
}
.faq__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Trial ---------- */
.trial { padding-block: clamp(72px, 9vw, 128px); }
.trial__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: end;
	gap: 48px;
	padding: clamp(36px, 6vw, 80px);
	border-radius: var(--r-lg);
	background: var(--forest);
	color: var(--on-dark);
}
.trial__panel .section-title { max-width: 13ch; color: #fff; }
.trial__panel .section-lede { color: var(--on-dark-muted); }
.trial__form label { display: block; margin-bottom: 10px; font-size: .92rem; font-weight: 550; }
.trial__panel .trial__form label { color: var(--on-dark); }
.trial__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.field:focus-within { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(45, 118, 34, .15); }
.trial__panel .field { border-color: transparent; }
.trial__panel .field:focus-within { box-shadow: 0 0 0 4px rgba(149, 231, 38, .35); }
.field input {
	flex: 1;
	min-width: 0;
	height: 50px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
}
.field input::placeholder { color: #66776b; }
.field input:focus-visible { outline: none; }
.field .btn { min-height: 50px; }
.trial__form .btn--dark { background: var(--leaf); color: #fff; }
.trial__form .btn--dark:hover { background: var(--leaf-press); }
.field.has-error { border-color: #b42318; box-shadow: 0 0 0 4px rgba(180, 35, 24, .15); }
.field-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: .92rem; }
.trial__panel .field-note { color: var(--on-dark-muted); }
.field-note--ok { color: var(--leaf); font-weight: 550; }
.trial__panel .field-note--ok { color: var(--lime); }
.field-note--error { color: #b42318; font-weight: 550; }
.trial__panel .field-note--error { color: #ffb4ab; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 40px; }
.footer-links { display: flex; gap: 28px; color: var(--on-dark-muted); font-size: .94rem; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-legal { color: var(--on-dark-muted); font-size: .9rem; }
.mobile-cta { display: none; }

/* ---------- Generic pages ---------- */
.page-inner { width: min(720px, 100% - var(--gutter) * 2); margin-inline: auto; padding-block: clamp(56px, 8vw, 112px); }
.page-title { margin-bottom: 28px; font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.page-body .wp-block-post { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.prose > * + * { margin-top: 1.1em; }
.prose a { color: var(--leaf); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
	.js .reveal { opacity: 0; translate: 0 20px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
	.js .reveal.is-visible { opacity: 1; translate: none; }
	.hero__copy, .hero__visual { animation: rise .8s var(--ease) both; }
	.hero__visual { animation-delay: .1s; }
	.flow.is-visible .share-btn { animation: tap 1s var(--ease) .6s both; }
	.flow.is-visible .sheet__row--hit { animation: row-hit 1s var(--ease) 1.3s both; }
	.flow.is-visible .app-bizzlet { animation: app-in .6s var(--ease) 2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tap { 0% { box-shadow: 0 0 0 0 var(--leaf); } 50% { box-shadow: 0 0 0 6px rgba(45, 118, 34, .35); } 100% { box-shadow: 0 0 0 2px var(--leaf); } }
@keyframes row-hit { from { background: var(--surface); } to { background: var(--mist); } }
@keyframes app-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.track::after { transform: scaleX(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.nav-shell { grid-template-columns: 1fr auto auto; gap: 10px; }
	.nav-toggle { display: grid; }
	nav.nav-links {
		position: absolute;
		top: calc(100% + 1px);
		left: calc(-1 * var(--gutter));
		right: calc(-1 * var(--gutter));
		display: none;
		padding: 4px var(--gutter) 24px;
		border-bottom: 1px solid var(--line);
		background: var(--canvas);
		box-shadow: var(--shadow);
	}
	nav.nav-links.is-open { display: block; }
	nav.nav-links .wp-block-navigation__container { flex-direction: column; align-items: stretch; gap: 0; }
	nav.nav-links .wp-block-navigation-item { display: block; }
	nav.nav-links a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.15rem; }
	nav.nav-links .nav-links__cta a { display: flex; justify-content: center; margin-top: 20px; padding: 15px; border: 0; border-radius: 999px; background: var(--leaf); color: #fff; font-size: 1rem; font-weight: 550; }

	/* Stacked hero: product first, copy underneath. */
	.hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 24px; }
	.hero__visual { order: -1; width: min(100%, 760px); margin-inline: auto; }
	.hero__copy { justify-items: center; max-width: 640px; margin-inline: auto; text-align: center; }
	.hero__title { max-width: 16ch; }
	.hero__actions { justify-content: center; }

	.bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.tile--store { grid-column: 1 / -1; grid-row: auto; min-height: 440px; }
	.tile--store img { width: min(58%, 340px); }

	.faq { grid-template-columns: 1fr; }
	.faq__media { position: relative; top: auto; width: min(100%, 460px); margin-inline: auto; }

	.trial__panel { grid-template-columns: 1fr; align-items: start; gap: 28px; }
}

@media (max-width: 640px) {
	:root { --nav-h: 64px; --r-lg: 20px; }
	.wp-block-buttons.nav-cta { display: none; }
	.hero__visual { padding-block: 20px; }
	.hero__visual::before { inset: 0 0 0 8%; }
	.hero__title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
	.hero__actions { display: grid; width: 100%; }
	.hero__actions .wp-block-button, .hero__actions .wp-block-button__link { width: 100%; }

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

	.flow { grid-template-columns: 1fr; gap: 36px; }
	.flow__step { flex-direction: column-reverse; }
	.flow__step:not(:last-child) .screen { height: 230px; border-radius: 28px; border-bottom: 1px solid var(--line); }
	.flow__step:last-child .screen { height: 230px; }
	.screen__page { gap: 8px; padding-top: 22px; }

	.bento { grid-template-columns: 1fr; }
	.tile { min-height: 240px; }
	.tile img { width: 46%; }
	.tile--store { min-height: 380px; }
	.tile--store img { width: 68%; }

	.track { grid-template-columns: 1fr; gap: 24px; }
	.track::before, .track::after { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; }
	.track::after { transform: scaleY(0); transform-origin: top; }
	.track.is-visible::after { transform: scaleY(1); }
	.track__label { grid-template-columns: 64px 1fr; justify-items: start; align-items: center; text-align: left; }
	.track__label::after { left: 0; }

	.faq__item summary { font-size: 1.04rem; }
	.faq__item p { padding-right: 0; }

	.field { display: grid; padding: 0; border: 0; background: transparent; gap: 10px; }
	.field:focus-within { box-shadow: none; }
	.field input { height: 54px; border: 1px solid var(--line-strong); background: var(--surface); }
	.field input:focus-visible { border-color: var(--leaf); }
	.field .btn { width: 100%; }

	.footer-inner { display: grid; padding-bottom: 104px; }

	.mobile-cta {
		position: fixed;
		z-index: 50;
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 8px 8px 18px;
		border: 1px solid var(--line);
		border-radius: 999px;
		background: var(--surface);
		box-shadow: var(--shadow);
		color: var(--muted);
		font-size: .82rem;
		line-height: 1.3;
		translate: 0 calc(100% + 32px);
		transition: translate .4s var(--ease);
	}
	.mobile-cta strong { color: var(--ink); font-size: .95rem; font-weight: 600; }
	.mobile-cta.is-shown { translate: none; }
}
