/*
 * GLB PoolSense landing page (template-poolsense-landing.php)
 * Design: XD "Poolsense Quick Launch R2" — /poolsense artboards (1400 desktop, 390 mobile)
 */

.ps-landing {
	--ps-navy: #202a5d;
	--ps-navy-text: #003a70;
	--ps-sky: #48c1e1;
	--ps-sky-icon: #309ade;
	--ps-yellow: #ffd103;
	--ps-gray-wave: #a5a8bf;
	--ps-heading-font: 'Syncopate', sans-serif;
	--ps-body-font: 'Work Sans', sans-serif;

	font-family: var(--ps-body-font);
	color: var(--ps-navy);
	overflow: hidden;
}

/* Theme pads the first block in <main> to clear the header; this hero sits under the header instead */
#pxMainContent > .ps-landing {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

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

.ps-landing h1,
.ps-landing h2,
.ps-landing h3 {
	font-family: var(--ps-heading-font);
	font-weight: 700;
	text-transform: uppercase;
	margin: 0;
	letter-spacing: 0;
}

.ps-landing p {
	margin: 0;
}

.ps-landing ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ps-container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

.ps-heading {
	font-size: 24px;
	line-height: 28px;
	text-align: center;
	color: var(--ps-navy);
}

.ps-heading--white {
	color: #fff;
}

@media (max-width: 767px) {
	.ps-br-desktop {
		display: none;
	}
}

@media (min-width: 768px) {
	.ps-heading {
		font-size: 26px;
	}

	.ps-br-mobile {
		display: none;
	}
}

/* Section backgrounds ---------------------------------------------------- */

.ps-grid-dark,
.ps-grid-light-blue,
.ps-grid-light {
	position: relative;
	isolation: isolate;
}

.ps-grid-dark {
	background-color: var(--ps-navy);
	color: #fff;
}

.ps-grid-light-blue {
	background-color: var(--ps-sky);
}

.ps-grid-dark::before,
.ps-grid-light-blue::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url('assets/images/grid.png') repeat center top / 1400px auto;
	opacity: 0.15;
	pointer-events: none;
}

.ps-grid-light-blue::before {
	opacity: 0.34;
}

.ps-grid-light {
	background: #fff url('assets/images/poolsense/grid-light.webp') repeat center top / 1400px auto;
	padding-bottom: 75px;
	border-bottom: 15px solid var(--ps-yellow);
}

/* Yellow rules between sections */
.ps-intro,
.ps-components,
.ps-benefits {
	border-top: 15px solid var(--ps-yellow);
}

/* Decorative wifi waves */
.ps-wave {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	line-height: 0;
	opacity: 0.1;
	color: #fff;
}

.ps-wave svg {
	display: block;
	width: 100%;
	height: auto;
}

.ps-wave--left,
.ps-wave--gray {
	transform: scaleX(-1);
}

.ps-wave--left {
	width: 330px;
	left: -150px;
	top: 50%;
	margin-top: -305px;
}

.ps-wave--right {
	width: 420px;
	right: -230px;
	top: -30px;
}

.ps-wave--gray {
	color: var(--ps-gray-wave);
	opacity: 0.22;
	width: 420px;
	left: -230px;
	top: 760px;
}

@media (min-width: 768px) {
	/* positions from the XD artboard (1400 wide) */
	.ps-wave--left {
		width: 274px;
		left: -25px;
		top: 30px;
		margin-top: 0;
	}

	.ps-wave--right {
		width: 555px;
		right: -48px;
		top: -44px;
	}

	.ps-wave--gray {
		width: 555px;
		left: -48px;
		top: 811px;
	}
}

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

