/* ==========================================================================
   Plenaryn theme
   Colour: navy on white. Cyan only for focus rings and small status dots.
   ========================================================================== */

:root {
	--pl-navy: var(--wp--preset--color--navy);
	--pl-ink: var(--wp--preset--color--ink);
	--pl-text: var(--wp--preset--color--text);
	--pl-muted: var(--wp--preset--color--muted);
	--pl-line: var(--wp--preset--color--line);
	--pl-mist: var(--wp--preset--color--mist);
	--pl-accent: var(--wp--preset--color--accent);
	--pl-ease: cubic-bezier(.2, .7, .2, 1);
	--pl-gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6,
.wp-block-site-title,
.pl-condensed {
	font-stretch: 75%;
	text-wrap: balance;
}
p { text-wrap: pretty; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--pl-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--pl-navy); color: #fff; }

a { text-underline-offset: .18em; text-decoration-thickness: 1px; }

.pl-main { padding-bottom: 0; }
.pl-main > .wp-block-post-content > *:first-child { margin-block-start: 0; }

/* Lead paragraph ---------------------------------------------------------- */
.pl-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
	color: var(--pl-text);
	max-width: 36ch;
}
.pl-muted { color: var(--pl-muted); }

/* ==========================================================================
   Header: one floating bar
   ========================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 60;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; position: relative; }
}

.pl-header {
	padding-top: 12px;
	padding-left: var(--pl-gutter);
	padding-right: var(--pl-gutter);
	pointer-events: none;
}
.pl-bar {
	pointer-events: auto;
	background: #fff; /* solid: a backdrop-filter here would trap the mobile menu inside the bar */
	border: 1px solid rgba(227, 229, 234, .9);
	border-radius: var(--wp--custom--radius--bar);
	box-shadow: var(--wp--preset--shadow--bar);
	padding: 8px 8px 8px 18px;
	min-height: 60px;
	gap: 1rem;
}
.pl-brand { gap: .6rem; }
.pl-brand .wp-block-site-logo img { height: 44px; width: auto; display: block; }
.pl-brand:has(.wp-block-site-logo img) .wp-block-site-title { display: none; }

.pl-wordmark,
.pl-wordmark a {
	font-size: 1.375rem;
	font-weight: 680;
	letter-spacing: -.01em;
	color: var(--pl-navy);
	text-decoration: none;
}

.pl-nav { gap: .25rem; }
.pl-nav .wp-block-navigation-item__content {
	color: var(--pl-ink);
	text-decoration: none;
	padding: .55rem .8rem;
	border-radius: 8px;
	transition: background-color .2s var(--pl-ease), color .2s var(--pl-ease);
}
.pl-nav .wp-block-navigation-item__content:hover { background: var(--pl-mist); }
.pl-nav .current-menu-item > .wp-block-navigation-item__content,
.pl-nav [aria-current="page"] { color: var(--pl-navy); font-weight: 600; }

.pl-nav .pl-nav-cta .wp-block-button__link {
	padding: .65rem 1.05rem;
	border-radius: 10px;
}

@media (min-width: 860px) {
	.pl-nav .pl-nav-cta {
		margin-left: .45rem;
		padding-left: .9rem;
		border-left: 1px solid var(--pl-line);
	}
}

/* Keep the menu button until there is room for every link. */
@media (min-width: 600px) and (max-width: 859px) {
	.pl-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.pl-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

.pl-nav .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	color: var(--pl-navy);
}
.pl-nav .wp-block-navigation__responsive-container-open:hover { background: var(--pl-mist); }

