/*
Theme Name: ParkLocal
Theme URI: https://parklocal.ca
Author: 360expert.ai
Description: Block theme for the ParkLocal marketing site. Light canvas with the app's own green, Cormorant Garamond display type over Manrope UI, six hand-built section patterns. Layout geometry is owned by CSS, not by the editor.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parklocal
Tags: full-site-editing, blocks, one-column, custom-colors, custom-logo
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

/*
 * Light palette, ParkLocal green.
 *
 * The original dark "Ink & Brass" scheme read as the same near-black + serif +
 * metallic-accent genre as another site in the client's portfolio, so the canvas
 * is inverted to the light theme the handoff already specifies (bg #f7f4ed,
 * surfaces #ffffff -> #f1ece0, ink #14251d -- itself a green-black) and the brass
 * accent is replaced with the app's own green.
 *
 * The green is sampled from the product, not invented: #1e7863 is the modal
 * colour of the buttons in the app's search screen, #1c7058 in the hero render.
 *
 * Every text colour below is measured against the surface it actually sits on;
 * ratios are noted inline.
 */
:root {
	/* Surfaces */
	--pl-canvas: #f7f4ed;
	--pl-surface: #ffffff;
	--pl-surface-alt: #f1ece0;

	/* Accent -- the app's green */
	--pl-green: #1e7863;
	--pl-green-hover: #17624f;
	--pl-green-soft: rgba(30, 120, 99, 0.12);
	--pl-ink: #14251d;

	/*
	 * Text. Measured on #f7f4ed:
	 *   ink @ 1.00 -> 14.57:1     body @ 0.72 -> 6.08:1
	 *   step @ 0.85 -> 9.1:1      green #1e7863 -> 4.88:1
	 * 0.62 was tested and rejected at 4.43:1, just under AA.
	 */
	--pl-text-body: rgba(20, 37, 29, 0.72);
	--pl-text-meta: rgba(20, 37, 29, 0.72);
	--pl-text-step: rgba(20, 37, 29, 0.85);
	--pl-text-nav: rgba(20, 37, 29, 0.72);

	/* Hairlines */
	--pl-rule: rgba(20, 37, 29, 0.14);
	--pl-rule-soft: rgba(20, 37, 29, 0.1);
	--pl-outline: rgba(20, 37, 29, 0.24);
	--pl-outline-hover: rgba(30, 120, 99, 0.55);

	/* Type */
	--pl-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--pl-font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Rhythm */
	--pl-gutter: 64px;
	--pl-max: 1400px;
	/* Measured against the prototype: 22 + 43 (pill) + 22 + 1 (hairline) = 88. */
	--pl-header-h: 88px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--pl-canvas);
	color: var(--pl-ink);
	font-family: var(--pl-font-ui);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	/*
	 * `clip` rather than `hidden`: hidden turns the body into a scroll container
	 * and quietly breaks `position: sticky` on the header.
	 */
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--pl-green);
	text-decoration: none;
	transition: color 150ms ease;
}

a:hover {
	color: var(--pl-green-hover);
}

/* The prototype ships no focus styles at all. Every interactive element gets one. */
:where(a, button, input, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--pl-green);
	outline-offset: 2px;
	border-radius: 4px;
}

.pl-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 14px 22px;
	background: var(--pl-green);
	color: var(--pl-canvas);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.pl-skip-link:focus {
	left: 16px;
	top: 16px;
	color: var(--pl-canvas);
}

.pl-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Anchor targets must clear the sticky bar. */
.pl-section {
	scroll-margin-top: var(--pl-header-h);
}

/* ==========================================================================
   3. Section shell
   ========================================================================== */

.pl-section {
	position: relative;
	padding-inline: var(--pl-gutter);
}

.pl-section__inner {
	max-width: var(--pl-max);
	margin-inline: auto;
}

/* ==========================================================================
   4. Type primitives
   ========================================================================== */

.pl-eyebrow {
	margin: 0;
	font-family: var(--pl-font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.32em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--pl-green);
}

/*
 * The identity move: every display heading breaks to a second line set in italic
 * brass-light. Authored as one rich-text field -- `First line<br><em>second.</em>`
 * -- so the client edits both halves in place and the italic is just the editor's
 * italic button.
 */
.pl-display {
	margin: 0;
	font-family: var(--pl-font-display);
	font-weight: 300;
	color: var(--pl-ink);
	text-wrap: pretty;
}

.pl-display em {
	font-style: italic;
	color: var(--pl-green);
}