.ps-btn {
	display: inline-block;
	padding: 6px 18px;
	border: 1px solid #fff;
	border-radius: 10px;
	background: linear-gradient(to right, var(--ps-navy), #0291bf 50%, var(--ps-navy));
	background-size: 200% 100%;
	background-position: 0 0;
	color: #fff;
	font-family: var(--ps-body-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 25px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-position 0.35s ease, box-shadow 0.35s ease;
}

.ps-btn:hover,
.ps-btn:focus-visible {
	background-position: 100% 0;
	color: #fff;
	box-shadow: 0 3px 12px rgba(0, 40, 77, 0.35);
}

.ps-landing a:focus-visible,
.ps-landing summary:focus-visible,
.ps-flip:focus-visible {
	outline: 3px solid var(--ps-yellow);
	outline-offset: 3px;
}

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

.ps-hero {
	position: relative;
	min-height: 710px;
	color: #fff;
	overflow: hidden;
}

.ps-hero__bg,
.ps-hero__bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ps-hero__bg img {
	object-fit: cover;
	object-position: center bottom;
}

.ps-hero__inner {
	position: relative;
	z-index: 1;
	padding: 105px 17px 0;
	min-height: 710px;
}

.ps-hero__logo {
	display: block;
	width: 231px; /* PNG has transparent padding; sized so the artwork matches the XD */
	height: auto;
	margin: -10px 0 15px -3px;
}

.ps-hero__title {
	font-size: 34px;
	line-height: 34px;
	color: #fff;
	text-shadow: 0 0 10px #003a70; /* XD drop shadow */
}

.ps-hero__title span {
	display: block;
	margin-top: 20px;
}

.ps-landing .ps-hero__pill {
	display: table;
	margin: 14px 0 0 3px;
	padding: 3px 10px;
	border-radius: 8px;
	background: #ffd103;
	color: #202a5d;
	font-size: 16px;
	line-height: 23px;
	font-weight: 600; /* Work Sans SemiBold per XD (matches the home hero pill) */
}

.ps-hero__family {
	position: absolute;
	left: 14px;
	top: 426px;
	width: 245px; /* +9% (client 2026-11-17) */
	height: auto;
}

.ps-hero__tagline {
	position: absolute;
	left: 20px;
	right: 0;
	bottom: 34px;
	font-family: var(--ps-heading-font);
	font-weight: 700;
	font-size: 14px;
	line-height: 18px;
	text-transform: uppercase;
	color: var(--ps-navy);
}

/* hero: tablet/desktop composition from 600 (zoomed below 768, see end of file) */
@media (min-width: 600px) {
	.ps-hero,
	.ps-hero__inner {
		min-height: 885px;
	}

	.ps-hero__bg img {
		object-position: center center;
	}

	.ps-hero__inner {
		max-width: 1400px;
		margin: 0 auto;
		padding: 141px 51px 0;
	}

	.ps-hero__logo {
		width: 303px;
		margin: -5px 0 9px -6px;
	}

	.ps-hero__title {
		font-size: 44px;
		line-height: 50px;
	}

	.ps-hero__title span {
		margin-top: 10px; /* XD paragraph spacing */
	}

	.ps-hero__family {
		position: static;
		display: block;
		width: 458px; /* +9% (client 2026-11-17) */
		margin: 24px 0 0 26px;
	}

	.ps-landing .ps-hero__pill {
		margin: 16px 0 0 4px;
	}

	.ps-landing .ps-hero__tagline {
		position: static;
		max-width: 520px;
		margin: -10px 0 0 36px;
		font-size: 18px;
		line-height: 22px;
	}
}

@media (min-width: 1200px) {
	.ps-hero__title {
		font-size: 50px;
	}

	.ps-hero__family {
		width: 537px; /* +9% */
	}

	.ps-landing .ps-hero__tagline {
		font-size: 20px;
		line-height: 24px;
	}
}

/* Intro ------------------------------------------------------------------ */

.ps-intro {
	padding: 50px 0 60px;
}

.ps-intro__lead {
	max-width: 866px;
	margin: 0 auto !important;
	text-align: center;
	font-size: 20px;
	line-height: 1.48;
	font-weight: 500; /* Work Sans Medium per XD */
	color: #fff;
}

.ps-features {
	display: grid;
	gap: 34px;
	max-width: 1180px;
	margin: 46px auto 0 !important;
}

.ps-features__item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ps-features__icon {
	flex: 0 0 87px;
	display: flex;
	justify-content: flex-start;
	color: var(--ps-sky);
	line-height: 0;
}

.ps-features__icon svg {
	display: block;
}

.ps-features__text {
	font-size: 22px;
	line-height: 24px;
	font-weight: 700; /* Work Sans Bold per XD */
	color: #fff;
}

@media (min-width: 768px) {
	.ps-intro {
		padding: 151px 0 151px;
	}

	.ps-intro__lead {
		font-size: 24px;
		line-height: 33.6px;
	}

	.ps-features {
		grid-template-columns: repeat(3, 1fr);
		gap: 30px;
		margin-top: 80px !important;
	}

	.ps-features__text {
		font-size: 18px;
		line-height: 22px;
	}
}

@media (min-width: 1200px) {
	/* column starts match the XD: 80 / 487 / 931 at 1400 */
	.ps-features {
		grid-template-columns: 407px 444px 1fr;
		gap: 0;
		max-width: 1240px;
	}

	.ps-features__item {
		gap: 10px;
	}

	.ps-features__text {
		font-size: 22px;
		line-height: 25.2px;
	}

	.ps-features__item:nth-child(1) .ps-features__text {
		max-width: 245px;
	}

	.ps-features__item:nth-child(2) .ps-features__text {
		max-width: 315px;
	}

	.ps-features__item:nth-child(3) .ps-features__text {
		max-width: 270px;
	}
}

/* Components ------------------------------------------------------------- */

.ps-components {
	padding: 70px 0 60px;
}

.ps-components__grid {
	display: grid;
	gap: 20px;
	max-width: 320px;
	margin: 60px auto 0;
}

/* Card internals from the XD: artwork bottom-aligned at ~297px, title centered at 359px, list from ~400px */
.ps-component {
	background: #fff;
	padding: 0 18px 30px 23px;
}

.ps-component__media {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 297px;
	margin: 0 -18px 0 -23px;
}

.ps-component__media > img:not(.ps-component__hover) {
	width: 126px;
	height: auto;
	margin-bottom: -6px;
}

.ps-component__svg {
	display: block;
	line-height: 0;
}

.ps-component__svg svg {
	width: 100%;
	height: auto;
}

.ps-component__svg--feeder {
	width: 244px;
}

.ps-component__svg--cartridge {
	width: 89px;
	margin-bottom: 3px;
}

.ps-component__svg--pouch {
	width: 58px;
	margin-bottom: 10px;
}

.ps-component__title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	margin: 26px -18px 9px -23px !important;
	text-align: center;
	font-size: 18px;
	line-height: 24px;
	color: var(--ps-navy);
}

.ps-component__list li {
	position: relative;
	padding-left: 15px;
	font-size: 18px;
	line-height: 22px;
	font-weight: 400;
	color: var(--ps-navy);
}

.ps-component__list li + li {
	margin-top: 9px;
}

.ps-component__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--ps-navy);
}