/* Mobile menu sheet */
.pl-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff;
	padding: 1.25rem var(--pl-gutter) 2rem;
	animation: pl-sheet .28s var(--pl-ease) both;
}
.pl-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.25rem;
	gap: 0;
	align-items: stretch;
}
.pl-nav .is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; align-items: stretch; }
.pl-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--pl-line); }
.pl-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: 1.9rem;
	font-weight: 620;
	font-stretch: 75%;
	padding: .9rem 0;
	width: 100%;
}
.pl-nav .is-menu-open .wp-block-navigation-item__content:hover { background: none; color: var(--pl-navy); }
.pl-nav .is-menu-open .pl-nav-cta { width: 100%; margin-top: 1.25rem; }
.pl-nav .is-menu-open .pl-nav-cta .wp-block-button { width: 100%; }
.pl-nav .is-menu-open .pl-nav-cta .wp-block-button__link { width: 100%; padding: 1rem; font-size: 1rem; }
.pl-nav .wp-block-navigation__responsive-container-close { top: 1.6rem; right: var(--pl-gutter); }

@keyframes pl-sheet {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wp-element-button, .wp-block-button__link {
	transition: background-color .2s var(--pl-ease), color .2s var(--pl-ease), transform .2s var(--pl-ease), box-shadow .2s var(--pl-ease);
}
.wp-block-button:not(.is-style-text-link) .wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button:not(.is-style-text-link) .wp-block-button__link:active { transform: none; }

.wp-block-button.is-style-quiet .wp-block-button__link {
	background: #fff;
	color: var(--pl-ink);
	box-shadow: inset 0 0 0 1px var(--pl-line);
}
.wp-block-button.is-style-quiet .wp-block-button__link:hover { background: var(--pl-mist); color: var(--pl-navy); }

.wp-block-button.is-style-text-link .wp-block-button__link {
	background: none;
	color: var(--pl-navy);
	padding: .35rem 0;
	border-radius: 0;
	font-weight: 560;
}
.wp-block-button.is-style-text-link .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: .4em;
	transition: transform .2s var(--pl-ease);
}
.wp-block-button.is-style-text-link .wp-block-button__link:hover::after { transform: translateX(3px); }
.pl-footer .wp-block-button.is-style-text-link .wp-block-button__link::after { content: "↗"; }

/* ==========================================================================
   Sections and backgrounds (all drawn from the products themselves)
   ========================================================================== */

.pl-section {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--50);
	position: relative;
}
.pl-section.is-style-mist,
.pl-band { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }

.wp-block-group.is-style-mist { background: var(--pl-mist); }
.pl-section.pl-flush-top { padding-top: 0; }

/* Hero: ruled paper, like the forms the apps replace. */
.pl-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: -84px;
	padding-top: calc(84px + var(--wp--preset--spacing--50));
	padding-bottom: var(--wp--preset--spacing--40);
}
.pl-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(to right, transparent calc(50% + 2.5rem), rgba(14, 30, 91, .09) calc(50% + 2.5rem), rgba(14, 30, 91, .09) calc(50% + 2.5rem + 1px), transparent calc(50% + 2.5rem + 1px)),
		repeating-linear-gradient(to bottom, transparent 0 35px, rgba(14, 30, 91, .065) 35px 36px),
		radial-gradient(70% 90% at 82% 30%, rgba(14, 30, 91, .07), transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse 75% 85% at 72% 45%, #000 35%, transparent 78%);
	mask-image: radial-gradient(ellipse 75% 85% at 72% 45%, #000 35%, transparent 78%);
}
@media (max-width: 781px) {
	.pl-hero { padding-top: calc(84px + 1.75rem); }
	.pl-hero::before {
		-webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 60%, transparent 100%);
		mask-image: linear-gradient(to bottom, transparent 30%, #000 60%, transparent 100%);
		background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(14, 30, 91, .065) 35px 36px);
	}
}
.pl-hero h1 { max-width: 13ch; margin-bottom: 0; }
.pl-hero .pl-lead { margin-top: 1.5rem; }
.pl-hero .wp-block-buttons { margin-top: 2rem; }
.pl-hero__caption {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--pl-muted);
	text-align: right;
	margin-top: 2.25rem !important;
}