.pl-lead {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--pl-text-body);
	text-wrap: pretty;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.pl-btn {
	display: inline-block;
	/*
	 * No border on the base: only the outline variant has one in the design, and a
	 * transparent 1px border here made every solid button 2px taller and wider.
	 */
	border: 0;
	border-radius: 999px;
	font-family: var(--pl-font-ui);
	font-size: 12px;
	letter-spacing: 0.18em;
	/*
	 * `normal`, not 1. Manrope's normal line-height at 12px is 17px, which is what
	 * gives the prototype its 43px pill and 55px hero button. Forcing 1 made every
	 * button 5px shorter and the sticky bar 85px instead of 88px.
	 */
	line-height: normal;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.pl-btn--solid {
	padding: 19px 38px;
	background: var(--pl-green);
	color: var(--pl-canvas);
	font-weight: 700;
}

.pl-btn--solid:hover {
	background: var(--pl-green-hover);
	color: var(--pl-canvas);
}

.pl-btn--outline {
	padding: 19px 34px;
	/*
	 * transparent, explicitly: core's block library paints .wp-block-button__link
	 * #32373c by default, and an outline button that sets no background inherits
	 * that slate fill.
	 */
	background: transparent;
	border: 1px solid var(--pl-outline);
	color: var(--pl-ink);
	font-weight: 600;
}

.pl-btn--outline:hover {
	border-color: var(--pl-outline-hover);
	color: var(--pl-ink);
}

/* Header pill: tighter tracking than the body buttons, per the prototype. */
.pl-btn--pill {
	padding: 13px 26px;
	letter-spacing: 0.16em;
	font-weight: 600;
}

.pl-btn-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

/*
 * Bridge to core/button. The buttons are real core blocks so the client can edit
 * the label and the destination in the editor; these rules stop core's own
 * padding and radius from fighting the design. Specificity is deliberate --
 * `.wp-block-button__link` is what core targets.
 */
.wp-block-buttons.pl-btn-row {
	gap: 16px;
}

.wp-block-button.pl-btn-wrap {
	margin: 0;
}

.wp-block-button__link.pl-btn {
	box-sizing: border-box;
	text-align: center;
}

/*
 * Two classes, deliberately. Core declares `.wp-block-button__link` with a
 * single class, so a single-class rule of ours only ties on specificity and
 * loses or wins on load order -- which is how the outline button reached
 * production filled with core's #32373c. These win outright.
 */
.wp-block-button__link.pl-btn--solid {
	padding: 19px 38px;
	background-color: var(--pl-green);
	color: var(--pl-canvas);
}

.wp-block-button__link.pl-btn--solid:hover {
	background-color: var(--pl-green-hover);
}

.wp-block-button__link.pl-btn--outline {
	padding: 19px 34px;
	background-color: transparent;
	color: var(--pl-ink);
}

/* ==========================================================================
   6. Sticky header
   ========================================================================== */

.pl-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px var(--pl-gutter);
	border-bottom: 1px solid var(--pl-rule-soft);
}

/*
 * The translucent blur lives on a pseudo-element, not on .pl-header itself.
 * backdrop-filter makes an element the containing block for its position:fixed
 * descendants, which sized the mobile nav panel to the 81px bar instead of the
 * viewport. Keeping the filter off the header leaves the panel free to fill the
 * screen.
 */
.pl-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(247, 244, 237, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

/* Without backdrop-filter the translucent bar lets content bleed through. */
@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
	.pl-header::before {
		background: rgba(247, 244, 237, 0.97);
	}
}

.pl-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/*
 * 38px is the height the design specifies, and with the trimmed asset it is now
 * the height of the wordmark itself rather than of mostly-empty canvas. The
 * sticky bar stays 88px because the 43px Download pill still sets the row.
 */
.pl-header__logo img {
	height: 38px;
	width: auto;
	display: block;
}

.pl-nav__list {
	display: flex;
	align-items: center;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * The nav is a real <ul>, which the prototype's flex row of bare <a>s was not.
 * Each item must be a flex box rather than a list-item: an inline-block pill in an
 * inline formatting context reserves descender space below the baseline, which
 * pushed the sticky bar from 82px to 96px.
 */
.pl-nav__list > li {
	display: flex;
	align-items: center;
}

.pl-nav__link {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.08em;
	color: var(--pl-text-nav);
}

.pl-nav__link:hover {
	color: var(--pl-ink);
}

/* Menu button is desktop-hidden; it returns at the mobile breakpoint. */
.pl-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--pl-ink);
	cursor: pointer;
}

