/*
 * ShopPilot theme
 * Tokens come from docs/DESIGN.md. The Customizer injects --tag, --on-tag, --ink-l, --bg-l,
 * --wrap, --base, --font-head and --font-body after this file, so every value here has a fallback.
 */

/* ------------------------------------------------------------------ Tokens */

:root {
	--bg: var(--bg-l, #eaf2ee);
	--ink: var(--ink-l, #0d2b2e);
	--surface: #ffffff;
	--muted: #52666b;
	--line: rgba(13, 43, 46, 0.16);
	--line-strong: var(--ink-l, #0d2b2e);
	--coral: #e4573a;
	--coral-ink: #b5361d;
	--fern: #17724b;
	--fern-tint: #dcefe5;
	--band: var(--ink-l, #0d2b2e);
	--band-ink: #eaf2ee;
	--band-muted: #a9c2be;
	--band-line: rgba(234, 242, 238, 0.2);
	--lip: var(--ink-l, #0d2b2e);
	--focus: var(--ink-l, #0d2b2e);
	--r: 6px;
	--r-lg: 10px;
	--measure: 62ch;
	--gutter: clamp(1rem, 4vw, 2rem);
	--header-h: 4.25rem;
	--head-pad: clamp(2.25rem, 5vw, 4rem);
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0a1b1e;
	--ink: #e7f1ed;
	--surface: #102a2d;
	--muted: #9db7b3;
	--line: rgba(231, 241, 237, 0.16);
	--line-strong: rgba(231, 241, 237, 0.55);
	--coral-ink: #ff9a82;
	--fern: #5fd39a;
	--fern-tint: #12382d;
	--band: #061416;
	--lip: rgba(231, 241, 237, 0.22);
	--focus: var(--tag, #ffc629);
	color-scheme: dark;
}

/* ------------------------------------------------------------------- Base */

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

html {
	font-size: var(--base, 17px);
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body, Literata, Georgia, serif);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.sp-theme { background: var(--bg); color: var(--ink); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head, "Familjen Grotesk", system-ui, sans-serif);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.012em;
	margin: 0 0 0.6em;
	color: inherit;
	text-wrap: balance;
}

p, ul, ol, dl, figure, pre, blockquote { margin: 0 0 1.1em; }

img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }

code, kbd, samp, pre {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 0.9em;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--tag, #ffc629); color: var(--on-tag, #0d2b2e); }

.sp-sr, .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -4rem;
	z-index: 100;
	background: var(--tag, #ffc629);
	color: var(--on-tag, #0d2b2e);
	font-family: var(--font-head, sans-serif);
	font-weight: 700;
	padding: 0.7rem 1.1rem;
	border-radius: var(--r);
	text-decoration: none;
	transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap, 1180px) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(52rem + var(--gutter) * 2); }

/* ---------------------------------------------------------------- Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.55em 1.35em;
	border: 1.5px solid var(--ink);
	border-radius: var(--btn-radius, var(--r));
	background: transparent;
	color: var(--ink);
	font-family: var(--font-head, sans-serif);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary,
.btn--tag {
	background: var(--tag, #ffc629);
	border-color: var(--tag, #ffc629);
	color: var(--on-tag, #0d2b2e);
	box-shadow: inset 0 -3px 0 rgba(13, 43, 46, 0.18);
}
.btn--primary:hover,
.btn--tag:hover { background: color-mix(in srgb, var(--tag, #ffc629) 88%, #ffffff); }

.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* -------------------------------------------------------------- Site header */

.site-header {
	position: relative;
	z-index: 50;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar.has-sticky-header .site-header { top: 46px; }
}

.site-header__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: inherit;
	font-family: var(--font-head, sans-serif);
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: -0.015em;
	text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark { flex: none; width: 1.7rem; height: 1.7rem; }
.brand__logo { display: block; max-height: 2.6rem; width: auto; }

.site-nav { flex: 1 1 auto; }
.site-nav .menu,
.site-footer .menu,
.site-footer__legal .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav .menu > li { position: relative; }
.site-nav a {
	display: inline-block;
	padding: 0.55rem 0;
	border-bottom: 2px solid transparent;
	font-family: var(--font-head, sans-serif);
	font-weight: 500;
	font-size: 1.02rem;
	text-decoration: none;
}
.site-nav a:hover { border-bottom-color: var(--tag, #ffc629); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.site-nav .sub-menu {
	position: absolute;
	top: 100%; left: -1rem;
	z-index: 10;
	min-width: 13rem;
	margin: 0; padding: 0.5rem 1rem;
	list-style: none;
	background: var(--surface);
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r);
	display: none;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { display: block; }

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-left: auto;
}
.site-header__cta { min-height: 42px; padding-inline: 1.1em; }

.mode-toggle,
.nav-toggle {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 0.95rem;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r);
	background: transparent;
	color: inherit;
	font-family: var(--font-head, sans-serif);
	font-weight: 500;
	font-size: 0.98rem;
	cursor: pointer;
}
.mode-toggle:hover,
.nav-toggle:hover { background: var(--ink); color: var(--bg); }

.nav-toggle { display: none; }
.nav-toggle::before {
	content: "";
	width: 1.05rem; height: 2px;
	margin-right: 0.6rem;
	background: currentColor;
	box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

@media (max-width: 62rem) {
	.site-header__bar { gap: 0.5rem 0.6rem; }
	.site-header__tools { gap: 0.5rem; }
	.mode-toggle, .nav-toggle { padding: 0 0.65rem; min-height: 40px; font-size: 0.92rem; }
	.nav-toggle::before { margin-right: 0.45rem; width: 0.95rem; }
	.brand { font-size: 1.15rem; gap: 0.45rem; }
	.brand__mark { width: 1.5rem; height: 1.5rem; }
	.nav-toggle { display: inline-flex; order: 3; }
	.site-header__tools { order: 2; }
	.site-nav { order: 4; flex-basis: 100%; padding-bottom: 0.75rem; }
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
	.site-nav .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 1rem; background: transparent; }
}
@media (max-width: 36rem) {
	.site-header__cta { display: none; }
}
/* Very narrow phones: the hamburger stands alone; its "Menu" text stays for screen readers. */
@media (max-width: 26rem) {
	.nav-toggle__label {
		position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
		clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
	}
	.nav-toggle::before { margin-right: 0; }
	.nav-toggle { min-width: 44px; justify-content: center; }
}
@media (max-width: 22rem) {
	.brand { font-size: 1.05rem; }
}

/* ------------------------------------------------------------------ Layout */

.section {
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
#how, #plans { background: var(--surface); border-block: 1px solid var(--line); }

.section__title {
	font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);
	margin: 0 0 1rem;
	max-width: 26ch;
}
.section__lead {
	max-width: var(--measure);
	font-size: 1.15rem;
	margin-bottom: 0;
}
.section__note {
	max-width: var(--measure);
	margin: 2.25rem 0 0;
	padding-left: 1rem;
	border-left: 3px solid var(--fern);
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.split__text > p { max-width: var(--measure); }
@media (max-width: 62rem) {
	.split { grid-template-columns: minmax(0, 1fr); }
}

.plain-list { padding-left: 1.2rem; max-width: var(--measure); }
.plain-list li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.plain-list li::marker { color: var(--fern); }

/* -------------------------------------------------------------------- Hero */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.hero--demo .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 62rem) {
	.hero--demo .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

.hero__title {
	font-size: clamp(2.4rem, 1.2rem + 4.2vw, 3.9rem);
	line-height: 1.04;
	letter-spacing: -0.024em;
	margin-bottom: 1.1rem;
	max-width: 16ch;
}
.hero:not(.hero--demo) .hero__title { max-width: 20ch; }
.hero__text { font-size: 1.2rem; max-width: 44ch; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__demo { position: relative; min-width: 0; }

.shelf {
	position: relative;
	padding: 2.4rem clamp(1rem, 3vw, 1.6rem) 1.6rem;
	background: var(--surface);
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r-lg);
}
/* The lip the shelf rests on. */
.shelf::after {
	content: "";
	position: absolute;
	left: 1rem; right: 1rem; bottom: -0.85rem;
	height: 0.85rem;
	background: var(--lip);
	border-radius: 0 0 var(--r) var(--r);
}
.shelf__note { margin: 1.6rem 0 0; font-size: 0.9rem; color: var(--muted); max-width: 52ch; }

.hangtag {
	position: absolute;
	top: -1.05rem;
	right: 1.6rem;
	z-index: 3;
	transform-origin: 1.15rem 50%;
	filter: drop-shadow(0 2px 0 rgba(13, 43, 46, 0.22));
	animation: sp-swing 1.9s cubic-bezier(0.3, 0.6, 0.4, 1) 0.5s 1 both;
}
.hangtag__text {
	display: block;
	padding: 0.5rem 1rem 0.5rem 2.3rem;
	background: var(--tag, #ffc629);
	color: var(--on-tag, #0d2b2e);
	font-family: var(--font-head, sans-serif);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.1;
	white-space: nowrap;
	clip-path: polygon(0.95rem 0, 100% 0, 100% 100%, 0.95rem 100%, 0 50%);
	background-image: radial-gradient(circle at 1.15rem 50%, var(--ink-l, #0d2b2e) 0 0.15rem, transparent 0.17rem);
}
@keyframes sp-swing {
	0% { transform: rotate(0); }
	22% { transform: rotate(13deg); }
	48% { transform: rotate(-8deg); }
	70% { transform: rotate(4deg); }
	86% { transform: rotate(-1.5deg); }
	100% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
	.hangtag { animation: none; }
}
@media (max-width: 30rem) {
	.hangtag { right: 0.75rem; }
	.hangtag__text { font-size: 0.85rem; }
}

/* ----------------------------------------------------------- How it works */

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 2.75rem 0 0;
	padding: 0;
	list-style: none;
}
.step { padding: 0 clamp(1rem, 2.6vw, 2.25rem); min-width: 0; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
/* Receipt perforation between the steps. */
.step + .step { border-left: 2px dashed var(--line-strong); }

.step__no {
	display: inline-grid;
	place-items: center;
	width: 2.4rem; height: 2.4rem;
	margin-bottom: 1rem;
	background: var(--ink-l, #0d2b2e);
	color: var(--tag, #ffc629);
	border-radius: var(--r);
	font-family: var(--font-head, sans-serif);
	font-weight: 700;
	font-size: 1.15rem;
}
:root[data-theme="dark"] .step__no { background: var(--tag, #ffc629); color: var(--on-tag, #0d2b2e); }
.step__title { font-size: 1.45rem; margin-bottom: 0.5rem; }
.step > p { max-width: 36ch; }

@media (max-width: 62rem) {
	.steps { grid-template-columns: minmax(0, 1fr); }
	.step { padding: 2rem 0; }
	.step:first-child { padding-top: 0; }
	.step:last-child { padding-bottom: 0; }
	.step + .step { border-left: 0; border-top: 2px dashed var(--line-strong); }
	.step > p { max-width: var(--measure); }
}

.artefact {
	margin: 1.25rem 0 0;
	padding: 0.9rem 1rem;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r);
	font-size: 0.92rem;
}
.artefact figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.artefact__field {
	padding: 0.65rem 0.85rem;
	background: var(--surface);
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r);
	font-family: var(--font-head, sans-serif);
	font-weight: 500;
	font-size: 1.02rem;
}

.artefact--table { position: relative; padding: 0; overflow-x: auto; }
.artefact--table figcaption { padding: 0 1rem 0.8rem; margin-top: 0.35rem; }
.artefact table { width: 100%; border-collapse: collapse; }
.artefact th, .artefact td { padding: 0.55rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.artefact thead th { font-family: var(--font-head, sans-serif); font-size: 0.88rem; line-height: 1.25; }
.artefact tbody th { font-weight: 600; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.artefact tbody tr:last-child > * { border-bottom: 0; }

td.is-best {
	background: var(--fern-tint);
	color: var(--fern);
	font-weight: 700;
}
td.is-best::before { content: "\2713\00a0"; content: "\2713\00a0" / ""; }

.artefact__url, .linkflip code {
	display: block;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.5;
}
.artefact__url { padding: 0.65rem 0.85rem; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r); }
.artefact__url b,
.linkflip__row--after b {
	padding: 0.05em 0.3em;
	background: var(--tag, #ffc629);
	color: var(--on-tag, #0d2b2e);
	border-radius: 3px;
	font-weight: 700;
}

/* ----------------------------------------------------------- Link converter */

.section--split { background: var(--bg); }

.linkflip {
	margin: 0;
	background: var(--surface);
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r-lg);
}
.linkflip__row { padding: 1.25rem 1.4rem; }
.linkflip__row--before { border-bottom: 2px dashed var(--line-strong); }
.linkflip__label {
	display: block;
	margin-bottom: 0.45rem;
	color: var(--muted);
	font-family: var(--font-head, sans-serif);
	font-weight: 500;
	font-size: 0.92rem;
}
.linkflip__row--before code { color: var(--muted); }
.linkflip__row--before s { color: var(--coral-ink); text-decoration-thickness: 2px; }
.linkflip__row--after .linkflip__label { color: var(--fern); font-weight: 700; }

/* ---------------------------------------------------------------- Agents */

.section--code {
	background: var(--band);
	color: var(--band-ink);
	--focus: var(--tag, #ffc629);
}
.section--code .section__title,
.section--code h2 { color: #ffffff; }
.section--code a { color: var(--tag, #ffc629); }
.section--code a.btn--tag { color: var(--on-tag, #0d2b2e); }
.section--code p { color: var(--band-ink); }

.file-list { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; margin: 1.25rem 0 1.75rem; padding: 0; list-style: none; }
.file-list a { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; }

.terminal {
	background: #041012;
	border: 1px solid var(--band-line);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.terminal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 0.6rem 0.6rem 1rem;
	border-bottom: 1px solid var(--band-line);
}
.terminal__title { color: var(--band-muted); font-family: var(--font-head, sans-serif); font-weight: 500; font-size: 0.92rem; }
.terminal__copy {
	min-height: 36px;
	padding: 0 0.9rem;
	background: transparent;
	color: var(--tag, #ffc629);
	border: 1.5px solid currentColor;
	border-radius: var(--r);
	font-family: var(--font-head, sans-serif);
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
}
.terminal__copy:hover { background: var(--tag, #ffc629); color: var(--on-tag, #0d2b2e); }
.terminal__code {
	margin: 0;
	padding: 1.15rem 1rem 1.25rem;
	overflow-x: auto;
	color: #d5f4e2;
	font-size: 0.95rem;
	line-height: 1.6;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.terminal__code code { font-size: inherit; }
.terminal__code code::before { content: "$ "; color: var(--tag, #ffc629); user-select: none; }

.tools { margin: 1.5rem 0 0; }
.tools__row {
	display: grid;
	grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
	gap: 0.25rem 1rem;
	padding: 0.7rem 0;
	border-top: 1px dashed var(--band-line);
}
.tools__row:last-child { border-bottom: 1px dashed var(--band-line); }
.tools dt code { color: var(--tag, #ffc629); font-size: 0.9rem; }
.tools dd { margin: 0; color: var(--band-muted); font-size: 0.95rem; line-height: 1.45; }
@media (max-width: 34rem) {
	.tools__row { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------- Ranking */

.weights {
	display: flex;
	height: 3.4rem;
	margin: 2.25rem 0 1.75rem;
	overflow: hidden;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r);
	background: var(--surface);
}
.weights__seg {
	flex-grow: 0;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-head, sans-serif);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--seg-ink);
	background: var(--seg);
}
.weights__seg + .weights__seg { border-left: 2px solid var(--bg); }
.weights__seg--relevance, .weights__item--relevance { --seg: var(--ink-l, #0d2b2e); --seg-ink: #eaf2ee; }
.weights__seg--quality,   .weights__item--quality   { --seg: #17724b; --seg-ink: #ffffff; }
.weights__seg--value,     .weights__item--value     { --seg: var(--tag, #ffc629); --seg-ink: var(--on-tag, #0d2b2e); }
.weights__seg--deal,      .weights__item--deal      { --seg: #f0a18e; --seg-ink: #0d2b2e; }
:root[data-theme="dark"] .weights__seg--relevance,
:root[data-theme="dark"] .weights__item--relevance { --seg: #e7f1ed; --seg-ink: #0d2b2e; }

.weights__legend {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
	gap: 1.5rem;
	margin: 0;
}
.weights__item { padding-top: 0.8rem; border-top: 6px solid var(--seg); }
.weights__item dt { font-family: var(--font-head, sans-serif); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.25rem; }
.weights__item dd { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* ----------------------------------------------------------------- Plans */

.plans-wrap {
	position: relative; /* contains the screen-reader text inside, so it cannot widen the page */
	margin-top: 2.5rem;
	overflow-x: auto;
	background: var(--surface);
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r-lg);
}
.plans { width: 100%; min-width: 36rem; border-collapse: collapse; }
.plans th, .plans td { padding: 0.85rem 1.25rem; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.plans tbody th { font-weight: 400; width: 46%; }
.plans tbody td { width: 27%; }
.plans thead th, .plans thead td { border-top: 0; vertical-align: top; }

.plans__head { padding: 1.6rem 1.25rem 1.4rem; }
.plans__head--2 { background: color-mix(in srgb, var(--tag, #ffc629) 20%, var(--surface)); box-shadow: inset 0 6px 0 var(--tag, #ffc629); }
.plans__name, .plans__price, .plans__note { display: block; }
.plans__name { font-family: var(--font-head, sans-serif); font-weight: 700; font-size: 1.3rem; }
.plans__price { margin: 0.2rem 0; font-family: var(--font-head, sans-serif); font-weight: 700; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); line-height: 1.1; }
.plans__note { min-height: 2.6em; margin-bottom: 1rem; color: var(--muted); font-weight: 400; font-size: 0.9rem; line-height: 1.4; }
.plans__head .btn { width: 100%; }


/* Narrow screens: fit both plans on screen instead of hiding Pro behind a sideways scroll. */
@media (max-width: 40rem) {
	.plans { min-width: 0; table-layout: fixed; }
	.plans th, .plans td { padding: 0.65rem 0.6rem; font-size: 0.9rem; line-height: 1.35; }
	.plans tbody th { width: 40%; }
	.plans tbody td { width: 30%; }
	.plans__head { padding: 1.1rem 0.6rem 1rem; }
	.plans__name { font-size: 1.05rem; }
	.plans__price { font-size: 1.35rem; }
	.plans__note { min-height: 0; font-size: 0.8rem; margin-bottom: 0.75rem; }
	.plans__head .btn { min-height: 42px; padding-inline: 0.4em; font-size: 0.88rem; }
	.weights__seg { font-size: 0.88rem; }
}

/* ------------------------------------------------------------------- FAQ */

.faq { margin-top: 2rem; border-top: 1.5px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
	position: relative;
	padding: 1.15rem 2.75rem 1.15rem 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--font-head, sans-serif);
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem; top: 50%;
	transform: translateY(-50%);
	font-weight: 500;
	font-size: 1.7rem;
	line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--fern); }
.faq__item p { max-width: var(--measure); margin: 0 0 1.3rem; }

/* ------------------------------------------------------------------- CTA */

.cta {
	background: var(--tag, #ffc629);
	color: var(--on-tag, #0d2b2e);
	padding-block: clamp(3rem, 7vw, 5.5rem);
	--focus: var(--on-tag, #0d2b2e);
}
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: center; }
.cta__title { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem); margin-bottom: 0.6rem; max-width: 20ch; }
.cta p { margin: 0; max-width: 50ch; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta .btn--primary { background: var(--on-tag, #0d2b2e); border-color: var(--on-tag, #0d2b2e); color: var(--tag, #ffc629); box-shadow: none; }
.cta .btn--primary:hover { background: color-mix(in srgb, var(--on-tag, #0d2b2e) 85%, var(--tag, #ffc629)); }
.cta .btn--ghost { border-color: var(--on-tag, #0d2b2e); color: var(--on-tag, #0d2b2e); }
.cta .btn--ghost:hover { background: var(--on-tag, #0d2b2e); color: var(--tag, #ffc629); }
@media (max-width: 52rem) {
	.cta__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--band); color: var(--band-ink); --focus: var(--tag, #ffc629); }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--tag, #ffc629); }

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.5rem clamp(2rem, 5vw, 4rem);
	padding-block: 4rem 2.75rem;
}
.site-footer__about p { max-width: 38ch; margin: 1rem 0 0; color: var(--band-muted); }
.site-footer__widgets { margin-top: 1.5rem; }
.site-footer__title { margin: 0 0 0.9rem; font-size: 1.05rem; color: #ffffff; }
.site-footer .menu { flex-direction: column; gap: 0.15rem; }
.site-footer .menu a { display: inline-block; padding: 0.3rem 0; text-decoration: none; }
.site-footer .menu a:hover { text-decoration: underline; }
.site-footer .brand { color: #ffffff; }

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding-block: 1.5rem 2.25rem;
	/* A rule that matches the text width, not the padded box. */
	background: linear-gradient(var(--band-line), var(--band-line)) center top / calc(100% - var(--gutter) * 2) 1px no-repeat;
	font-size: 0.9rem;
	color: var(--band-muted);
}
.site-footer__disclosure { flex-basis: 100%; max-width: 70ch; margin: 0 0 0.25rem; }
.site-footer__legal .menu { flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer__copy { margin: 0; }
@media (max-width: 52rem) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ----------------------------------------------------- Pages, posts, lists */

.page-head { padding: var(--head-pad) 0 clamp(1.25rem, 3vw, 2rem); }
.page-title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0; max-width: 20ch; }
.page-intro { max-width: var(--measure); margin: 1rem 0 0; font-size: 1.15rem; color: var(--muted); }

.content-area { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) 19rem; }
@media (max-width: 62rem) {
	.layout--sidebar { grid-template-columns: minmax(0, 1fr); }
}

.entry-meta { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.92rem; }
.entry__thumb { margin: 0 0 2rem; }
.entry__thumb img { display: block; width: 100%; border-radius: var(--r-lg); }

/* Long-form text is held to a readable measure; embedded tools and wide blocks are not. */
.prose > :where(p, ul, ol, dl, h1, h2, h3, h4, h5, h6, blockquote, hr, details, .wp-block-quote, .wp-block-list) { max-width: var(--measure); }
.prose > :where(h2) { margin-top: 2.2em; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.prose > :where(h3) { margin-top: 1.8em; font-size: 1.3rem; }
.prose a { text-decoration-color: var(--tag, #ffc629); text-decoration-thickness: 0.16em; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { padding: 0.2rem 0 0.2rem 1.25rem; border-left: 4px solid var(--tag, #ffc629); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 2px dashed var(--line-strong); margin-block: 2.5rem; }
.prose pre { padding: 1rem 1.2rem; overflow-x: auto; background: var(--band); color: #d5f4e2; border-radius: var(--r); }
.prose :not(pre) > code { padding: 0.12em 0.4em; background: color-mix(in srgb, var(--ink) 9%, transparent); border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 0.55rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line); }
.prose figcaption, .wp-caption-text { margin-top: 0.5rem; color: var(--muted); font-size: 0.88rem; }
.prose img { border-radius: var(--r); }
.prose .alignwide { max-width: min(100%, var(--wrap, 1180px)); }
.prose .alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.prose .alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.prose .aligncenter { margin-inline: auto; display: block; }
.prose::after { content: ""; display: block; clear: both; }

/* Post lists: rows, not cards. */
.post-list { border-top: 1.5px solid var(--line-strong); }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.4rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.post-row--thumb { grid-template-columns: 13rem minmax(0, 1fr); gap: 0.4rem 1.5rem; }
.post-row__thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.post-row__title { margin: 0; font-size: 1.5rem; }
.post-row__title a { text-decoration: none; }
.post-row__title a:hover { text-decoration: underline; text-decoration-color: var(--tag, #ffc629); text-decoration-thickness: 0.15em; }
.post-row .entry-meta { margin: 0; }
.post-row__excerpt { margin: 0.3rem 0 0; max-width: var(--measure); }
@media (max-width: 40rem) {
	.post-row--thumb { grid-template-columns: minmax(0, 1fr); }
}

.navigation.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.8rem;
	border: 1.5px solid var(--line-strong); border-radius: var(--r);
	font-family: var(--font-head, sans-serif); font-weight: 600; text-decoration: none;
}
a.page-numbers:hover { background: var(--ink); color: var(--bg); }
.page-numbers.current { background: var(--tag, #ffc629); border-color: var(--tag, #ffc629); color: var(--on-tag, #0d2b2e); }
.page-numbers.dots { border-color: transparent; }

.post-navigation { margin-top: 3rem; padding-top: 1.5rem; border-top: 1.5px solid var(--line-strong); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { font-family: var(--font-head, sans-serif); font-weight: 600; }

/* Search form */
.search-form { display: flex; gap: 0.5rem; max-width: 34rem; }
.search-form label { flex: 1; }
.search-field, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .post-password-form input[type="password"] {
	width: 100%; min-height: 46px; padding: 0.55em 0.9em;
	background: var(--surface); color: var(--ink);
	border: 1.5px solid var(--line-strong); border-radius: var(--r);
	font: inherit;
}
.search-submit, .comment-form .submit, .post-password-form input[type="submit"] {
	min-height: 46px; padding: 0 1.3em;
	background: var(--tag, #ffc629); color: var(--on-tag, #0d2b2e);
	border: 1.5px solid var(--tag, #ffc629); border-radius: var(--r);
	font-family: var(--font-head, sans-serif); font-weight: 700; cursor: pointer;
}

/* Sidebar and widgets */
.layout--single > .sidebar { padding-top: var(--head-pad); } /* lines up with the post title */
.sidebar .widget { margin-bottom: 2.25rem; }
.widget__title { margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1.5px solid var(--line-strong); font-size: 1.1rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 0.35rem 0; border-bottom: 1px dashed var(--line); }
.widget li a { text-decoration: none; }
.widget li a:hover { text-decoration: underline; }
.site-footer .widget__title { color: #ffffff; border-color: var(--band-line); }
.site-footer .widget li { border-color: var(--band-line); }

/* Core block widgets (search, latest posts, comments, archives, categories) */
.wp-block-search__label { display: block; margin-bottom: 0.5rem; font-family: var(--font-head, sans-serif); font-weight: 700; font-size: 1.1rem; }
.wp-block-search__inside-wrapper { display: flex; gap: 0.5rem; }
.wp-block-search__input {
	flex: 1; min-width: 0; min-height: 46px; padding: 0.55em 0.9em;
	background: var(--surface); color: var(--ink);
	border: 1.5px solid var(--line-strong); border-radius: var(--r);
	font: inherit;
}
.wp-block-search__button {
	min-height: 46px; padding: 0 1.1em; margin: 0;
	background: var(--tag, #ffc629); color: var(--on-tag, #0d2b2e);
	border: 1.5px solid var(--tag, #ffc629); border-radius: var(--r);
	font-family: var(--font-head, sans-serif); font-weight: 700; cursor: pointer;
}
.widget .wp-block-latest-posts__list, .widget .wp-block-archives-list, .widget .wp-block-categories-list, .widget .wp-block-latest-comments { margin: 0; padding: 0; list-style: none; }
.widget .wp-block-latest-posts__list li, .widget .wp-block-latest-comments li { margin: 0; }
.widget .wp-block-latest-comments__comment { margin-bottom: 0; }
.wp-block-latest-comments__comment-meta { font-size: 0.95rem; }
.wp-block-latest-posts__post-date { display: block; color: var(--muted); font-size: 0.85rem; }

/* Comments */
.comments { margin-top: 3.5rem; padding-top: 2rem; border-top: 1.5px solid var(--line-strong); max-width: var(--measure); }
.comments__title { font-size: 1.5rem; }
.comment-list { margin: 0 0 2rem; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding-left: 1.5rem; list-style: none; border-left: 2px dashed var(--line); }
.comment-body { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.comment-meta { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 0.5rem; }
.comment-author .fn { font-family: var(--font-head, sans-serif); font-weight: 700; font-style: normal; }
.comment-reply-link { font-family: var(--font-head, sans-serif); font-weight: 600; font-size: 0.9rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.3rem; font-family: var(--font-head, sans-serif); font-weight: 500; font-size: 0.95rem; }

/* 404 */
.not-found { padding-block: clamp(3rem, 8vw, 6rem); }
.not-found__code { font-family: var(--font-head, sans-serif); font-weight: 700; font-size: clamp(4.5rem, 3rem + 10vw, 9rem); line-height: 1; letter-spacing: -0.04em; margin: 0 0 1.5rem; }
.not-found__code span { background: var(--tag, #ffc629); color: var(--on-tag, #0d2b2e); padding: 0 0.12em; border-radius: var(--r); }
.not-found .page-title { margin-bottom: 1.1rem; }
.not-found .prose > p { max-width: 46ch; font-size: 1.15rem; margin-bottom: 0; }
.not-found .search-submit { font-size: 1rem; }
.not-found__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2rem; }

/* WordPress core classes */
.alignleft { float: left; }
.alignright { float: right; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.sticky .post-row__title::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.4em; background: var(--tag, #ffc629); border-radius: 50%; }
.bypostauthor { }

/* ------------------------------------------------- ShopPilot plugin skin
 * The plugin's storefront and docs are built on --sp-* variables. Mapping them here makes the
 * widget look native. The selectors are deliberately heavier than the plugin's own (which use
 * :root[data-theme] for dark) so the mapping wins whichever stylesheet loads last.
 */
html body :is(.sp-shop, .sp-docs, .sp-btn, .sp-disclosure) {
	--sp-accent: var(--ink-l, #0d2b2e);
	--sp-accent-ink: #eaf2ee;
	--sp-accent-soft: color-mix(in srgb, var(--tag, #ffc629) 26%, #ffffff);
	--sp-surface: #ffffff;
	--sp-surface-2: #f1f6f3;
	--sp-text: var(--ink-l, #0d2b2e);
	--sp-muted: #52666b;
	--sp-border: #c6d6cf;
	--sp-good: #17724b;
	--sp-warn: #8a5a00;
	--sp-danger: #b5361d;
	--sp-radius: var(--r-lg);
	--sp-btn-radius: var(--r);
	--sp-input-radius: var(--r);
	--sp-font: var(--font-body, Georgia, serif);
}
html:root[data-theme="dark"] body :is(.sp-shop, .sp-docs, .sp-btn, .sp-disclosure) {
	--sp-accent: var(--tag, #ffc629);
	--sp-accent-ink: var(--on-tag, #0d2b2e);
	--sp-accent-soft: color-mix(in srgb, var(--tag, #ffc629) 16%, #102a2d);
	--sp-surface: #102a2d;
	--sp-surface-2: #163639;
	--sp-text: #e7f1ed;
	--sp-muted: #9db7b3;
	--sp-border: #2a4a4c;
	--sp-good: #5fd39a;
	--sp-warn: #f0c36a;
	--sp-danger: #ff9a82;
}
.sp-shop { font-size: 0.96rem; }
.sp-shop h1, .sp-shop h2, .sp-shop h3, .sp-docs h1, .sp-docs h2, .sp-docs h3 { font-family: var(--font-head, sans-serif); }
.entry .sp-docs, .entry .sp-shop { max-width: 100%; }

/* ------------------------------------------------------------------ Print */

@media print {
	.site-header, .site-footer, .cta, .nav-toggle, .mode-toggle, .hangtag, .terminal__copy { display: none !important; }
	body { background: #ffffff; color: #000000; font-size: 11pt; }
	a { text-decoration: underline; }
}