/* Delivery: a faint street map with the route. */
.pl-route-bg {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.pl-route-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='420' viewBox='0 0 560 420' fill='none' stroke='%230E1E5B' stroke-opacity='.07'%3E%3Cpath d='M0 92h560M0 238h560M0 356h560M84 0v420M232 0v420M398 0v420M512 0v420' stroke-width='14'/%3E%3Cpath d='M0 164h560M0 300h560M160 0v420M316 0v420M460 0v420' stroke-width='5'/%3E%3Cpath d='M-20 420L300 -20M260 440L580 120' stroke-width='9'/%3E%3C/svg%3E");
	background-size: 560px 420px;
	-webkit-mask-image: radial-gradient(ellipse 60% 80% at 70% 50%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 60% 80% at 70% 50%, #000 20%, transparent 75%);
}

/* Navy band: the one dark moment on a page. */
.pl-band {
	background: var(--pl-navy);
	color: rgba(255, 255, 255, .78);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}
.pl-band::before {
	/* tiled floor, seen from above */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 70% 90% at 25% 50%, #000 20%, transparent 80%);
	mask-image: radial-gradient(ellipse 70% 90% at 25% 50%, #000 20%, transparent 80%);
}
.pl-band h2, .pl-band h3 { color: #fff; }
.pl-band a:not(.wp-element-button) { color: #fff; }
.pl-band .wp-block-button:not(.is-style-text-link) .wp-block-button__link { background: #fff; color: var(--pl-navy); }
.pl-band .wp-block-button:not(.is-style-text-link) .wp-block-button__link:hover { background: var(--pl-mist); }
.pl-band .wp-block-button.is-style-text-link .wp-block-button__link { color: #fff; }

/* ==========================================================================
   App index (home): a typeset list, not cards
   ========================================================================== */

.pl-index-head { align-items: end !important; margin-bottom: var(--wp--preset--spacing--40); }
.pl-index-head h2 { max-width: 14ch; margin: 0; }
.pl-index-head p { max-width: 38ch; color: var(--pl-muted); margin: 0; }

.pl-index { border-top: 1px solid var(--pl-ink); }
.pl-index__row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(8rem, 15rem) 1fr auto;
	gap: .5rem 2rem;
	align-items: baseline;
	padding: 1.6rem 0;
	border-bottom: 1px solid var(--pl-line);
	transition: padding .3s var(--pl-ease);
}
.pl-index__row > * { margin: 0 !important; }
.pl-index__row h3 {
	font-size: clamp(1.75rem, 3vw, 2.375rem);
	color: var(--pl-navy);
}
.pl-index__row h3 a { color: inherit; text-decoration: none; }
.pl-index__row h3 a::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.pl-index__row p { max-width: 52ch; }
.pl-index__row .pl-index__go {
	font-size: var(--wp--preset--font-size--small);
	color: var(--pl-muted);
	white-space: nowrap;
	transition: color .2s var(--pl-ease), transform .25s var(--pl-ease);
}
.pl-index__row:hover { padding-left: .75rem; }
.pl-index__row:hover .pl-index__go { color: var(--pl-navy); transform: translateX(4px); }
.pl-index__row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -2px;
	border-radius: 50%;
	background: var(--pl-accent);
	opacity: 0;
	transform: scale(.4);
	transition: opacity .2s, transform .3s var(--pl-ease);
}
.pl-index__row:hover::before { opacity: 1; transform: none; }
@media (max-width: 700px) {
	.pl-index__row { grid-template-columns: 1fr; padding: 1.25rem 0; }
	.pl-index__row .pl-index__go { display: none; }
	.pl-index__row:hover { padding-left: 0; }
}

/* Feature splits */
.pl-split { gap: clamp(2rem, 6vw, 5.5rem) !important; }
.pl-split h2 { max-width: 15ch; }
.pl-split .pl-points { margin-top: 1.75rem; }

.pl-points {
	list-style: none;
	padding: 0 !important;
	margin-left: 0;
	border-top: 1px solid var(--pl-line);
}
.pl-points li {
	padding: .8rem 0 .8rem 1.4rem;
	border-bottom: 1px solid var(--pl-line);
	position: relative;
}
.pl-points li::before {
	content: "";
	position: absolute;
	left: .1rem;
	top: 1.32rem;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--pl-navy);
}
.pl-band .pl-points, .pl-band .pl-points li { border-color: rgba(255, 255, 255, .14); }
.pl-band .pl-points li::before { background: var(--pl-accent); }

/* Custom work: two columns of terms */
.pl-terms { border-top: 1px solid var(--pl-line); }
.pl-terms .wp-block-column > * + * { margin-top: 0; }
.pl-term { padding: 1.4rem 0; border-bottom: 1px solid var(--pl-line); }
.pl-term h3 { font-size: var(--wp--preset--font-size--md); margin: 0 0 .35rem; }
.pl-term p { margin: 0; color: var(--pl-text); }

/* Closing line */
.pl-closing h2 { font-size: var(--wp--preset--font-size--display); max-width: 15ch; line-height: 1; }
.pl-closing .pl-contact-line { font-size: var(--wp--preset--font-size--lead); }
.pl-contact-line a { color: var(--pl-ink); text-decoration-color: var(--pl-line); }
.pl-contact-line a:hover { text-decoration-color: var(--pl-navy); color: var(--pl-navy); }

/* Lists */
.wp-block-list.is-style-plain { list-style: none; padding-left: 0 !important; }
.wp-block-list.is-style-plain li { margin: .35rem 0; }

.wp-block-list.is-style-steps {
	list-style: none;
	counter-reset: step;
	padding-left: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 0 2.5rem;
	border-top: 1px solid var(--pl-ink);
}
.wp-block-list.is-style-steps > li {
	counter-increment: step;
	padding: 1.4rem 0 1.6rem;
	border-bottom: 1px solid var(--pl-line);
}
.wp-block-list.is-style-steps > li::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	font-stretch: 75%;
	font-weight: 600;
	font-size: 1.75rem;
	color: var(--pl-navy);
	margin-bottom: .6rem;
	font-variant-numeric: tabular-nums;
}
.wp-block-list.is-style-steps strong { color: var(--pl-ink); display: block; margin-bottom: .2rem; }

/* Page titles */
.pl-page { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--60); }
.pl-page__title { margin-bottom: var(--wp--preset--spacing--40); }

.pl-pagehead { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.pl-pagehead h1 { max-width: 16ch; }

/* Product hero */
.pl-product-hero .pl-price {
	font-size: var(--wp--preset--font-size--small);
	color: var(--pl-muted);
	margin-top: 1.5rem;
}
.pl-product-hero .pl-price strong { color: var(--pl-ink); font-size: 1.15rem; font-weight: 620; }

/* ==========================================================================
   Product mock-ups
   ========================================================================== */

.pl-mock {
	--r: var(--wp--custom--radius--l);
	font-size: 14px;
	line-height: 1.45;
	color: var(--pl-ink);
	font-variant-numeric: tabular-nums;
}
.pl-sheet {
	background: #fff;
	border: 1px solid var(--pl-line);
	border-radius: var(--r);
	box-shadow: var(--wp--preset--shadow--sheet);
	position: relative;
}
.pl-stack { position: relative; max-width: 520px; margin-left: auto; margin-right: auto; }
.pl-stack::before {
	/* the previous note, filed underneath */
	content: "";
	position: absolute;
	inset: 18px -12px -14px 22px;
	background: #fff;
	border: 1px solid var(--pl-line);
	border-radius: var(--wp--custom--radius--l);
	transform: rotate(2.4deg);
	box-shadow: 0 10px 30px -18px rgba(14, 30, 91, .35);
}

.pl-app {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 620;
	font-size: 13px;
	color: var(--pl-navy);
}
.pl-app b {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--pl-navy);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	font-stretch: 75%;
}
.pl-pill {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: 3px 10px;
	border: 1px solid var(--pl-line);
	border-radius: 999px;
	font-size: 12px;
	color: var(--pl-text);
	white-space: nowrap;
}
.pl-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--pl-accent);
	flex: none;
}
.pl-mock__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pl-mock__k { font-size: 11.5px; color: var(--pl-muted); }