@media (min-width: 768px) {
	.ps-components {
		padding: 108px 0 108px;
	}

	.ps-components__grid {
		grid-template-columns: repeat(2, minmax(0, 320px));
		justify-content: center;
		max-width: none;
		margin-top: 58px;
	}

	.ps-component {
		min-height: 650px;
	}
}

@media (min-width: 1200px) {
	.ps-components__grid {
		grid-template-columns: repeat(4, minmax(0, 320px));
	}

	.ps-component__list li {
		font-size: 16px;
		line-height: 20px;
	}
}

@media (min-width: 1400px) {
	.ps-component__list li {
		font-size: 18px;
		line-height: 22px;
	}
}

/* Hover: swap artwork for the product photo (XD "Hover State"; same 0.3s cross-fade as /poolsensepreview/).
   Positions are the XD's, relative to the 320px card: app 97/45 126w, feeder + cartridge 0/10 320w, pouch -20/-10 360w. */
.ps-component__media {
	position: relative;
}

.ps-component__media > img,
.ps-component__svg {
	transition: opacity .3s ease;
}

.ps-landing .ps-component__hover {
	position: absolute;
	top: 10px;
	left: 0;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.ps-landing .ps-component__hover--app {
	top: 45px;
	left: 50%;
	width: 126px;
	transform: translateX(-50%);
}

.ps-landing .ps-component__hover--pouch {
	top: -10px;
	left: -6.25%;
	width: 112.5%;
}

.ps-component:hover .ps-component__hover {
	opacity: 1;
}

.ps-component:hover .ps-component__media > img:not(.ps-component__hover),
.ps-component:hover .ps-component__svg {
	opacity: 0;
}

/* Benefits (flip cards) -------------------------------------------------- */

.ps-benefits {
	padding: 70px 0 85px;
	overflow: hidden;
}

.ps-benefits .ps-heading {
	max-width: 330px;
	margin: 0 auto;
}

.ps-benefits__grid {
	display: grid;
	grid-template-columns: minmax(0, 308px);
	justify-content: center;
	gap: 25px;
	margin: 60px auto 0 !important;
}

.ps-flip {
	aspect-ratio: 1 / 1;
	cursor: default;
	outline: none;
}

/* No flip: both faces are the same white card stacked in place; hover/focus cross-fades
   front (icon + title) to back (sky icon + copy), like the Nexus cards */
.ps-flip__inner {
	position: relative;
	width: 100%;
	height: 100%;
}

.ps-flip__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 74px 24px 24px;
	text-align: center;
	box-shadow: 0 0 30px #00284d; /* XD drop shadow: 0 0, blur 30, #00284D */
	transition: opacity 0.3s ease;
}

