/*
 * Public pages: story sections (direction "Apothecary", owner 2026-12-03).
 *
 * The home page from the top: the dark hero with the pen standing upright,
 * the facts strip and the three steps. The pen breakdown between them is the
 * 3D pen explainer (assets/pen/, its home copy). The ad landers
 * share the hero, the strip and the steps. Square corners throughout; brass
 * only in rules, numerals and the plinth line. Loads after base.css;
 * sections-trust.css carries the shared phone reset.
 */

/* Sizes in these sections include padding and borders (the theme has no
   global border-box rule). */
:where(.pwp-front-hero, .pwp-glance, .pwp-reviews, .pwp-flow, .pwp-proof, .pwp-offer, .pwp-closing),
:where(.pwp-front-hero, .pwp-glance, .pwp-reviews, .pwp-flow, .pwp-proof, .pwp-offer, .pwp-closing) :where(*, *::before, *::after) {
	box-sizing: border-box;
}

/* The hero sits right under the header (home page and landers), and a page
   that ends on the closing call meets the footer: no block gap at either
   seam. */
.wp-site-blocks > main:has(.pwp-front-hero),
.wp-site-blocks > main:has(.pwp-closing:last-child) + * {
	margin-block-start: 0;
}

/* Twelve-column grid shared by the split sections. */
.pwp-split {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1.5rem;
}

/* Hero: words on the left, the pen standing in a pool of light. */
.pwp-front-hero {
	display: grid;
	grid-template-columns: [full-start] minmax(var(--pwp-gutter), 1fr) [wrap-start] minmax(0, 42rem) [mid] minmax(0, 33rem) [wrap-end] minmax(var(--pwp-gutter), 1fr) [full-end];
	align-items: center;
	min-height: min(46rem, 88vh);
	background: var(--pwp-ap-night);
	color: var(--pwp-ap-bone);
	overflow: hidden;
}

.pwp-front-hero > * {
	margin: 0;
}

.pwp-front-hero__copy {
	grid-column: wrap-start / mid;
	padding-block: clamp(3rem, 6vw, 5rem);
	padding-right: 2.5rem;
}

.pwp-front-hero .pwp-display {
	color: var(--pwp-ap-bone);
}

.pwp-front-hero__copy .pwp-lead {
	max-width: 34rem;
	margin: 1.75rem 0 0;
	color: var(--pwp-ap-mist);
}

.pwp-front-hero__sub {
	max-width: 34rem;
	margin: 1rem 0 0;
	color: var(--pwp-ap-mist);
}

.pwp-front-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin: 2.25rem 0 0;
}

.pwp-front-hero .wp-block-button__link {
	background: var(--pwp-ap-bone);
	color: var(--pwp-ap-night);
}

.pwp-front-hero .wp-block-button__link:hover {
	background: #FFFFFF;
}

.pwp-front-hero .pwp-plain-link {
	color: var(--pwp-ap-bone);
}

.pwp-front-hero :focus-visible {
	outline-color: var(--pwp-ap-bone);
}

.pwp-front-hero__price {
	max-width: 34rem;
	margin: 2rem 0 0;
	padding-top: 1.1rem;
	border-top: 1px solid var(--pwp-ap-rule-dark);
	font-size: 0.9375rem;
	color: var(--pwp-ap-mist);
	font-variant-numeric: lining-nums;
}

.pwp-front-hero .pwp-meta {
	color: var(--pwp-ap-mist);
}

.pwp-front-hero .pwp-meta svg {
	color: var(--pwp-ap-brass);
}

/* The landers' headlines run longer than the home page's: a step smaller. */
.pwp-front-hero--lander h1.pwp-display {
	font-size: clamp(2.35rem, 1.45rem + 2.4vw, 4rem);
	line-height: 1.04;
}

.pwp-plinth {
	grid-column: mid / wrap-end;
	position: relative;
	align-self: stretch;
	display: grid;
	place-items: end center;
	margin: 0;
	background: radial-gradient(60% 52% at 50% 46%, rgba(239, 234, 224, 0.16), rgba(239, 234, 224, 0) 70%);
}

.pwp-plinth__pen {
	width: auto;
	max-width: none;
	height: min(40rem, 82vh);
	margin-bottom: 2.4rem;
}