/* GRN ------------------------------------------------------------------- */
.pl-grn { padding: 22px 24px 20px; }
.pl-grn__title { margin: 18px 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.pl-grn__title strong { font-size: 28px; font-stretch: 75%; font-weight: 640; letter-spacing: -.01em; }
.pl-grn__title span { color: var(--pl-muted); font-size: 13px; }
.pl-grn__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 20px;
	margin: 0 0 16px;
	padding: 14px 0;
	border-top: 1px solid var(--pl-line);
	border-bottom: 1px solid var(--pl-line);
}
.pl-grn__meta div { min-width: 0; }
.pl-grn__meta dt { font-size: 11.5px; color: var(--pl-muted); }
.pl-grn__meta dd { margin: 0; font-weight: 520; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-lines { width: 100%; border-collapse: collapse; }
.pl-lines th { font-size: 11.5px; font-weight: 500; color: var(--pl-muted); text-align: left; padding: 0 0 6px; }
.pl-lines th:not(:first-child), .pl-lines td:not(:first-child) { text-align: right; width: 22%; }
.pl-lines td { padding: 9px 0; border-top: 1px solid var(--pl-line); }
.pl-got { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; font-weight: 600; }
.pl-got::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--pl-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.pl-got.is-short::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--pl-muted); background-image: none; }
.pl-short { font-size: 11px; color: var(--pl-text); background: var(--pl-mist); border-radius: 4px; padding: 1px 5px; margin-left: 4px; font-weight: 500; }
.pl-grn__note { margin: 12px 0 0; padding: 10px 12px; background: var(--pl-mist); border-radius: 8px; font-size: 13px; color: var(--pl-text); }
.pl-sign { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 14px; }
.pl-sign svg { width: 120px; height: 38px; overflow: visible; }
.pl-sign path { fill: none; stroke: var(--pl-navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-sign span { font-size: 11.5px; color: var(--pl-muted); text-align: right; }
.pl-swap { display: inline-grid; }
.pl-swap > * { grid-area: 1 / 1; }

/* Delivery (PlenVite) ----------------------------------------------------- */
.pl-pod { padding: 0; overflow: hidden; max-width: 460px; margin-inline: auto; }
.pl-pod__map { height: 150px; background: var(--pl-mist); position: relative; border-bottom: 1px solid var(--pl-line); }
.pl-pod__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-pod__streets { stroke: #fff; fill: none; }
.pl-pod__route { stroke: var(--pl-navy); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 0; }
.pl-pod__stop { fill: #fff; stroke: var(--pl-navy); stroke-width: 2.5; }
.pl-pod__here { fill: var(--pl-accent); }
.pl-pod__body { padding: 18px 22px 20px; }
.pl-pod__rows { margin: 14px 0 0; display: grid; gap: 0; }
.pl-pod__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: 9px 0; border-top: 1px solid var(--pl-line); }
.pl-pod__rows dt { color: var(--pl-muted); }
.pl-pod__rows dd { margin: 0; font-weight: 520; text-align: right; }
.pl-photos { display: flex; gap: 6px; }
.pl-photos i { width: 30px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #DCE0E8, #EEF0F4); display: block; position: relative; overflow: hidden; }
.pl-photos i::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 5px; height: 10px; background: #C9CFDA; border-radius: 2px; }

/* Attendance (PlenPoint) -------------------------------------------------- */
.pl-phone {
	width: min(300px, 100%);
	margin-inline: auto;
	background: #fff;
	border-radius: 38px;
	padding: 12px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.pl-phone__screen { border-radius: 28px; background: #fff; padding: 22px 18px 18px; border: 1px solid var(--pl-line); min-height: 470px; display: flex; flex-direction: column; }
.pl-phone__status { display: flex; justify-content: space-between; font-size: 11px; color: var(--pl-muted); margin-bottom: 22px; }
.pl-hello { font-size: 13px; color: var(--pl-muted); }
.pl-hello strong { display: block; font-size: 24px; font-stretch: 75%; font-weight: 640; color: var(--pl-ink); line-height: 1.1; margin-top: 2px; }
.pl-clock { font-size: 54px; font-weight: 600; font-stretch: 75%; color: var(--pl-navy); letter-spacing: -.01em; margin: 22px 0 6px; line-height: 1; }
.pl-where { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--pl-text); }
.pl-where .pl-dot { position: relative; }
.pl-checkin {
	margin-top: auto;
	position: relative;
	display: grid;
	height: 54px;
	border-radius: 14px;
	background: var(--pl-navy);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	place-items: center;
	overflow: hidden;
}
.pl-checkin > span { grid-area: 1 / 1; }
.pl-days { margin: 20px 0 16px; border-top: 1px solid var(--pl-line); font-size: 12.5px; }
.pl-days div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--pl-line); }
.pl-days span:last-child { color: var(--pl-muted); }

/* Device register (PlenVue) ----------------------------------------------- */
.pl-register { padding: 20px 22px 8px; max-width: 560px; margin-inline: auto; position: relative; }
.pl-register table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.pl-register th { font-size: 11.5px; font-weight: 500; color: var(--pl-muted); text-align: left; padding: 0 8px 6px 0; }
.pl-register td { padding: 11px 8px 11px 0; border-top: 1px solid var(--pl-line); vertical-align: top; }
.pl-register td:first-child { font-family: var(--wp--preset--font-family--mono); font-size: 12.5px; color: var(--pl-navy); white-space: nowrap; }
.pl-register td small { display: block; color: var(--pl-muted); font-size: 12px; }
.pl-register tr.is-hit td { background: linear-gradient(90deg, rgba(14, 30, 91, .055), rgba(14, 30, 91, 0)); }
.pl-state { font-size: 12px; white-space: nowrap; }
.pl-state::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pl-navy); margin-right: 6px; vertical-align: 1px; }
.pl-state.is-repair::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--pl-muted); }
.pl-state.is-spare::before { background: var(--pl-line); }
.pl-toast {
	position: absolute;
	right: 16px;
	top: -16px;
	background: var(--pl-ink);
	color: #fff;
	font-size: 12px;
	padding: 7px 12px;
	border-radius: 8px;
	display: flex;
	gap: 8px;
	align-items: center;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4);
}
@media (max-width: 520px) {
	.pl-register .pl-hide-s { display: none; }
	.pl-grn { padding: 18px 16px; }
	.pl-grn__meta { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Motion. Only runs when JS adds .pl-motion (not for "reduce motion").
   ========================================================================== */

.pl-motion .pl-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .8s var(--pl-ease), transform .8s var(--pl-ease);
}
.pl-motion .pl-reveal.is-in { opacity: 1; transform: none; }

/* Hero entrance (above the fold, no scroll needed) */
.pl-motion .pl-hero h1,
.pl-motion .pl-hero .pl-lead,
.pl-motion .pl-hero .wp-block-buttons { animation: pl-rise .9s var(--pl-ease) both; }
.pl-motion .pl-hero .pl-lead { animation-delay: .08s; }
.pl-motion .pl-hero .wp-block-buttons { animation-delay: .16s; }
.pl-motion .pl-hero .pl-stack { animation: pl-rise 1s var(--pl-ease) .12s both; }
@keyframes pl-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pl-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pl-pop { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 196, 207, .55); } 100% { box-shadow: 0 0 0 9px rgba(0, 196, 207, 0); } }