.ps-flip__front {
	background: #fff;
}

.ps-flip__back {
	background: #fff; /* XD hover state: plain white card, no drop shadow */
	box-shadow: none;
	opacity: 0;
}

/* Icons render at their XD artwork size (~76–91px), centered in a 90px band */
.ps-flip__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90px;
	color: var(--ps-navy-text);
	line-height: 0;
}

.ps-flip__icon svg {
	display: block;
}

.ps-flip__back .ps-flip__icon {
	color: #48c1e1;
}

.ps-flip__title {
	margin-top: 40px !important;
	font-size: 26px;
	line-height: 28px;
	color: var(--ps-navy);
}

/* XD hover copy: Work Sans Medium 24/28, 227px box from y 172, short copy centred in that 3-line band */
.ps-flip__text {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 227px;
	max-width: 100%;
	min-height: 84px;
	margin-top: 8px !important;
	font-family: 'Work Sans', var(--ps-body-font);
	font-size: 24px;
	line-height: 28px;
	font-weight: 500;
	color: var(--ps-navy);
}

.ps-flip__text span {
	display: block;
}

/* Flipped state. With JS (grid gets .is-js) mouse hover sets .is-flipped (tap / Enter toggles it on
   touch + keyboard) and only one card is flipped at a time; without JS, fall back to hover/focus. */
@media (hover: hover) {
	.ps-benefits__grid:not(.is-js) .ps-flip:hover .ps-flip__front {
		opacity: 0;
	}

	.ps-benefits__grid:not(.is-js) .ps-flip:hover .ps-flip__back {
		opacity: 1;
	}
}

.ps-benefits__grid:not(.is-js) .ps-flip:focus .ps-flip__front,
.ps-benefits__grid:not(.is-js) .ps-flip:focus-within .ps-flip__front,
.ps-flip.is-flipped .ps-flip__front {
	opacity: 0;
}

.ps-benefits__grid:not(.is-js) .ps-flip:focus .ps-flip__back,
.ps-benefits__grid:not(.is-js) .ps-flip:focus-within .ps-flip__back,
.ps-flip.is-flipped .ps-flip__back {
	opacity: 1;
}

