/* YHM Wedding Photobooks — landing page. Everything is scoped under .pb */

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

body.pb-body {
	margin: 0;
	background: #FBFAF7;
	-webkit-text-size-adjust: 100%;
}

.pb {
	--paper: #FBFAF7;
	--tint: #F3EEE7;
	--ink: #2A2A2A;
	--muted: #6B655D;
	--line: #E2DACE;
	--taupe: #C4B5A0;
	--taupe-deep: #9C8B72;
	--olive: #56614B;
	--accent: #557A5D;
	--accent-hover: #48694F;
	--accent-ink: #3D5C44;
	--accent-soft: #E7EFE5;
	--blush: #F6E8E1;
	--gold: #8A6D3B;
	--gold-soft: #F3EADA;
	--gold-line: #C2A570;
	--serif: "PB Unna", "Unna Regular", Georgia, "Times New Roman", serif;
	--sans: "PB Nunito", "Nunito Regular", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--wrap: 1180px;
	--gut: clamp(16px, 4.5vw, 56px);

	color: var(--ink);
	background: var(--paper);
	font-family: var(--sans);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.pb *, .pb *::before, .pb *::after { box-sizing: border-box; }
:where(.pb) img { max-width: 100%; height: auto; display: block; border: 0; }
:where(.pb) :is(h1, h2, h3) {
	font-family: var(--serif);
	font-weight: 400;
	color: var(--ink);
	margin: 0;
	letter-spacing: -0.01em;
	text-transform: none;
}
:where(.pb) p { margin: 0; }
:where(.pb) a { color: inherit; }
:where(.pb) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.pb) :is(button, input, textarea, select) { font: inherit; color: inherit; }
:where(.pb) strong { font-weight: 700; }
.pb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pb :focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

/* ---------- Buttons & links ---------- */
.pb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 50px; padding: 0 28px;
	background: var(--accent); color: #fff !important;
	border: 1px solid var(--accent); border-radius: 6px;
	font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .02em;
	text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.pb-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.pb-btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.pb-btn--ghost { background: transparent; color: var(--accent-ink) !important; border-color: var(--accent); }
.pb-btn--ghost:hover { background: var(--accent-soft); color: var(--accent-ink) !important; }
.pb-btn--soft { background: var(--accent-soft); color: var(--accent-ink) !important; border-color: var(--accent-soft); }
.pb-btn--soft:hover { background: #D9E6D6; border-color: #D9E6D6; }
.pb-btn--go { min-height: 66px; font-size: 18px; gap: 14px; box-shadow: 0 14px 26px -14px rgba(61, 92, 68, .7); }
.pb-btn__price { font-weight: 700; background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; font-size: 16px; }
.pb-btn--wide { width: 100%; min-height: 58px; font-size: 16px; }
.pb-btn[disabled] { opacity: .6; cursor: wait; }
.pb-link { font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.pb-link:hover { text-decoration-thickness: 2px; }

/* ---------- Top bar ---------- */
.pb-bar {
	max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 22px var(--gut);
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.pb-logo { font-family: var(--serif); font-size: 22px; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.pb-bar__nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.pb-bar__nav a:not(.pb-btn) { text-decoration: none; color: var(--muted); }
.pb-bar__nav a:not(.pb-btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.pb-hero {
	max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: clamp(16px, 4vw, 48px) var(--gut) clamp(24px, 4vw, 40px);
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.pb-hero h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1.06; letter-spacing: -0.02em; max-width: 11ch; }
.pb-lead { margin-top: 30px; font-size: clamp(18px, 1.6vw, 20px); font-weight: 300; line-height: 1.6; max-width: 34em; color: #45413b; }
.pb-hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.pb-facts { display: flex; gap: 0; margin-top: 52px; border-top: 1px solid var(--line); }
.pb-facts li { flex: 1; padding: 18px 18px 0 0; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.4; }
.pb-facts li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.pb-facts strong { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); margin-bottom: 2px; }
.pb-hero__img { margin: 0; position: relative; }
.pb-hero__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; }

/* ---------- Sections ---------- */
.pb-section { padding: clamp(64px, 9vw, 120px) var(--gut); }
.pb-section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.pb-section--tint { background: var(--tint); }
.pb-head { margin-bottom: clamp(36px, 5vw, 60px); }
.pb-head h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
.pb-head p { margin-top: 14px; max-width: 36em; color: var(--muted); font-size: 18px; }

/* ---------- Sizes (to scale) ---------- */
.pb-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.5vw, 48px); }
.pb-size__stage { height: 240px; display: flex; align-items: flex-end; margin-bottom: 26px; border-bottom: 1px solid var(--ink); }
.pb-size__square {
	width: calc(var(--cm) * 7.6px); aspect-ratio: 1;
	background: #E7DFD2;
	box-shadow: inset 6px 0 0 rgba(0,0,0,.06), 0 18px 30px -18px rgba(60,45,25,.45);
	display: flex; align-items: flex-end; padding: 12px 14px;
	font-size: 13px; color: #5d554a; font-weight: 700; letter-spacing: .02em;
}
.pb-size h3 { font-size: 26px; }
.pb-size p { margin-top: 8px; color: var(--muted); max-width: 26em; }
.pb-size .pb-size__price { margin-top: 14px; color: var(--ink); }
.pb-size .pb-size__up { margin-top: 10px; color: var(--accent-ink); font-weight: 700; font-size: 15px; line-height: 1.45; }
.pb-size--best .pb-size__square { background: #E3D7C3; box-shadow: inset 6px 0 0 rgba(0,0,0,.06), 0 0 0 2px var(--gold-line), 0 18px 30px -18px rgba(60,45,25,.45); }
.pb-size__price strong { font-family: var(--serif); font-weight: 400; font-size: 24px; }

/* ---------- Editions ---------- */
.pb-editions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); }
.pb-edition { background: var(--paper); padding: clamp(26px, 3.5vw, 44px); border-top: 3px solid var(--taupe); }
.pb-edition--premium { border-top-color: var(--accent); }
.pb-edition header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pb-edition h3 { font-size: 36px; }
.pb-edition__price { font-family: var(--serif); font-size: 22px; color: var(--muted); white-space: nowrap; }
.pb-edition__lead { margin-top: 10px; color: var(--muted); }
.pb-edition dl { margin: 26px 0 0; }
.pb-edition dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.pb-edition dt { font-weight: 700; font-size: 14px; color: var(--muted); padding-top: 2px; }
.pb-edition dd { margin: 0; }

/* ---------- Covers ---------- */
.pb-tabs { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-bottom: 30px; }
.pb-tabs__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pb-tabs__label { font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 6px; min-width: 4.4em; }
.pb-tab {
	appearance: none; background: transparent; border: 1px solid var(--line); border-radius: 999px;
	padding: 9px 18px; font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s;
}
.pb-tab:hover { border-color: var(--taupe-deep); }
.pb-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pb-panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.pb-panel[hidden] { display: none; }
.pb-panel__main { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--tint); }
.pb-panel__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pb-thumb { appearance: none; padding: 0; border: 0; background: var(--tint); cursor: pointer; opacity: .55; transition: opacity .15s; position: relative; }
.pb-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pb-thumb[aria-pressed="true"] { opacity: 1; }
.pb-thumb[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); }
.pb-thumb:hover { opacity: 1; }
.pb-panel__text h3 { font-size: 38px; margin-top: 10px; }
.pb-panel__text > p:not(.pb-tag) { margin-top: 14px; }
.pb-panel__count { font-weight: 700; font-size: 14px; color: var(--muted); margin-top: 26px !important; }
.pb-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 10px; margin-top: 12px; max-width: 420px; }
.pb-swatches li { position: relative; }
.pb-swatches img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.pb-swatches span { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-top: 3px; }