/* GRN: lines get checked one by one, then the note is signed. */
.pl-motion .pl-grn .pl-lines tbody tr { opacity: .3; }
.pl-motion .pl-grn .pl-got::before { opacity: 0; }
.pl-motion .pl-grn .pl-swap .is-after { opacity: 0; }
.pl-motion .pl-grn .pl-sign path { stroke-dasharray: 420; stroke-dashoffset: 420; }
.pl-motion .pl-grn .pl-grn__note { opacity: 0; }
.pl-motion .pl-grn.is-in .pl-lines tbody tr { animation: pl-row .5s var(--pl-ease) both; animation-delay: calc(.7s + var(--i) * .45s); }
.pl-motion .pl-grn.is-in .pl-got::before { animation: pl-pop .45s var(--pl-ease) both; animation-delay: calc(.85s + var(--i) * .45s); }
.pl-motion .pl-grn.is-in .pl-grn__note { animation: pl-fade .5s ease both 2.7s; }
.pl-motion .pl-grn.is-in .pl-sign path { animation: pl-draw 1.4s ease-out both 3s; }
.pl-motion .pl-grn.is-in .pl-swap .is-before { animation: pl-out .3s ease both 4.3s; }
.pl-motion .pl-grn.is-in .pl-swap .is-after { animation: pl-fade .3s ease both 4.4s; }
@keyframes pl-row { from { opacity: .3; } to { opacity: 1; } }