.pl-header__toggle span {
	position: relative;
	display: block;
	width: 22px;
	height: 1px;
	background: currentColor;
	transition: background-color 150ms ease;
}

.pl-header__toggle span::before,
.pl-header__toggle span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 22px;
	height: 1px;
	background: currentColor;
	transition: transform 150ms ease, top 150ms ease;
}

.pl-header__toggle span::before {
	top: -7px;
}

.pl-header__toggle span::after {
	top: 7px;
}

.pl-header__toggle[aria-expanded="true"] span {
	background: transparent;
}

.pl-header__toggle[aria-expanded="true"] span::before {
	top: 0;
	transform: rotate(45deg);
}

.pl-header__toggle[aria-expanded="true"] span::after {
	top: 0;
	transform: rotate(-45deg);
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.pl-hero {
	padding-block: 110px 120px;
	background:
		radial-gradient(80% 70% at 18% 0%, rgba(30, 120, 99, 0.1) 0%, rgba(247, 244, 237, 0) 60%),
		linear-gradient(160deg, var(--pl-surface) 0%, var(--pl-canvas) 70%);
}

.pl-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 72px;
	align-items: center;
}

.pl-hero__title {
	margin-top: 26px;
	font-size: 92px;
	line-height: 0.98;
	letter-spacing: -0.02em;
}

.pl-hero__lead {
	margin-top: 30px;
	max-width: 470px;
}

.pl-hero__actions {
	margin-top: 44px;
}

/*
 * Value row: three qualitative statements above a hairline. Authored as a real
 * <ul> so the terms are a list, with the term carried by <strong> -- the core
 * list block has no room for a heading, and four peer headings here would add
 * nothing for a screen reader that a list does not already give.
 */
.pl-values {
	display: flex;
	gap: 44px;
	margin: 64px 0 0;
	padding: 34px 0 0;
	border-top: 1px solid var(--pl-rule);
	list-style: none;
}

.pl-values li {
	max-width: 150px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pl-text-meta);
}

.pl-values strong {
	display: block;
	margin-bottom: 8px;
	font-family: var(--pl-font-display);
	font-size: 30px;
	font-style: italic;
	font-weight: 400;
	/* Cormorant's own normal leading, as the prototype has it -- not the 1.5 the <li> sets. */
	line-height: normal;
	color: var(--pl-green);
}

.pl-hero__figure {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Decorative only -- never focusable, never announced. */
.pl-hero__glow {
	position: absolute;
	width: 420px;
	height: 420px;
	max-width: 100%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(30, 120, 99, 0.14) 0%, rgba(30, 120, 99, 0) 68%);
	pointer-events: none;
}

.pl-hero__phone {
	position: relative;
	display: block;
	width: 100%;
	max-width: 440px;
}

.pl-hero__phone img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 34px 60px rgba(20, 37, 29, 0.22));
}

/* ==========================================================================
   8. Why ParkLocal
   ========================================================================== */

.pl-why {
	padding-block: 120px;
	background: var(--pl-surface);
}

.pl-why__head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: end;
}

.pl-why__title {
	margin-top: 22px;
	font-size: 62px;
	line-height: 1.06;
}

.pl-why__intro {
	margin: 0;
	padding-bottom: 10px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--pl-text-body);
	text-wrap: pretty;
}

/*
 * Hairline grid. The 1px rules between cards are the container's background
 * showing through a 1px gap -- no per-card borders, so it stays correct at four,
 * two or one column without touching the border declarations.
 */
.pl-benefits {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	margin: 76px 0 0;
	padding: 0;
	background: var(--pl-rule);
	border-top: 1px solid var(--pl-rule);
	border-bottom: 1px solid var(--pl-rule);
	list-style: none;
	counter-reset: pl-benefit;
}

.pl-benefits li {
	margin: 0;
	padding: 44px 34px 46px;
	background: var(--pl-surface);
	font-size: 14px;
	line-height: 1.6;
	color: var(--pl-text-meta);
}

/* Numerals are generated, so they cannot fall out of step with the cards. */
.pl-benefits li::before {
	counter-increment: pl-benefit;
	content: counter(pl-benefit, decimal-leading-zero);
	display: block;
	font-family: var(--pl-font-display);
	font-size: 30px;
	font-weight: 400;
	line-height: normal;
	color: var(--pl-green);
}