.pb-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #EAE2D5; color: #5d554a; line-height: 1.5; }
.pb-tag--premium { background: var(--accent-soft); color: var(--accent-ink); }
.pb-tag--rec { background: var(--accent); color: #fff; font-size: 12px; margin-left: 8px; vertical-align: 2px; }
.pb-tag--best { background: var(--gold-soft); color: var(--gold); font-family: var(--sans); font-size: 12px; vertical-align: 5px; margin-left: 6px; letter-spacing: 0; }

/* ---------- Inside ---------- */
.pb-inside { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.pb-inside__item h3 { font-size: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.pb-inside__item p { color: #47433d; }
.pb-dots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pb-dots li { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

.pb-words { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.pb-words__img { margin: 0; }
.pb-words__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.pb-words__text h3 { font-size: clamp(30px, 3.4vw, 42px); }
.pb-words__text p { margin-top: 16px; font-size: 18px; max-width: 30em; }
.pb-ticks { margin-top: 12px; display: grid; gap: 8px; }
.pb-ticks li, .pb-assure li { position: relative; padding-left: 28px; }
.pb-ticks li::before, .pb-assure li::before {
	content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
	border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- Steps ---------- */
.pb-steps { counter-reset: pbstep; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px); }
.pb-steps > li { counter-increment: pbstep; position: relative; padding-top: 58px; border-top: 2px solid var(--accent); }
.pb-steps > li::before { color: var(--accent-ink); }
.pb-steps { grid-template-columns: repeat(4, 1fr); }
.pb-steps > li::before {
	content: counter(pbstep); position: absolute; top: 14px; left: 0;
	font-family: var(--serif); font-size: 30px; line-height: 1;
}
.pb-steps h3 { font-size: 25px; margin-bottom: 10px; }
.pb-steps p { color: #47433d; }
.pb-ways-wrap { margin-top: clamp(36px, 5vw, 56px); }
.pb-ways-wrap h3 { font-size: 25px; margin-bottom: 16px; }
.pb-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pb-way { background: var(--tint); padding: 22px 24px; border-radius: 8px; }
.pb-way--rec { background: var(--accent-soft); }
.pb-way__title { font-weight: 700; margin-bottom: 6px !important; color: var(--ink) !important; }
.pb-note { margin-top: 16px !important; font-size: 15px; color: var(--muted) !important; }

/* ---------- Prices ---------- */
.pb-table-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.pb-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.pb-table caption { text-align: left; font-family: var(--serif); font-size: 24px; padding: 0 0 12px; }
.pb-table th, .pb-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.pb-table thead th { font-size: 14px; font-weight: 700; color: var(--muted); padding-top: 16px; padding-bottom: 14px; }
.pb-table tbody th { font-weight: 700; }
.pb-table td { font-family: var(--serif); font-size: 28px; line-height: 1; }
.pb-table--small td { font-size: 21px; }
.pb-table--small caption { font-size: 22px; }
.pb-table--small th, .pb-table--small td { padding: 13px 18px; }
.pb-table tr:last-child th, .pb-table tr:last-child td { border-bottom: 0; }
.pb-table thead th:last-child { color: var(--accent-ink); }
.pb-table th:last-child, .pb-table td:last-child { background: #F3F7F1; }

.pb-offer { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 64px); padding: clamp(26px, 3.5vw, 44px); background: var(--accent-soft); border-radius: 10px; color: var(--ink); }
.pb-offer h3 { font-size: clamp(30px, 3.2vw, 40px); }
.pb-offer__text p { margin-top: 14px; font-size: 18px; color: #4D4640; }
.pb-offer__text strong { color: var(--accent-ink); }
.pb-offer__example { background: #fff; padding: 20px 24px; border-radius: 8px; }
.pb-offer__label { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px !important; }
.pb-offer__example li, .pb-offer__total { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(80,60,40,.12); font-size: 15px; }
.pb-offer__example em { font-style: normal; color: var(--accent-ink); font-weight: 700; margin-left: 6px; }
.pb-offer__total { border-bottom: 0; padding-top: 14px; font-family: var(--serif); font-size: 24px; }
.pb-offer__total s { color: #9A8F84; font-size: .75em; margin-right: 8px; }

/* ---------- Quote ---------- */
.pb-quote { padding: clamp(64px, 9vw, 120px) var(--gut); text-align: center; }
.pb-quote blockquote { margin: 0 auto; max-width: 860px; }
.pb-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.9vw, 36px); line-height: 1.35; }
.pb-quote footer { margin-top: 22px; font-weight: 700; font-size: 15px; color: var(--muted); }

/* ---------- Builder ---------- */
.pb-order { background: var(--tint); }
.pb-builder { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.pb-summary { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
.admin-bar .pb-summary { top: 56px; }
.pb-summary__inner { background: var(--paper); padding: 28px; }
.pb-form { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 14px; }
.pb-thanks { grid-column: 1; grid-row: 1; background: var(--paper); padding: clamp(28px, 4vw, 48px); }
.pb-thanks h3 { font-size: 34px; }
.pb-thanks p { margin-top: 12px; font-size: 18px; }

.pb-preview__stage { height: 230px; display: flex; align-items: center; justify-content: center; background: #EDE6DB; margin: -28px -28px 0; }
.pb-preview__book {
	width: calc(var(--cm) * 5.6px); aspect-ratio: 1;
	background-color: #CFC6B8; background-size: cover; background-position: center;
	border-radius: 2px 4px 4px 2px;
	box-shadow: inset 7px 0 0 rgba(0,0,0,.14), inset 8px 0 0 rgba(255,255,255,.1),
		2px 2px 0 #F7F2EA, 3px 3px 0 #D9CFC0, 5px 5px 0 #F7F2EA, 6px 6px 0 #D2C7B6,
		0 26px 32px -16px rgba(40,30,20,.5);
	display: flex; align-items: center; justify-content: center; padding: 14px 14px 14px 20px;
	transition: width .35s cubic-bezier(.3,.7,.2,1);
}
.pb-preview__text {
	font-family: var(--serif); text-align: center; line-height: 1.25; letter-spacing: .05em;
	font-size: calc(var(--cm) * .62px + 4px); color: #E9DDBE; text-shadow: 0 1px 1px rgba(0,0,0,.35);
	overflow-wrap: anywhere; max-width: 100%;
}
.pb-preview__book.is-light .pb-preview__text { color: rgba(60,50,40,.82); text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.pb-preview__text.is-empty { opacity: .55; }
.pb-preview__caption { text-align: center; font-size: 14px; color: var(--ink); margin-top: 14px !important; }
.pb-preview__note { text-align: center; font-size: 12px; font-style: italic; color: var(--muted); margin-top: 2px !important; }
.pb-summary__lines { margin-top: 18px; border-top: 1px solid var(--line); }
.pb-summary__lines li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.pb-summary__lines small { display: block; color: var(--muted); font-size: 13px; }
.pb-summary__lines b { font-weight: 700; white-space: nowrap; }
.pb-summary__saving { margin-top: 10px !important; font-size: 14px; color: var(--accent-ink); font-weight: 700; background: var(--accent-soft); padding: 6px 10px; border-radius: 6px; }
.pb-summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px !important; }
.pb-summary__total span { font-weight: 700; }
.pb-summary__total strong { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.pb-summary__note { font-size: 13px; color: var(--muted); text-align: right; margin-top: 6px !important; line-height: 1.45; }

.pb-step { margin: 0; border: 0; background: var(--paper); padding: 26px clamp(20px, 3vw, 32px) 28px; min-width: 0; }
.pb-step legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-family: var(--serif); font-size: 26px; line-height: 1.2; display: flex; align-items: center; gap: 12px; }
.pb-step > :not(legend) { clear: both; }
.pb-form[hidden], .pb-thanks[hidden] { display: none; }
.pb-step__n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--sans); font-size: 14px; font-weight: 700; flex: none; }
.pb-step__opt { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.pb-step__hint { font-size: 15px; color: var(--muted); margin: 0 0 14px !important; clear: both; }
.pb-colors + .pb-step__hint, .pb-stepper + .pb-step__hint, .pb-step__hint--after { margin: 14px 0 0 !important; }
.pb-step__hint strong { color: var(--accent-ink); }

.pb-options { display: grid; gap: 12px; clear: both; }
.pb-options--3 { grid-template-columns: repeat(3, 1fr); }
.pb-options--2 { grid-template-columns: repeat(2, 1fr); }
.pb-option { position: relative; cursor: pointer; display: block; }
.pb-option input, .pb-chip input, .pb-endpaper input, .pb-color input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pb-option__box { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.pb-option:hover .pb-option__box { border-color: var(--accent); }
.pb-option input:checked + .pb-option__box { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pb-option input:focus-visible + .pb-option__box { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.pb-option__badge { position: absolute; top: -10px; left: 14px; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); box-shadow: 0 0 0 2px var(--paper); }
.pb-options { padding-top: 6px; }
.pb-option__title { font-weight: 700; font-size: 17px; }
.pb-option__meta { font-size: 14px; color: var(--muted); line-height: 1.4; }
.pb-option input:checked + .pb-option__box .pb-option__meta { color: #3e3a33; }

.pb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; clear: both; }
.pb-chip { cursor: pointer; position: relative; }
.pb-chip[hidden] { display: none; }
.pb-chip span { display: inline-block; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; transition: background .15s, border-color .15s; }
.pb-chip:hover span { border-color: var(--accent); }
.pb-chip input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.pb-chip input:focus-visible + span { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

.pb-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 10px; }
.pb-color { cursor: pointer; position: relative; display: block; text-align: center; }
.pb-color img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.1); transition: box-shadow .15s; }
.pb-color span { font-size: 11px; color: var(--muted); }
.pb-color input:checked + img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.pb-color input:focus-visible + img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--taupe-deep); }

.pb-endpapers { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 14px 8px; }
.pb-endpapers[hidden] { display: none; }
.pb-endpaper { cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.pb-endpaper__dot { width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); transition: box-shadow .15s; }
.pb-endpaper input:checked + .pb-endpaper__dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 0 0 3px var(--paper), 0 0 0 5px var(--accent); }
.pb-endpaper input:focus-visible + .pb-endpaper__dot { outline: 2px solid var(--ink); outline-offset: 6px; }
.pb-endpaper__name { font-size: 12px; line-height: 1.25; color: var(--muted); }

.pb-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 4px; clear: both; }
.pb-stepper__btn { appearance: none; width: 54px; height: 58px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.pb-stepper__btn { color: var(--accent-ink); }
.pb-stepper__btn:hover { background: var(--accent-soft); }
.pb-stepper__btn[disabled] { opacity: .3; cursor: default; background: transparent; }
.pb-stepper__value { min-width: 116px; text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px 10px; line-height: 1.15; }
.pb-stepper__value output { display: block; font-family: var(--serif); font-size: 28px; }
.pb-stepper__value span { font-size: 13px; color: var(--muted); }

.pb-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.pb-field:first-of-type { margin-top: 0; }
.pb-field > span { font-size: 14px; font-weight: 700; }
.pb-field b { color: var(--taupe-deep); font-weight: 700; }
.pb-field input, .pb-field textarea, .pb-copy select {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #D6CDBF; border-radius: 4px; background: #fff;
	font-size: 16px; line-height: 1.4; box-shadow: none; appearance: none; -webkit-appearance: none;
}
.pb-field textarea { min-height: 0; resize: vertical; }
.pb-field input:focus, .pb-field textarea:focus, .pb-copy select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pb-field[hidden] { display: none; }
.pb-field__tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); margin-left: 4px; vertical-align: 1px; }
.pb-field__opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.pb-field input[aria-invalid="true"] { border-color: #9B3B32; box-shadow: 0 0 0 1px #9B3B32; }
.pb-error { font-style: normal; font-size: 13px; color: #9B3B32; min-height: 0; }
.pb-error:empty { display: none; }
.pb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; clear: both; }
.pb-grid .pb-field { margin-top: 0; }
.pb-field--full { grid-column: 1 / -1; }

.pb-copies { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; clear: both; }
.pb-copies:empty { display: none; }
.pb-copy { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 10px; align-items: center; padding: 12px; background: var(--tint); border-radius: 4px; }
.pb-copy select {
	min-height: 46px; padding-right: 34px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232A2A2A' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 13px center;
}
.pb-copy__price { font-size: 15px; text-align: right; white-space: nowrap; line-height: 1.25; }
.pb-copy__price small { display: block; color: var(--accent-ink); font-weight: 700; font-size: 12px; }
.pb-copy-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-copy__remove { appearance: none; border: 0; background: transparent; width: 40px; height: 40px; font-size: 22px; cursor: pointer; color: var(--muted); border-radius: 50%; }
.pb-copy__remove:hover { background: rgba(0,0,0,.06); color: var(--ink); }

.pb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pb-submit { margin-top: 24px; }
.pb-assure { margin-top: 18px; display: grid; gap: 8px; font-size: 15px; color: #45413b; }
.pb-form__msg { margin-top: 10px !important; text-align: center; font-weight: 700; font-size: 15px; }
.pb-form__msg.is-error { color: #9B3B32; }

/* ---------- FAQ ---------- */
.pb-faq details { border-top: 1px solid var(--line); max-width: 860px; }
.pb-faq details:last-child { border-bottom: 1px solid var(--line); }
.pb-faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--serif); font-size: 23px; line-height: 1.3; }
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 28px; transition: transform .2s; }
.pb-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pb-faq details p { padding: 0 0 24px; max-width: 40em; color: #47433d; }

/* ---------- Footer ---------- */
.pb-foot { padding: clamp(56px, 8vw, 100px) var(--gut) 40px; background: var(--tint); text-align: center; }
.pb-foot__cta { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pb-foot__sub { margin-top: 14px !important; font-size: 14px; color: var(--muted); }
.pb-foot__meta { margin-top: 48px !important; font-size: 14px; color: var(--muted); }
.pb-foot__meta a { text-decoration: none; }
.pb-foot__meta a:hover { text-decoration: underline; }

/* ---------- Mobile bar ---------- */
.pb-mobilebar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.pb-builder { grid-template-columns: minmax(0, 1fr) 320px; }
	.pb-preview__book { width: calc(var(--cm) * 5px); }
	.pb-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.pb-hero { grid-template-columns: 1fr; }
	.pb-hero__img { order: -1; margin: 0 calc(var(--gut) * -1); }
	.pb-hero__img img { aspect-ratio: 4 / 3.3; object-position: 50% 52%; }
	.pb-hero h1 { max-width: 13ch; }
	.pb-bar__nav a:not(.pb-btn) { display: none; }
	.pb-editions, .pb-panel, .pb-words, .pb-table-wrap, .pb-offer { grid-template-columns: 1fr; }
	.pb-inside { grid-template-columns: 1fr; gap: 36px; }

	.pb-builder { grid-template-columns: 1fr; }
	.pb-summary { position: static; grid-column: 1; grid-row: auto; }
	.pb-form, .pb-thanks { grid-row: auto; }
	.pb-summary__inner { padding: 22px; }
	.pb-preview__stage { margin: -22px -22px 0; height: 200px; }
	.pb-preview__book { width: calc(var(--cm) * 5px); }

	.pb-mobilebar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		display: flex; align-items: center; justify-content: space-between; gap: 16px;
		padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom));
		background: var(--paper); border-top: 1px solid var(--line);
		box-shadow: 0 -10px 30px -18px rgba(40,30,20,.4);
		transform: translateY(110%); transition: transform .25s;
	}
	.pb-mobilebar[hidden] { display: flex; }
	.pb-mobilebar.is-on { transform: none; }
	.pb-mobilebar div { display: flex; flex-direction: column; line-height: 1.1; }
	.pb-mobilebar span { font-size: 12px; color: var(--muted); }
	.pb-mobilebar strong { font-family: var(--serif); font-weight: 400; font-size: 26px; }
}

@media (max-width: 700px) {
	.pb { font-size: 16px; }
	.pb-bar { padding-top: 14px; padding-bottom: 14px; }
	.pb-logo { font-size: 18px; }
	.pb-facts { flex-direction: column; border-top: 0; margin-top: 36px; }
	.pb-facts li, .pb-facts li + li { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: baseline; gap: 10px; }
	.pb-facts strong { font-size: 20px; }
	.pb-sizes { grid-template-columns: 1fr; gap: 0; }
	.pb-size { display: grid; grid-template-columns: 120px 1fr; column-gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
	.pb-size:last-child { border-bottom: 1px solid var(--line); }
	.pb-size__stage { grid-row: span 3; height: 120px; margin: 0; border: 0; align-items: flex-start; }
	.pb-size__square { width: calc(var(--cm) * 3.9px); padding: 6px 8px; font-size: 10.5px; }
	.pb-size h3 { font-size: 23px; }
	.pb-size p { font-size: 15px; margin-top: 4px; }
	.pb-size .pb-size__price { margin-top: 8px; }
	.pb-edition dl div { grid-template-columns: 1fr; gap: 2px; }
	.pb-tabs { gap: 14px; flex-direction: column; }
	.pb-tabs__group { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut); scrollbar-width: none; }
	.pb-tabs__group::-webkit-scrollbar { display: none; }
	.pb-tab { white-space: nowrap; flex: none; }
	.pb-panel__gallery { margin: 0 calc(var(--gut) * -1); }
	.pb-panel__thumbs { padding: 0 var(--gut); }
	.pb-panel__text h3 { font-size: 32px; }
	.pb-steps { grid-template-columns: 1fr; gap: 28px; }
	.pb-steps > li { padding-top: 0; padding-left: 44px; border-top: 0; }
	.pb-steps > li::before { top: 0; }
	.pb-ways { grid-template-columns: 1fr; }
	.pb-table th, .pb-table td { padding: 14px 12px; }
	.pb-table td { font-size: 23px; }
	.pb-table--small td { font-size: 18px; }
	.pb-options--3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.pb-options--3 .pb-option__box { padding: 12px 10px; }
	.pb-options--3 .pb-option__title { font-size: 15px; }
	.pb-options--3 .pb-option__meta { font-size: 13px; }
	.pb-options--2 { grid-template-columns: 1fr; }
	.pb-grid { grid-template-columns: 1fr; }
	.pb-copy { grid-template-columns: 1fr 1fr; }
	.pb-copy-actions .pb-btn { flex: 1 1 100%; }
	.pb-btn--go { font-size: 17px; flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
	.pb-copy__price { text-align: left; }
	.pb-copy__remove { justify-self: end; }
	.pb-step legend { font-size: 23px; }
	.pb-endpapers { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); }
	.pb-faq summary { font-size: 20px; }
	.pb-foot { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
	.pb *, .pb *::before, .pb *::after { transition: none !important; }
}

.pb-btn[hidden] { display: none !important; }
.pb-offer__example li > span:last-child, .pb-offer__total > span:first-child { white-space: nowrap; }
@media (max-width: 700px) {
	.pb-size .pb-size__up { grid-column: 2; font-size: 14px; }
	.pb-offer__example { padding: 16px 16px; }
	.pb-offer__example li { font-size: 14px; }
	.pb-offer__total { font-size: 21px; }
}

/* ---------- v1.2 ---------- */
.pb-reviews { padding-top: clamp(56px, 8vw, 100px); }
.pb-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.pb-review { margin: 0; background: var(--tint); border-radius: 10px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.pb-review blockquote { margin: 0; }
.pb-review__big { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 30px); line-height: 1.25; }
.pb-review__rest { margin-top: 14px !important; color: #4D4640; font-size: 16px; }
.pb-review figcaption { font-weight: 700; font-size: 14px; color: var(--accent-ink); }
.pb-review figcaption::before { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-bottom: 12px; }
.pb-included { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; color: #45413b; }
.pb-included li { position: relative; padding-left: 26px; }
.pb-included li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pb-field__help { font-size: 13px; color: var(--muted); }
.pb-swatches--named { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); max-width: 480px; }
.pb-swatches--named span { font-size: 11px; line-height: 1.25; }
.pb-colors .pb-color span { display: block; line-height: 1.25; margin-top: 3px; }
@media (max-width: 900px) {
	.pb-reviews__grid { grid-template-columns: 1fr; }
}

/* ---------- v1.3 ---------- */
.pb-hero__img img { object-position: 50% 50%; border-radius: 4px; }
.pb-real { padding-top: clamp(40px, 6vw, 80px); }
.pb-real__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.pb-real__item { margin: 0; }
.pb-real__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--tint); }
.pb-real__item figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.pb-inside__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 18px; background: #e9e3da; }
.pb-reviews__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pb-reviews__tabs .pb-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pb-review[hidden] { display: none; }
.pb-value { margin-top: 16px; padding: 14px 16px; background: var(--accent-soft); border-radius: 8px; }
.pb-value__head { font-size: 13px; font-weight: 700; color: var(--accent-ink); margin-bottom: 6px !important; }
.pb-value ul { display: grid; gap: 10px; }
.pb-value li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.35; }
.pb-value li b { font-weight: 700; display: block; }
.pb-value li small { display: block; color: var(--muted); font-size: 12px; }
.pb-value__price { white-space: nowrap; font-weight: 700; color: var(--accent-ink); text-align: right; }
.pb-value__price s { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.pb-summary__saving { margin-top: 8px !important; font-size: 14px; color: var(--accent-ink); background: none; padding: 0; text-align: right; font-weight: 400; }
.pb-summary__saving strong { font-weight: 700; }
@media (max-width: 700px) {
	.pb-real__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); gap: 12px; scrollbar-width: none; }
	.pb-real__grid::-webkit-scrollbar { display: none; }
	.pb-real__item { flex: 0 0 86%; scroll-snap-align: center; }
	.pb-reviews__tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1) 20px; padding: 2px var(--gut); scrollbar-width: none; }
	.pb-reviews__tabs .pb-tab { flex: none; white-space: nowrap; }
}
.pb-panel__thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.pb-panel__thumbs { grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
	.pb-panel, .pb-editions, .pb-words, .pb-table-wrap, .pb-offer, .pb-builder { grid-template-columns: minmax(0, 1fr); }
}