.ps-benefits__grid.is-js .ps-flip {
	cursor: default;
	-webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
	.ps-flip__face {
		transition: none;
	}
}

@media (min-width: 768px) {
	.ps-benefits {
		padding: 63px 0 96px;
	}

	.ps-benefits .ps-heading {
		max-width: 720px;
	}

	.ps-benefits__grid {
		grid-template-columns: repeat(2, minmax(0, 308px));
		gap: 40px;
		margin-top: 40px !important;
	}
}

@media (min-width: 1100px) {
	.ps-benefits__grid {
		grid-template-columns: repeat(3, minmax(0, 308px));
	}
}

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

.ps-cta {
	background: var(--ps-yellow);
	padding: 30px 0 32px;
}

.ps-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	text-align: center;
}

.ps-cta__title {
	font-size: 26px;
	line-height: 30px;
	color: var(--ps-navy-text);
}

.ps-cta__title span {
	display: block;
	margin-top: 22px;
}

@media (min-width: 768px) {
	.ps-cta {
		padding: 30px 0;
	}

	.ps-cta__inner {
		flex-direction: row;
		justify-content: center;
		gap: 38px;
		text-align: left;
	}

	.ps-cta__title span {
		margin-top: 0;
	}
}

/* App -------------------------------------------------------------------- */

.ps-app {
	padding: 50px 0 0;
}

.ps-app__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ps-app__phone {
	width: 220px;
	height: auto;
}

.ps-app__copy {
	max-width: 330px;
	margin-top: 26px;
}

.ps-app__copy p {
	margin-top: 16px;
	font-size: 16px;
	line-height: 19px;
	font-weight: 500; /* Work Sans Medium per XD */
	color: var(--ps-navy);
}

.ps-app__copy .ps-app__soon {
	margin-top: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ps-sky);
}

@media (min-width: 768px) {
	.ps-app {
		padding: 124px 0 0;
	}

	/* phone at x 341, copy 40px to its right (XD @1400) */
	.ps-app__inner {
		flex-direction: row;
		justify-content: flex-start;
		gap: 40px;
		text-align: left;
		padding-left: calc(min(50%, 700px) - 359px); /* % padding is of the full-width section, not this 1400 box — cap so it does not drift/squeeze on wide screens */
		padding-right: 20px;
	}

	.ps-app__phone {
		width: 282px;
	}

	.ps-app__copy {
		margin-top: 0;
		max-width: 396px;
	}

	.ps-heading--left {
		text-align: left;
	}
}

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

.ps-faq {
	padding: 80px 0 0;
}

.ps-faq__list {
	max-width: 914px;
	margin: 30px auto 0;
}

.ps-faq__item {
	background: var(--ps-navy);
	color: #fff;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16); /* XD drop shadow */
}

.ps-faq__item + .ps-faq__item {
	margin-top: 21px;
}

.ps-faq__q {
	position: relative;
	display: block;
	padding: 20px 60px 20px 18px;
	font-family: var(--ps-heading-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 22px;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	list-style: none;
}

.ps-faq__q::-webkit-details-marker {
	display: none;
}

.ps-faq__toggle {
	position: absolute;
	right: 18px;
	top: 21px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ps-sky);
}

.ps-faq__toggle::before,
.ps-faq__toggle::after {
	content: '';
	position: absolute;
	left: 7px;
	right: 7px;
	top: calc(50% - 1px);
	height: 2px;
	border-radius: 1px;
	background: var(--ps-navy);
}