.pl-benefits strong {
	display: block;
	margin-top: 26px;
	margin-bottom: 12px;
	font-size: 19px;
	font-weight: 600;
	/* Manrope's normal leading, as inherited in the prototype -- not the 1.6 the card sets. */
	line-height: normal;
	color: var(--pl-ink);
}

/* ==========================================================================
   9. Have a parking space? (hosts)
   ========================================================================== */

.pl-host {
	padding-block: 130px;
	background: linear-gradient(150deg, var(--pl-surface-alt) 0%, var(--pl-canvas) 100%);
}

.pl-host__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 90px;
	align-items: center;
}

.pl-host__photo {
	margin: 0;
	height: 480px;
	border-radius: 28px;
	border: 1px solid var(--pl-rule);
	overflow: hidden;
}

.pl-host__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pl-host__title {
	margin-top: 24px;
	font-size: 68px;
	line-height: 1.03;
}

.pl-host__lead {
	margin-top: 26px;
	max-width: 440px;
}

.pl-steps {
	margin: 40px 0 0;
	padding: 0;
	max-width: 460px;
	list-style: none;
	counter-reset: pl-step;
}

.pl-steps li {
	display: flex;
	gap: 22px;
	align-items: baseline;
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--pl-rule);
	font-size: 15px;
	line-height: 1.55;
	color: var(--pl-text-step);
}

.pl-steps li:last-child {
	border-bottom: 0;
}

.pl-steps li::before {
	counter-increment: pl-step;
	content: counter(pl-step, decimal-leading-zero);
	flex: 0 0 auto;
	font-family: var(--pl-font-display);
	font-size: 24px;
	line-height: normal;
	color: var(--pl-green);
}

.pl-host__actions {
	margin-top: 36px;
}

/* The host and store buttons carry a wider inset than the hero pair. */
.wp-block-button__link.pl-btn--wide.pl-btn--solid,
.wp-block-button__link.pl-btn--wide.pl-btn--outline,
.pl-btn--wide {
	padding-left: 40px;
	padding-right: 40px;
}

/* ==========================================================================
   10. Download CTA
   ========================================================================== */

.pl-app {
	padding-block: 140px;
	background: var(--pl-canvas);
	text-align: center;
}

.pl-app__inner {
	max-width: 780px;
	margin-inline: auto;
}

.pl-app__title {
	margin-top: 24px;
	font-size: 74px;
	line-height: 1.04;
}

.pl-app__lead {
	margin-top: 22px;
}

.pl-app__actions {
	justify-content: center;
	margin-top: 44px;
}

/* ==========================================================================
   10b. /download/ — platform-aware store page
   ==========================================================================
   Both store buttons ship in the HTML: that is what a visitor without
   JavaScript gets, and it keeps the page byte-identical for every visitor so
   LiteSpeed's full-page cache stays correct. A class on <html>, set by an inline
   script before first paint, hides the store that does not apply. */

.pl-getapp {
	padding-block: 132px 140px;
	background: var(--pl-canvas);
	text-align: center;
}

.pl-getapp__inner {
	max-width: 640px;
	margin-inline: auto;
}

.pl-getapp__title {
	margin-top: 24px;
	font-size: 68px;
	line-height: 1.04;
}

.pl-getapp__lead {
	margin-top: 22px;
}

.pl-getapp__actions {
	justify-content: center;
	margin-top: 44px;
}

/*
 * The platform classes. With neither present -- no JavaScript, or a platform we
 * do not recognise such as a desktop browser -- both buttons stay visible, which
 * is the correct fallback rather than a failure state.
 */
.pl-platform-ios .pl-store--android,
.pl-platform-android .pl-store--ios {
	display: none;
}

.pl-getapp__alt {
	margin: 30px 0 0;
}

.pl-getapp__alt[hidden] {
	display: none;
}

/* A button that has to read as a link: it is an action, not navigation. */
.pl-linkish {
	padding: 8px 4px;
	background: none;
	border: 0;
	font-family: var(--pl-font-ui);
	font-size: 13px;
	line-height: 1.5;
	color: var(--pl-text-meta);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color 150ms ease;
}

.pl-linkish:hover {
	color: var(--pl-green);
}

@media (max-width: 767px) {
	.pl-getapp {
		padding-block: 72px;
	}

	.pl-getapp__title {
		font-size: 32px;
	}
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.pl-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 46px var(--pl-gutter);
	border-top: 1px solid var(--pl-rule-soft);
}

.pl-footer__brand {
	display: flex;
	align-items: center;
	gap: 20px;
}

.pl-footer__brand img {
	display: block;
	height: 30px;
	width: auto;
	opacity: 0.75;
}