.pwp-plinth::after {
	content: "";
	position: absolute;
	left: 14%;
	right: 14%;
	bottom: 2.35rem;
	height: 1px;
	background: var(--pwp-ap-rule-dark);
}

.pwp-plinth__note {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.85rem;
	margin: 0;
	text-align: center;
	font-size: 0.75rem;
	color: rgba(239, 234, 224, 0.5);
}

/* At a glance: five facts between hairlines, on paper. */
.pwp-glance {
	background: var(--pwp-ap-paper);
	border-bottom: 1px solid var(--pwp-ap-bone-2);
}

.pwp-glance__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-block: 0;
	padding: 0;
	list-style: none;
}

.pwp-glance__list li {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0;
	padding: 1.3rem 1.1rem;
	font-weight: 500;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.pwp-glance__list li + li {
	border-left: 1px solid var(--pwp-ap-bone-2);
}

.pwp-glance__list li:first-child {
	padding-left: 0;
}

.pwp-glance__list svg {
	flex: none;
	width: 1.35rem;
	height: 1.35rem;
	color: var(--pwp-ap-brass-deep);
}

@media (min-width: 861px) and (max-width: 1100px) {
	.pwp-glance__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pwp-glance__list li:nth-child(3n + 1) {
		padding-left: 0;
		border-left: 0;
	}

	.pwp-glance__list li:nth-child(-n + 3) {
		border-bottom: 1px solid var(--pwp-ap-bone-2);
	}
}

/* Steps: the headline left, a quiet numbered list right. */
.pwp-flow {
	background: var(--pwp-ap-paper);
}

.pwp-flow__head {
	grid-column: 1 / span 5;
}

.pwp-flow__head .pwp-plain-link {
	margin-top: 1.75rem;
}

.pwp-flow__list {
	grid-column: 7 / span 6;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pwp-flow__step {
	display: grid;
	grid-template-columns: 3.25rem 1fr;
	gap: 1.25rem;
	margin: 0;
	padding-block: 1.6rem;
	border-bottom: 1px solid var(--pwp-ap-bone-2);
}

.pwp-flow__step:first-child {
	padding-top: 0;
}

.pwp-flow__num {
	font-family: var(--wp--preset--font-family--display);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-weight: 330;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--pwp-ap-brass-deep);
}

.pwp-flow__step p {
	margin: 0.4rem 0 0;
	color: var(--pwp-ap-ash);
}

/* Phones and small tablets. */
@media (max-width: 860px) {
	.pwp-front-hero {
		grid-template-columns: [full-start] var(--pwp-gutter) [wrap-start] minmax(0, 1fr) [wrap-end] var(--pwp-gutter) [full-end];
		min-height: 0;
	}

	.pwp-front-hero__copy {
		grid-column: wrap-start / wrap-end;
		padding: 0.5rem 0 3rem;
	}

	.pwp-front-hero__copy .pwp-lead {
		margin-top: 1.25rem;
		font-size: 1.0625rem;
	}

	.pwp-front-hero__actions .wp-block-button,
	.pwp-front-hero__actions .wp-block-button__link {
		width: 100%;
	}

	/* On a phone the pen comes first, shorter, so it is on the first screen. */
	.pwp-front-hero .pwp-plinth {
		grid-column: full-start / full-end;
		order: -1;
		padding-top: 1.5rem;
	}

	.pwp-plinth__pen {
		height: 14.5rem;
		margin-bottom: 2.1rem;
	}

	.pwp-plinth::after {
		left: 22%;
		right: 22%;
		bottom: 2rem;
	}

	.pwp-plinth__note {
		bottom: 0.6rem;
	}

	.pwp-glance__list {
		grid-template-columns: 1fr 1fr;
	}

	.pwp-glance__list li {
		gap: 0.55rem;
		padding: 1rem 0.5rem 1rem 0;
		font-size: 0.875rem;
	}

	.pwp-glance__list li + li {
		border-left: 0;
	}

	.pwp-glance__list li:nth-child(n + 3) {
		border-top: 1px solid var(--pwp-ap-bone-2);
	}

	.pwp-glance__list li:nth-child(even) {
		padding-left: 0.75rem;
		border-left: 1px solid var(--pwp-ap-bone-2);
	}

	.pwp-glance__list li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.pwp-flow__step:first-child {
		padding-top: 1.25rem;
	}
}