.ps-faq__toggle::after {
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.ps-faq__item[open] .ps-faq__toggle::after {
	transform: rotate(0);
}

.ps-faq__a {
	padding: 0 60px 20px 18px;
}

.ps-faq__a p {
	font-size: 16px;
	line-height: 19px;
	font-weight: 500; /* Work Sans Medium per XD */
	color: #fff;
}

@media (min-width: 768px) {
	.ps-faq {
		padding: 114px 0 0;
	}

	/* XD: 914px box at x=245 (2px right of centre), question text 811px wide, answer text 854px wide */
	.ps-faq__list {
		position: relative;
		left: 2px;
	}

	.ps-faq__item + .ps-faq__item {
		margin-top: 21.5px;
	}

	.ps-faq__q {
		padding: 20px 73px 20px 30px;
		font-size: 18px;
		line-height: 24px;
	}

	.ps-faq__toggle {
		right: 30px;
		top: 20px;
	}

	.ps-faq__a {
		margin-top: -5px;
		padding: 0 30px 18px 30px;
	}
}

/* Explore ---------------------------------------------------------------- */

.ps-explore {
	padding: 80px 0 0;
	text-align: center;
}

.ps-explore .ps-heading {
	max-width: 340px;
	margin: 0 auto 26px;
}

@media (min-width: 768px) {
	.ps-explore {
		padding: 91px 0 0;
	}

	.ps-explore .ps-heading {
		max-width: none;
		margin-bottom: 21px;
	}

	.ps-grid-light {
		padding-bottom: 117px;
	}
}

/* Header on this template matches the homepage (purple utility bar) ------ */

@media (min-width: 768px) {
	.page-template-template-poolsense-landing .site-header__nav .nav-container .secondary-menu {
		background-color: #202a5d;
		color: #fff;
	}

	.page-template-template-poolsense-landing .site-header__nav .nav-container .secondary-menu a,
	.page-template-template-poolsense-landing .site-header__nav .nav-container .secondary-menu form.search-form label input {
		color: #fff;
	}

	.page-template-template-poolsense-landing .site-header__nav .nav-container .secondary-menu form.search-form label input::placeholder {
		color: #fff;
	}

	.page-template-template-poolsense-landing .site-header__nav .nav-container .secondary-menu li.favorites a:before {
		background-image: url('assets/images/icon-favorites--white.svg');
	}

	.page-template-template-poolsense-landing .site-header__nav .nav-container .secondary-menu form.search-form:before {
		background-image: url('assets/images/icon-search--white.svg');
	}

	.page-template-template-poolsense-landing .site-header__nav .nav-container .secondary-menu li a:hover {
		background: #141a3a;
	}
}

/* Mobile spacing — matched to the XD 390px /poolsense artboard ----------- */

@media (max-width: 767px) {
	.ps-heading {
		font-size: 26px;
	}

	.ps-intro {
		padding: 77px 0 88px;
	}

	.ps-features {
		gap: 56px;
		margin-top: 64px !important;
	}

	/* XD sets this one at 22px line height (the other two are 24px) */
	.ps-features__item:nth-child(3) .ps-features__text {
		line-height: 22px;
	}

	.ps-components {
		padding: 111px 0 150px;
	}

	.ps-components .ps-heading {
		font-size: 24px;
		margin: 0 -20px;
	}

	.ps-components__grid {
		gap: 40px;
		margin-top: 60px;
	}

	/* XD card heights */
	.ps-component:nth-child(1) { min-height: 620px; }
	.ps-component:nth-child(2),
	.ps-component:nth-child(3) { min-height: 650px; }
	.ps-component:nth-child(4) { min-height: 550px; }

	.ps-benefits {
		padding: 70px 0 100px;
	}

	.ps-benefits .ps-heading {
		max-width: 350px;
	}

	.ps-benefits__grid {
		gap: 20px;
		margin-top: 37px !important;
	}

	.ps-cta {
		padding: 27px 0 33px;
	}

	.ps-cta__inner {
		gap: 19px;
	}

	.ps-cta__title span {
		margin-top: 20px; /* XD paragraph spacing */
	}

	/* XD: phone 200x410 rotated -5deg = 235px bounding box at y+102; copy 314px wide at x=38 */
	.ps-app {
		padding-top: 102px;
	}

	.ps-app__phone {
		width: 235px;
	}

	.ps-app__copy {
		max-width: 314px;
		margin-top: 45px;
	}

	/* the gray wave is desktop-only in the XD */
	.ps-wave--gray {
		display: none;
	}

	.ps-app__copy p {
		margin-top: 21px;
	}

	.ps-faq {
		padding-top: 103px;
	}

	/* XD: 352px box at x=17, text inset 31px, question text 249px wide, answer text 292px wide */
	.ps-faq__list {
		margin: 32px 1px 0 -3px;
	}

	.ps-faq__q {
		padding: 20px 72px 20px 31px;
		font-size: 18px;
		line-height: 24px;
	}

	.ps-faq__toggle {
		top: 20px;
		right: 30px;
	}

	.ps-faq__a {
		margin-top: -5px;
		padding: 0 29px 20px 31px;
	}

	.ps-explore {
		padding-top: 131px;
	}

	/* XD: 353px text box at x=17 */
	.ps-explore .ps-heading {
		max-width: none;
		margin: 0 0 20px -3px;
	}

	.ps-grid-light {
		padding-bottom: 116px;
	}
}

/* Hero at in-between phone/tablet widths -------------------------------------
   The 390 mobile photo has the phone baked in and covers the hero from the bottom, so as the
   width grows the phone grows up into the headline (from ~440px). Scale the whole hero so its
   layout width stays ~390-430 below 600, and zoom the 768 composition down for 600-767. */
@media (max-width: 359px) {
	.ps-hero {
		zoom: 0.82;
	}
}

@media (min-width: 360px) and (max-width: 389px) {
	.ps-hero {
		zoom: 0.923;
	}
}

@media (min-width: 440px) and (max-width: 499px) {
	.ps-hero {
		zoom: 1.13;
	}
}

@media (min-width: 500px) and (max-width: 549px) {
	.ps-hero {
		zoom: 1.28;
	}
}

@media (min-width: 550px) and (max-width: 599px) {
	.ps-hero {
		zoom: 1.41;
	}
}

@media (min-width: 600px) and (max-width: 683px) {
	.ps-hero {
		zoom: 0.78;
	}
}

@media (min-width: 684px) and (max-width: 767px) {
	.ps-hero {
		zoom: 0.89;
	}
}

/* Large phones / small tablets: two card columns once two fit (the 390 layout left one narrow column) */
@media (min-width: 680px) and (max-width: 767px) {
	.ps-components__grid {
		grid-template-columns: repeat(2, 320px);
		justify-content: center;
		max-width: none;
		gap: 20px;
	}

	.ps-benefits__grid {
		grid-template-columns: repeat(2, 308px);
	}

	.ps-benefits .ps-heading {
		max-width: 600px;
	}
}

/* wide screens: the photo keeps scaling with the width while the 1400 XD content didn't (content looked small and the
   photo cropped) — scale the whole composition in steps, same tiers as the Poolife heroes */
@media (min-width: 1500px) and (max-width: 1649px) {
	.ps-hero {
		zoom: 1.1;
	}
}

@media (min-width: 1650px) and (max-width: 1799px) {
	.ps-hero {
		zoom: 1.2;
	}
}

@media (min-width: 1800px) and (max-width: 2199px) {
	.ps-hero {
		zoom: 1.25;
	}
}

@media (min-width: 2200px) {
	.ps-hero {
		zoom: 1.5;
	}
}

/* where the headline wraps (tablet), balance the lines ("EFFORTLESS / POOL CARE.") instead of leaving "CARE." alone */
.ps-hero__title,
.ps-hero__title span {
	text-wrap: balance;
}

/* Header (scoped: this file only loads on the new PoolSense pages). The last nav item's dropdown ("Contact Us") opens
   50px right of its item, so around 768-900 it runs past the window (1px sideways scroll at 768, menu cut off on hover).
   Anchor it to the item's right edge at those widths. Apply site-wide at launch. */
@media (min-width: 768px) and (max-width: 899px) {
	.site-header .site-header__nav #menu-main-menu > li:last-child > .sub-menu {
		left: auto;
		right: 0;
	}
}