/* Delivery: the van's route draws, then the stop is confirmed. */
.pl-motion .pl-pod .pl-pod__route { stroke-dasharray: 700; stroke-dashoffset: 700; }
.pl-motion .pl-pod .pl-pod__here { opacity: 0; }
.pl-motion .pl-pod .pl-sign path { stroke-dasharray: 420; stroke-dashoffset: 420; }
.pl-motion .pl-pod .pl-swap .is-after { opacity: 0; }
.pl-motion .pl-pod.is-in .pl-pod__route { animation: pl-draw 2.2s cubic-bezier(.4, .1, .3, 1) both .3s; }
.pl-motion .pl-pod.is-in .pl-pod__here { animation: pl-fade .3s ease both 2.4s; }
.pl-motion .pl-pod.is-in .pl-sign path { animation: pl-draw 1.3s ease-out both 2.6s; }
.pl-motion .pl-pod.is-in .pl-swap .is-before { animation: pl-out .3s ease both 3.8s; }
.pl-motion .pl-pod.is-in .pl-swap .is-after { animation: pl-fade .3s ease both 3.9s; }

/* Check-in: location confirmed, button pressed, time recorded. */
.pl-motion .pl-phone .pl-checkin .is-after { opacity: 0; }
.pl-motion .pl-phone.is-in .pl-where .pl-dot { animation: pl-pulse 1.4s ease-out 3 .4s; }
.pl-motion .pl-phone.is-in .pl-checkin { animation: pl-press .35s ease both 2.2s; }
.pl-motion .pl-phone.is-in .pl-checkin .is-before { animation: pl-out .25s ease both 2.4s; }
.pl-motion .pl-phone.is-in .pl-checkin .is-after { animation: pl-fade .3s ease both 2.5s; }
@keyframes pl-press { 50% { transform: scale(.97); } }