.pl-footer__copy {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pl-text-meta);
}

.pl-footer__nav {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.pl-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pl-footer__links a {
	font-size: 12px;
	color: var(--pl-text-meta);
}

.pl-footer__links a:hover {
	color: var(--pl-ink);
}

/* ==========================================================================
   12. Prose pages (Privacy Policy, Terms of Service, About, Contact)
   ==========================================================================
   Not part of the handoff -- these pages already exist and must keep working
   after the theme switch. Long legal copy on a near-black background is the
   thing most likely to read badly, so the measure is tight and the text alpha is
   well above the body floor. */

.pl-prose {
	padding-block: 96px 120px;
}

.pl-prose__inner {
	max-width: 68ch;
	margin-inline: auto;
}

.pl-prose__title {
	margin: 0 0 40px;
	font-family: var(--pl-font-display);
	font-size: 62px;
	font-weight: 300;
	line-height: 1.06;
	color: var(--pl-ink);
	text-wrap: pretty;
}

.pl-prose__body {
	font-size: 16px;
	line-height: 1.75;
	color: rgba(20, 37, 29, 0.82);
}

.pl-prose__body > * + * {
	margin-top: 1.4em;
}

.pl-prose__body :is(h2, h3, h4) {
	font-family: var(--pl-font-display);
	font-weight: 400;
	line-height: 1.2;
	color: var(--pl-ink);
	margin-top: 2em;
}

.pl-prose__body h2 {
	font-size: 34px;
}

.pl-prose__body h3 {
	font-size: 26px;
}

.pl-prose__body h4 {
	font-size: 21px;
}

.pl-prose__body :is(ul, ol) {
	padding-left: 1.3em;
}

.pl-prose__body li + li {
	margin-top: 0.5em;
}

.pl-prose__body a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pl-prose__body strong {
	color: var(--pl-ink);
}

/* Post list on /news/ and search results. */
.pl-postlist .wp-block-post-title {
	margin-top: 2.2em;
	font-family: var(--pl-font-display);
	font-size: 32px;
	font-weight: 300;
	line-height: 1.15;
}

.pl-postlist .wp-block-post-title a {
	color: var(--pl-ink);
}

.pl-postlist .wp-block-post-title a:hover {
	color: var(--pl-green-hover);
}

.pl-postlist .wp-block-post-date {
	margin-top: 0.6em;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pl-text-meta);
}

.pl-postlist .wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 3em;
	padding-top: 1.6em;
	border-top: 1px solid var(--pl-rule);
	font-size: 13px;
}

.pl-prose__body table {
	width: 100%;
	border-collapse: collapse;
}

.pl-prose__body :is(th, td) {
	padding: 12px 14px;
	border: 1px solid var(--pl-rule);
	text-align: left;
}

/* ==========================================================================
   13. Responsive
   ==========================================================================
   No tablet or mobile layout was designed. This implements the written spec in
   the handoff: gutters 64 -> 40 -> 24, two-column grids collapse below 1024,
   the benefit row steps 4 -> 2 -> 1, and the nav moves into a full-screen panel
   below 768. */

/* --- Tablet: 768-1199px -------------------------------------------------- */
@media (max-width: 1199px) {
	:root {
		--pl-gutter: 40px;
	}

	.pl-hero {
		padding-block: 88px 96px;
	}

	.pl-why,
	.pl-host,
	.pl-app {
		padding-block: 96px;
	}

	.pl-hero__title {
		font-size: 56px;
	}

	.pl-why__title,
	.pl-host__title,
	.pl-app__title {
		font-size: 44px;
	}

	.pl-hero__grid {
		gap: 48px;
	}

	.pl-why__head {
		gap: 48px;
	}

	.pl-host__grid {
		gap: 56px;
	}

	/* 4 -> 2x2. The 1px-gap hairline technique needs no change to do this. */
	.pl-benefits {
		grid-template-columns: repeat(2, 1fr);
	}

	.pl-benefits li {
		padding: 36px 28px 38px;
	}
}

/* --- Below 1024px: every two-column grid becomes one column -------------- */
@media (max-width: 1023px) {
	.pl-hero__grid,
	.pl-why__head,
	.pl-host__grid {
		grid-template-columns: 1fr;
	}

	.pl-hero__grid {
		gap: 56px;
	}

	.pl-why__head {
		gap: 24px;
		align-items: start;
	}

	.pl-host__grid {
		gap: 48px;
	}

	/*
	 * The hero phone drops below the copy and caps at 320px; the glow shrinks with
	 * it so it does not halo past the render.
	 */
	.pl-hero__phone {
		max-width: 320px;
	}

	.pl-hero__glow {
		width: 300px;
		height: 300px;
	}

	.pl-why__intro {
		padding-bottom: 0;
		max-width: 620px;
	}

	.pl-host__lead,
	.pl-steps {
		max-width: none;
	}

	.pl-host__photo {
		height: 380px;
	}
}