/* 1.4: three editions */
.pb-editions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-edition--leather { border-top-color: #8A5A3B; }
.pb-edition dl div { grid-template-columns: 1fr; gap: 2px; }
@media (max-width: 900px) { .pb-editions { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .pb-options--editions { grid-template-columns: 1fr; } .pb-options--editions .pb-option__box { padding: 14px 16px; } .pb-options--editions .pb-option__title { font-size: 17px; } }

/* ---------- v1.5 ---------- */
.pb-hero h1 { max-width: 14ch; }
/* Real spreads mosaic */
.pb-real__grid { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: auto auto; gap: clamp(12px, 1.6vw, 20px); }
.pb-real__item { appearance: none; border: 0; padding: 0; margin: 0; background: var(--tint); border-radius: 6px; overflow: hidden; cursor: zoom-in; display: block; }
.pb-real__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; transition: transform .5s ease; }
.pb-real__item:hover img { transform: scale(1.03); }
.pb-real__item--1 { grid-row: span 2; }
.pb-real__item--2 img, .pb-real__item--3 img { aspect-ratio: 3 / 2; }
.pb-real__item--4 { grid-column: 1 / -1; }
.pb-real__item--4 img { aspect-ratio: 21 / 8; object-position: 50% 50%; }
.pb-real__cta { margin-top: clamp(24px, 3vw, 36px) !important; }
.pb-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(20, 18, 15, .92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.pb-lightbox[hidden] { display: none; }
.pb-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.pb-lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; cursor: pointer; }
/* Reviews: no tabs, 3 x 2 */
.pb-reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Preview: cover + inside page */
.pb-preview__stage { gap: 18px; align-items: center; }
.pb-preview__item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pb-preview__item figcaption { font-size: 12px; color: var(--muted); text-align: center; max-width: 150px; line-height: 1.3; }
.pb-preview__book { width: calc(var(--cm) * 4.4px); }
.pb-preview__page { width: calc(var(--cm) * 4.4px); aspect-ratio: 1; background: var(--ep, #fff); border-radius: 2px; position: relative; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 18px 26px -18px rgba(40,30,20,.5); transition: width .35s cubic-bezier(.3,.7,.2,1), background-color .25s; overflow: hidden; }
.pb-preview__vellum { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 12px; line-height: 1.35; color: #6b6259; }
.pb-preview__vellum.is-on { inset: 8% 8% 8% 14%; background: rgba(255,255,255,.72); box-shadow: 0 0 0 1px rgba(255,255,255,.6); backdrop-filter: blur(1px); }
.pb-preview__vellum .is-empty { opacity: .6; }
.pb-endpaper-chosen { margin: 0 0 12px !important; }
/* Copies step: gift */
.pb-gift { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; background: var(--accent-soft); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.pb-gift img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.pb-gift__lead { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--ink); margin-bottom: 6px !important; }
.pb-gift__text > p:not(.pb-gift__lead) { font-size: 15px; color: #4D4640; }
.pb-gift__tiers { display: flex; gap: 10px; margin-top: 12px; }
.pb-gift__tiers li { background: #fff; border-radius: 8px; padding: 8px 14px; display: flex; flex-direction: column; line-height: 1.2; }
.pb-gift__tiers strong { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--accent-ink); }
.pb-gift__tiers span { font-size: 12px; color: var(--muted); }
.pb-quick { margin-bottom: 14px; }
.pb-quick__head { font-size: 15px; margin-bottom: 8px !important; }
.pb-quick__head strong { color: var(--accent-ink); }
.pb-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pb-quick__head { grid-column: 1 / -1; }
.pb-quick__btn { appearance: none; text-align: left; border: 1px solid var(--accent); background: #fff; border-radius: 8px; padding: 12px 14px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; transition: background .15s; }
.pb-quick__btn:hover { background: var(--accent-soft); }
.pb-quick__label { font-weight: 700; color: var(--accent-ink); }
.pb-quick__meta { grid-row: 2; font-size: 13px; color: var(--muted); }
.pb-quick__price { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; white-space: nowrap; }
.pb-quick__price s { font-weight: 400; color: var(--muted); font-size: 13px; margin-right: 4px; }
/* Summary extras */
.pb-upsell { appearance: none; display: flex; flex-direction: column; gap: 2px; width: 100%; margin-top: 14px; text-align: left; border: 1px dashed var(--accent); background: transparent; border-radius: 8px; padding: 10px 14px; cursor: pointer; color: var(--accent-ink); font-size: 14px; }
.pb-upsell[hidden] { display: none; }
.pb-upsell span { color: var(--muted); font-size: 13px; }
.pb-upsell:hover { background: var(--accent-soft); }
.pb-summary__cta { margin-top: 14px; min-height: 54px; }
@media (max-width: 900px) {
	.pb-reviews__grid { grid-template-columns: minmax(0, 1fr); }
	.pb-summary__cta { display: none; }
}
@media (max-width: 700px) {
	.pb-real__grid { display: flex; }
	.pb-real__item img, .pb-real__item--4 img { aspect-ratio: 3 / 2; height: auto; }
	.pb-gift { grid-template-columns: minmax(0, 1fr); }
	.pb-quick { grid-template-columns: minmax(0, 1fr); }
	.pb-preview__book, .pb-preview__page { width: calc(var(--cm) * 4px); }
}
.pb-real__item--1 { position: relative; min-height: 320px; }
.pb-real__item--1 img { position: absolute; inset: 0; }
@media (max-width: 700px) {
	.pb-real__item--1 { position: static; min-height: 0; }
	.pb-real__item--1 img { position: static; }
}
@media (max-width: 700px) { .pb-gift img { aspect-ratio: 16 / 7; } .pb-gift__lead { font-size: 19px; } }

/* ---------- v1.6: real spreads gallery + styles ---------- */
.pb-real__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: clamp(10px, 1.4vw, 18px); }
.pb-real__item { position: static; min-height: 0; grid-row: auto; grid-column: auto; }
.pb-real__item[hidden] { display: none; }
.pb-real__item img { position: static; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pb-real__item--big { grid-column: span 2; grid-row: span 2; }
.pb-real__item--big img { aspect-ratio: auto; }
.pb-real__more { margin-top: 20px !important; text-align: center; }
.pb-real__more[hidden] { display: none; }
.pb-real__cta { text-align: center; }
.pb-styles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.pb-style { appearance: none; border: 0; padding: 0; margin: 0; position: relative; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: var(--tint); }
.pb-style img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform .5s ease; }
.pb-style:hover img { transform: scale(1.04); }
.pb-style__cap { position: absolute; left: 10px; bottom: 10px; right: 10px; text-align: left; font-size: 13px; line-height: 1.3; color: #fff; background: rgba(30, 26, 22, .55); backdrop-filter: blur(4px); padding: 6px 10px; border-radius: 6px; width: fit-content; }
.pb-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.pb-lightbox__nav--prev { left: 14px; }
.pb-lightbox__nav--next { right: 14px; }
.pb-lightbox__nav:hover, .pb-lightbox__close:hover { background: rgba(255,255,255,.28); }
.pb-lightbox img { max-width: calc(100% - 120px); }
.pb-inside__img { display: block; }
.pb-words__img img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 900px) {
	.pb-styles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.pb-real__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
	.pb-real__item { flex: none; }
	.pb-real__item--big { grid-column: 1 / -1; grid-row: auto; }
	.pb-real__item--big img { aspect-ratio: 3 / 2; }
	.pb-styles__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: none; }
	.pb-styles__grid::-webkit-scrollbar { display: none; }
	.pb-style { flex: 0 0 62%; scroll-snap-align: start; }
	.pb-lightbox img { max-width: 100%; }
	.pb-lightbox__nav { top: auto; bottom: 18px; transform: none; }
}

/* ---------- v1.7: carousels ---------- */
.pb-car { position: relative; }
.pb-car__track { display: grid; grid-auto-flow: column; gap: clamp(10px, 1.4vw, 16px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 2px; }
.pb-car__track::-webkit-scrollbar { display: none; }
.pb-car__track--spreads { grid-auto-columns: calc((100% - 2 * clamp(10px, 1.4vw, 16px)) / 2.6); }
.pb-car__track--styles { grid-auto-columns: calc((100% - 3 * clamp(10px, 1.4vw, 16px)) / 3.6); }
.pb-car__item { appearance: none; border: 0; padding: 0; margin: 0; background: var(--tint); border-radius: 6px; overflow: hidden; cursor: zoom-in; scroll-snap-align: start; position: relative; display: block; }
.pb-car__item img { display: block; width: 100%; object-fit: cover; transition: transform .5s ease; }
.pb-car__track--spreads .pb-car__item img { aspect-ratio: 3 / 2; }
.pb-car__track--styles .pb-car__item img { aspect-ratio: 4 / 5; }
.pb-car__item:hover img { transform: scale(1.04); }
/* fade on the right edge = "there is more" */
.pb-car::after { content: ""; position: absolute; top: 0; right: 0; width: 70px; height: calc(100% - 56px); background: linear-gradient(90deg, rgba(251,250,247,0), var(--paper)); pointer-events: none; transition: opacity .2s; }
.pb-section--tint .pb-car::after { background: linear-gradient(90deg, rgba(243,238,231,0), var(--tint)); }
.pb-car.is-end::after { opacity: 0; }
.pb-car__bar { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pb-car__progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.pb-car__progress span { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: 3px; transition: width .2s; }
.pb-car__count { font-size: 14px; color: var(--muted); white-space: nowrap; min-width: 9em; text-align: right; }
.pb-car__btn { appearance: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); background: #fff; color: var(--accent-ink); font-size: 26px; line-height: 1; cursor: pointer; flex: none; transition: background .15s; }
.pb-car__btn:hover { background: var(--accent-soft); }
.pb-car__btn[disabled] { opacity: .35; cursor: default; background: #fff; }
.pb-real__cta--car { margin-top: 28px !important; text-align: center; }
@media (max-width: 700px) {
	.pb-car__track { margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scroll-padding: 0 var(--gut); }
	.pb-car__track--spreads { grid-auto-columns: 82%; }
	.pb-car__track--styles { grid-auto-columns: 58%; }
	.pb-car::after { display: none; }
	.pb-car__btn { width: 38px; height: 38px; font-size: 22px; }
	.pb-car__count { min-width: 0; font-size: 13px; }
}

/* ---------- v1.8: more cover photos — scrollable thumbnail strip ---------- */
.pb-panel__thumbs { display: flex; grid-template-columns: none; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.pb-thumb { flex: 0 0 calc((100% - 3 * 8px) / 4.4); scroll-snap-align: start; }
.pb-thumb img { aspect-ratio: 3 / 2; }
.pb-panel__main { aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .pb-thumb { flex-basis: 30%; } }

/* v1.9: show cover photos whole, centred, never upscaled-cropped */
.pb-panel__main { aspect-ratio: 4 / 3; object-fit: contain; object-position: center; background: var(--tint); border-radius: 6px; }
.pb-thumb img { object-fit: cover; object-position: center; }

.pb-summary__amounts { display: flex; align-items: baseline; gap: 12px; }
.pb-summary__was { font-family: var(--serif); font-size: 24px; color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: #B4453A; }

/* ---------- v2.0 compact page ---------- */
.pb-edition { display: flex; flex-direction: column; border-radius: 8px; }
.pb-edition__specs { margin: 18px 0 0; font-size: 15px; }
.pb-edition__sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 20px !important; }
.pb-edition__sizes span { font-size: 13px; color: var(--muted); background: var(--tint); border-radius: 999px; padding: 4px 10px; }
.pb-edition__sizes b { color: var(--ink); }
.pb-edition .pb-btn { margin-top: auto; min-height: 50px; }
#pb-covers { margin-top: clamp(40px, 5vw, 64px); }
.pb-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: pbhow; margin: -10px auto clamp(28px, 4vw, 44px) !important; }
.pb-how li { counter-increment: pbhow; background: var(--paper); border-radius: 8px; padding: 14px 16px 14px 52px; position: relative; display: flex; flex-direction: column; line-height: 1.35; }
.pb-how li::before { content: counter(pbhow); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pb-how b { font-size: 15px; }
.pb-how span { font-size: 13px; color: var(--muted); }
.pb-touches { padding-top: 18px; padding-bottom: 18px; }
.pb-touches > summary { list-style: none; cursor: pointer; font-family: var(--serif); font-size: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pb-touches > summary::-webkit-details-marker { display: none; }
.pb-touches > summary::after { content: "+"; margin-left: auto; font-family: var(--sans); font-size: 26px; color: var(--accent-ink); transition: transform .2s; }
.pb-touches[open] > summary::after { transform: rotate(45deg); }
.pb-touches__body { margin-top: 18px; }
.pb-touches__h { font-size: 20px; margin: 22px 0 10px !important; }
.pb-touches__h:first-child { margin-top: 0 !important; }
.pb-mini-quote { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-size: 17px; text-align: center; color: #4D4640; }
.pb-mini-quote cite { font-style: normal; font-family: var(--sans); font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .pb-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pb-how { grid-template-columns: minmax(0, 1fr); } .pb-touches > summary { font-size: 21px; } }

/* v2.0.3 hero: real book with wooden cover */
@media (max-width: 900px) { .pb-hero__img img { object-position: 50% 78%; } }

/* v2.1 sizes in cm + inches */
ul.pb-edition__sizes { display: block; list-style: none; padding: 0; margin: 18px 0 22px !important; border-top: 1px solid var(--line, #e7e1d8); }
ul.pb-edition__sizes li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line, #e7e1d8); font-size: 15px; background: none; border-radius: 0; margin: 0; }
ul.pb-edition__sizes li::before { content: none !important; }
ul.pb-edition__sizes span { background: none; padding: 0; font-size: 15px; color: var(--ink); border-radius: 0; }
ul.pb-edition__sizes small { font-size: 13px; color: var(--muted); margin-left: 6px; }
ul.pb-edition__sizes b { font-weight: 600; color: var(--ink); }
.pb-option__inch { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.pb-edition ul.pb-edition__sizes { margin-top: auto !important; }
.pb-edition ul.pb-edition__sizes + .pb-btn { margin-top: 0; }
.pb-edition__specs { margin-bottom: 22px !important; }
.pb-option__inch { margin-top: -6px !important; margin-bottom: 2px; }