/* Register: a device is scanned and its row lights up. */
.pl-motion .pl-register .pl-toast { opacity: 0; transform: translateY(6px); }
.pl-motion .pl-register tr.is-hit td { background-size: 0 100%; background-repeat: no-repeat; }
.pl-motion .pl-register.is-in .pl-toast { animation: pl-rise .5s var(--pl-ease) both 1s; }
.pl-motion .pl-register.is-in tr.is-hit td { animation: pl-sweep .9s var(--pl-ease) both 1.3s; }
@keyframes pl-sweep { to { background-size: 100% 100%; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.pl-form { max-width: 640px; }
.pl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 600px) { .pl-form__row { grid-template-columns: 1fr; } }
.pl-field { margin: 0 0 1.1rem; }
.pl-field label { display: block; font-size: var(--wp--preset--font-size--small); font-weight: 560; color: var(--pl-ink); margin-bottom: .4rem; }
.pl-field label span { color: var(--pl-muted); font-weight: 400; }
.pl-field input,
.pl-field select,
.pl-field textarea {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	color: var(--pl-ink);
	background: #fff;
	border: 1px solid #D3D6DD;
	border-radius: 10px;
	padding: .75rem .9rem;
	transition: border-color .2s, box-shadow .2s;
}
.pl-field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236A6F7B' stroke-width='1.6'/%3E%3C/svg%3E") right .9rem center no-repeat; padding-right: 2.4rem; }
.pl-field input:hover, .pl-field select:hover, .pl-field textarea:hover { border-color: #B9BDC7; }
.pl-field input:focus, .pl-field select:focus, .pl-field textarea:focus { outline: none; border-color: var(--pl-navy); box-shadow: 0 0 0 3px rgba(0, 196, 207, .28); }
.pl-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pl-form__note { padding: .9rem 1rem; border-radius: 10px; background: var(--pl-mist); border-left: 3px solid var(--pl-muted); }
.pl-form__note--ok { border-left-color: var(--pl-navy); }
.pl-form__actions { margin-top: .5rem; }
.pl-form button { cursor: pointer; border: 0; }

/* Contact details list */
.pl-reach > div { padding: 1.1rem 0; border-bottom: 1px solid var(--pl-line); }
.pl-reach > div:first-child { border-top: 1px solid var(--pl-ink); }
.pl-reach h3 { font-size: var(--wp--preset--font-size--small); font-stretch: 100%; font-weight: 560; color: var(--pl-muted); margin: 0 0 .2rem; letter-spacing: 0; }
.pl-reach p { margin: 0; font-size: var(--wp--preset--font-size--lead); color: var(--pl-ink); }
.pl-reach a { color: var(--pl-ink); text-decoration-color: var(--pl-line); }
.pl-reach a:hover { color: var(--pl-navy); text-decoration-color: currentColor; }
.pl-reach p:empty, .pl-reach div:has(> p:empty) { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.pl-footer {
	margin-top: 0;
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: 1.5rem;
	border-top: 1px solid var(--pl-line);
	font-size: var(--wp--preset--font-size--small);
	color: var(--pl-text);
}
.pl-footer .wp-block-site-logo img { height: 40px; width: auto; display: block; }
.pl-footer .wp-block-site-logo { margin-bottom: 1rem; }
.pl-footer .wp-block-column:has(.wp-block-site-logo img) .wp-block-site-title { display: none; }
.pl-footer__about { max-width: 30ch; color: var(--pl-muted); }
.pl-footer__h {
	font-size: var(--wp--preset--font-size--small);
	font-stretch: 100%;
	font-weight: 600;
	color: var(--pl-ink);
	margin-bottom: .75rem;
}
.pl-footer a { color: var(--pl-text); text-decoration: none; }
.pl-footer a:hover { color: var(--pl-navy); text-decoration: underline; }
.pl-footer .wp-block-column p { margin: 0 0 .5rem; }
.pl-footer__base {
	margin-top: var(--wp--preset--spacing--40);
	padding-top: 1.25rem;
	border-top: 1px solid var(--pl-line);
	color: var(--pl-muted);
	font-size: var(--wp--preset--font-size--xs);
}
.pl-footer__base p { margin: 0; }
.pl-footer__base .wp-block-buttons { gap: 1.5rem; }
.pl-footer__base .wp-block-button__link { font-size: var(--wp--preset--font-size--xs); color: var(--pl-text) !important; font-weight: 500; }

/* Editor niceties */
.editor-styles-wrapper .pl-reveal { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .pl-hero { margin-top: 0; padding-top: var(--wp--preset--spacing--60); }