/* --- Mobile: below 768px ------------------------------------------------- */
@media (max-width: 767px) {
	:root {
		--pl-gutter: 24px;
		--pl-header-h: 81px;
	}

	.pl-hero,
	.pl-why,
	.pl-host,
	.pl-app {
		padding-block: 72px;
	}

	.pl-hero__title {
		font-size: 40px;
	}

	.pl-why__title,
	.pl-host__title,
	.pl-app__title {
		font-size: 32px;
	}

	.pl-lead {
		font-size: 16px;
	}

	.pl-hero__lead {
		max-width: none;
	}

	.pl-hero__actions,
	.pl-app__actions {
		margin-top: 32px;
	}

	/* Full-width buttons stop a two-button row from crushing at 320px. */
	.pl-btn-row .wp-block-button {
		width: 100%;
	}

	.pl-btn-row .wp-block-button__link {
		display: block;
		width: 100%;
	}

	.pl-hero__grid {
		gap: 48px;
	}

	/*
	 * Value statements: two up rather than three, and the 150px cap comes off so
	 * the copy can use the width it has.
	 */
	.pl-values {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 28px 20px;
		margin-top: 48px;
	}

	.pl-values li {
		max-width: none;
		/* The handoff floors body copy at 15px on small screens. */
		font-size: 15px;
	}

	.pl-values strong {
		font-size: 26px;
	}

	.pl-benefits {
		grid-template-columns: 1fr;
		margin-top: 48px;
	}

	.pl-benefits li {
		padding: 32px 0 34px;
		font-size: 15px;
	}

	/*
	 * In one column the 1px grid gap would draw a full-bleed rule; the cards keep
	 * their own separator instead so the hairline still reads as a divider.
	 */
	.pl-benefits {
		gap: 1px;
		padding-inline: 0;
	}

	.pl-host__photo {
		height: 260px;
		border-radius: 20px;
	}

	.pl-steps li {
		gap: 16px;
		font-size: 15px;
	}

	.pl-app__title {
		text-wrap: balance;
	}

	/* --- Header: logo plus a menu button, nav in a full-screen panel ------ */
	.pl-header {
		padding-block: 18px;
	}

	/* A touch smaller than desktop so it sits comfortably beside the 44px button. */
	.pl-header__logo img {
		height: 32px;
	}

	.pl-header__toggle {
		display: flex;
	}

	.pl-nav {
		position: fixed;
		inset: var(--pl-header-h) 0 0 0;
		display: none;
		padding: 8px var(--pl-gutter) 40px;
		background: var(--pl-canvas);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	body.pl-menu-open .pl-nav {
		display: block;
	}

	body.pl-menu-open {
		overflow: hidden;
	}

	.pl-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.pl-nav__list > li {
		display: block;
		border-bottom: 1px solid var(--pl-rule);
	}

	.pl-nav__list > li:last-child {
		border-bottom: 0;
		margin-top: 28px;
	}

	/* Every tap target clears 44px. */
	.pl-nav__link {
		display: flex;
		align-items: center;
		min-height: 56px;
		font-size: 16px;
		letter-spacing: 0.04em;
		color: var(--pl-ink);
	}

	.pl-nav .pl-btn--pill {
		display: block;
		padding-block: 20px;
		text-align: center;
	}

	/* --- Footer stacks --- */
	.pl-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
		padding-block: 36px;
	}

	.pl-footer__nav {
		align-items: flex-start;
		gap: 16px;
	}

	.pl-footer__links {
		justify-content: flex-start;
		gap: 12px 24px;
	}

	.pl-footer__links a {
		display: inline-flex;
		align-items: center;
		min-height: 32px;
	}

	.pl-prose {
		padding-block: 56px 72px;
	}

	.pl-prose__title {
		font-size: 34px;
		margin-bottom: 28px;
	}

	.pl-prose__body h2 {
		font-size: 26px;
	}

	.pl-prose__body h3 {
		font-size: 21px;
	}
}

/* --- Very narrow: 360px and below ---------------------------------------- */
@media (max-width: 400px) {
	.pl-values {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
