/**
 * JSM Homepage — pixel-matched to homepage reference mockup.
 * Scoped to .jsm-homepage / body.jsm-homepage-active
 */

body.jsm-homepage-active .entry-header,
body.jsm-homepage-active .ast-single-post .entry-header,
body.jsm-homepage-active .page-header {
	display: none !important;
}

/* WooCommerce prints its PhotoSwipe shell globally. Its gallery assets are
 * intentionally not loaded on the homepage, so keep that inactive shell out
 * of the document flow without affecting product-page galleries. */
body.jsm-homepage-active .pswp {
	display: none !important;
}

/* Live WooCommerce/Advanced Coupons welcome offer. */
body.jsm-offer-popup-open {
	overflow: hidden;
}

.jsm-homepage .jsm-offer-popup[hidden] {
	display: none !important;
}

.jsm-homepage .jsm-offer-popup {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: grid;
	place-items: center;
	padding: 20px;
}

.jsm-homepage .jsm-offer-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 29, 55, 0.72);
}

.jsm-homepage .jsm-offer-popup__card {
	position: relative;
	z-index: 1;
	width: min(100%, 430px);
	max-height: calc(100vh - 40px);
	max-height: calc(100svh - 40px);
	overflow-y: auto;
	padding: 30px 28px 24px;
	border: 1px solid rgba(79, 172, 237, 0.24);
	border-radius: 24px;
	background: linear-gradient(155deg, #fff 0%, #f5fbff 100%);
	box-shadow: 0 28px 80px rgba(4, 28, 58, 0.34);
	color: #122844;
	text-align: center;
	outline: none;
	animation: jsm-offer-enter 220ms ease-out both;
}

.jsm-homepage .jsm-offer-popup__close {
	position: absolute;
	top: 12px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #52657e;
	font: 400 30px/1 Arial, sans-serif;
	cursor: pointer;
}

.jsm-homepage .jsm-offer-popup__close:hover,
.jsm-homepage .jsm-offer-popup__close:focus-visible {
	background: #eaf5fc;
	color: #122844;
}

.jsm-homepage .jsm-offer-popup__gift {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 12px;
	border-radius: 18px;
	background: #e5f5ff;
	color: #087abd;
}

.jsm-homepage .jsm-offer-popup__eyebrow {
	margin: 0 0 8px;
	color: #087abd;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
}

.jsm-homepage .jsm-offer-popup__title {
	margin: 0;
	color: #122844;
	font-family: Lato, Arial, sans-serif;
	font-size: clamp(1.55rem, 5vw, 2rem);
	font-weight: 700;
	line-height: 1.12;
}

.jsm-homepage .jsm-offer-popup__title-line,
.jsm-homepage .jsm-offer-popup__title-off {
	display: block;
}

.jsm-homepage .jsm-offer-popup__title-off {
	margin: 4px 0;
	color: #087abd;
	font-size: 1.24em;
}

.jsm-homepage .jsm-offer-popup__desc {
	max-width: 34ch;
	margin: 14px auto 18px;
	color: #4b607b;
	font-size: 0.94rem;
	line-height: 1.5;
}

.jsm-homepage .jsm-offer-popup__codebox {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1.5px dashed #62afe0;
	border-radius: 15px;
	background: #edf8ff;
	text-align: left;
}

.jsm-homepage .jsm-offer-popup__codecopy small,
.jsm-homepage .jsm-offer-popup__codecopy strong {
	display: block;
}

.jsm-homepage .jsm-offer-popup__codecopy small {
	margin-bottom: 2px;
	color: #60758e;
	font-size: 0.72rem;
}

.jsm-homepage .jsm-offer-popup__codecopy strong {
	color: #122844;
	font: 800 1.16rem/1.2 Lato, Arial, sans-serif;
	letter-spacing: 0.08em;
	overflow-wrap: anywhere;
}

.jsm-homepage .jsm-offer-popup__copy {
	min-width: 78px;
	min-height: 42px;
	padding: 8px 14px;
	border: 0;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 3px 12px rgba(12, 77, 122, 0.12);
	color: #087abd;
	font-size: 0.84rem;
	font-weight: 800;
	cursor: pointer;
}

.jsm-homepage .jsm-offer-popup__hint {
	margin: 9px 0 17px;
	color: #61758c;
	font-size: 0.76rem;
}

.jsm-homepage .jsm-offer-popup__shop,
.jsm-homepage .jsm-offer-popup__later {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	border-radius: 13px;
	font-weight: 800;
}

.jsm-homepage .jsm-offer-popup__shop {
	background: #122844;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 9px 20px rgba(18, 40, 68, 0.2);
}

.jsm-homepage .jsm-offer-popup__later {
	margin-top: 8px;
	padding: 8px;
	border: 0;
	background: transparent;
	color: #60758e;
	font-size: 0.82rem;
	cursor: pointer;
}

@keyframes jsm-offer-enter {
	from { opacity: 0; transform: translateY(12px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
	.jsm-homepage .jsm-offer-popup {
		padding: 12px;
	}

	.jsm-homepage .jsm-offer-popup__card {
		max-height: calc(100vh - 24px);
		max-height: calc(100svh - 24px);
		padding: 24px 16px 16px;
		border-radius: 19px;
	}

	.jsm-homepage .jsm-offer-popup__gift {
		width: 50px;
		height: 50px;
		margin-bottom: 9px;
	}

	.jsm-homepage .jsm-offer-popup__desc {
		margin: 10px auto 14px;
		font-size: 0.86rem;
	}

	.jsm-homepage .jsm-offer-popup__codebox {
		gap: 8px;
		padding: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jsm-homepage .jsm-offer-popup__card {
		animation: none;
	}
}

body.jsm-homepage-active .site-content,
body.jsm-homepage-active #content,
body.jsm-homepage-active .ast-container,
body.jsm-homepage-active .entry-content {
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-bottom: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

body.jsm-homepage-active #primary,
body.jsm-homepage-active .site-main,
body.jsm-homepage-active article,
body.jsm-homepage-active .entry-content > .jsm-homepage {
	margin: 0 !important;
	padding-bottom: 0 !important;
}

.jsm-homepage {
	--jsm-hp-navy: #003a74;
	--jsm-hp-navy-deep: #002d5c;
	--jsm-hp-blue: #0086d6;
	--jsm-hp-blue-soft: #5eb6e8;
	--jsm-hp-pale: #eef6fc;
	--jsm-hp-card: #ffffff;
	--jsm-hp-card-foot: #f1f6f9;
	--jsm-hp-white: #ffffff;
	--jsm-hp-text: #1a3558;
	--jsm-hp-muted: #5f738a;
	--jsm-hp-line: #e2e8f0;
	--jsm-hp-radius-card: 6px;
	--jsm-hp-radius-btn: 10px;
	--jsm-hp-max: 1180px;
	--jsm-hp-gutter: 24px;
	--jsm-hp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
	color: var(--jsm-hp-text);
	font-size: 16px;
	line-height: 1.55;
	background: var(--jsm-hp-white);
	overflow-x: clip;
}

.jsm-homepage *,
.jsm-homepage *::before,
.jsm-homepage *::after {
	box-sizing: border-box;
}

.jsm-homepage .jsm-hp-shell {
	width: min(100% - 48px, var(--jsm-hp-max));
	margin-inline: auto;
}

.jsm-homepage .jsm-hp-eyebrow {
	margin: 0 0 12px;
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--jsm-hp-navy);
}

.jsm-homepage .jsm-hp-eyebrow--sky {
	color: var(--jsm-hp-blue);
}

.jsm-homepage .jsm-hp-eyebrow--light {
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: 8px;
}

.jsm-homepage .jsm-hp-section-title {
	margin: 0;
	font-size: clamp(1.75rem, 2.5vw, 2.25rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--jsm-hp-navy);
	text-align: center;
}

.jsm-homepage .jsm-hp-section-title--left {
	text-align: left;
}

.jsm-homepage .jsm-hp-section-title span {
	color: var(--jsm-hp-blue);
}

.jsm-homepage .jsm-hp-section-head {
	text-align: center;
	margin: 0 0 40px;
}

.jsm-homepage .jsm-hp-wave-mark {
	display: inline-flex;
	margin-top: 12px;
	color: var(--jsm-hp-blue-soft);
}

/* Buttons — match mockup soft rect radius */
.jsm-homepage .jsm-hp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--jsm-hp-radius-btn);
	font-size: 0.94rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	border: 0;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.jsm-homepage .jsm-hp-btn:hover {
	transform: translateY(-1px);
}

.jsm-homepage .jsm-hp-btn--primary {
	background: var(--jsm-hp-navy);
	color: #fff !important;
	box-shadow: 0 10px 22px rgba(0, 58, 116, 0.24);
	min-width: 148px;
}

.jsm-homepage .jsm-hp-btn--primary:hover {
	background: var(--jsm-hp-navy-deep);
	color: #fff !important;
}

.jsm-homepage .jsm-hp-btn--ghost {
	background: transparent;
	color: var(--jsm-hp-navy) !important;
	padding-left: 6px;
	padding-right: 6px;
	min-height: 44px;
	gap: 10px;
	font-weight: 650;
}

.jsm-homepage .jsm-hp-btn--ghost .jsm-hp-btn__play {
	display: inline-flex;
	color: var(--jsm-hp-blue);
	flex: 0 0 auto;
}

.jsm-homepage .jsm-hp-btn__ghost-label {
	border-bottom: 1px solid rgba(0, 58, 116, 0.28);
	padding-bottom: 1px;
	line-height: 1.2;
}

.jsm-homepage .jsm-hp-btn--outline {
	background: #fff;
	color: var(--jsm-hp-navy) !important;
	border: 1.5px solid var(--jsm-hp-navy);
	min-height: 46px;
}

.jsm-homepage .jsm-hp-btn--outline:hover {
	background: var(--jsm-hp-pale);
	color: var(--jsm-hp-navy) !important;
}

.jsm-homepage .jsm-hp-btn--light {
	background: #fff;
	color: var(--jsm-hp-navy) !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	min-height: 50px;
	padding: 0 26px;
	font-size: 0.98rem;
	position: relative;
	z-index: 2;
}

.jsm-homepage .jsm-hp-btn--light:hover {
	background: var(--jsm-hp-pale);
	color: var(--jsm-hp-navy) !important;
}

/* ========== HERO ========== */
.jsm-homepage .jsm-hp-hero {
	--jsm-hp-hero-max: calc(100vh - var(--jsm-sticky-header-offset, 96px));
	--jsm-hp-hero-max: calc(100dvh - var(--jsm-sticky-header-offset, 96px));
	position: relative;
	isolation: isolate;
	overflow: hidden;
	/* Preserve 16:9 artwork. */
	aspect-ratio: 16 / 9;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: var(--jsm-hp-hero-max);
	margin-inline: 0;
	padding: 28px 0 0;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.jsm-homepage .jsm-hp-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.jsm-homepage .jsm-hp-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	/* Box matches image AR → cover shows full bottle + baked wave */
	object-fit: cover;
	object-position: center center;
}

@media (min-width: 901px) {
	.jsm-homepage .jsm-hp-hero {
		max-height: none;
	}

	.jsm-homepage .jsm-hp-hero,
	.jsm-homepage .jsm-hp-hero__media,
	.jsm-homepage .jsm-hp-hero__img {
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.jsm-homepage .jsm-hp-hero__img {
		object-position: center center;
	}
}

.jsm-homepage .jsm-hp-hero__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	/* Left-only readability; keep bottom wave of the image visible */
	background: linear-gradient(
		90deg,
		rgba(236, 246, 252, 0.72) 0%,
		rgba(236, 246, 252, 0.48) 24%,
		rgba(236, 246, 252, 0.12) 42%,
		rgba(236, 246, 252, 0) 56%
	);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 96%);
	mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 96%);
}

.jsm-homepage .jsm-hp-hero__layout {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
	gap: clamp(12px, 3vw, 36px);
	align-items: center;
	width: min(100% - 48px, var(--jsm-hp-max));
	margin-inline: auto;
	flex: 1 1 auto;
}

.jsm-homepage .jsm-hp-hero__copy {
	max-width: 540px;
}

.jsm-homepage .jsm-hp-hero__spacer {
	min-height: 1px;
}

.jsm-homepage .jsm-hp-hero__title {
	margin: 0 0 14px;
	font-size: clamp(2.55rem, 5.2vw, 3.85rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.035em;
	color: var(--jsm-hp-navy);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.jsm-homepage .jsm-hp-hero__title-line {
	display: block;
}

.jsm-homepage .jsm-hp-hero__lead {
	margin: 0 0 26px;
	max-width: 36ch;
	font-size: clamp(0.98rem, 1.25vw, 1.08rem);
	line-height: 1.55;
	color: var(--jsm-hp-muted);
}

.jsm-homepage .jsm-hp-trust {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px 14px;
}

.jsm-homepage .jsm-hp-trust li {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	min-width: 0;
}

.jsm-homepage .jsm-hp-trust__icon {
	display: inline-flex;
	color: var(--jsm-hp-navy);
	flex: 0 0 auto;
	margin-top: 1px;
}

.jsm-homepage .jsm-hp-trust strong {
	display: block;
	font-size: 0.78rem;
	font-weight: 750;
	color: var(--jsm-hp-navy);
	line-height: 1.25;
}

.jsm-homepage .jsm-hp-trust small {
	display: block;
	margin-top: 2px;
	font-size: 0.7rem;
	color: var(--jsm-hp-muted);
	line-height: 1.3;
}

.jsm-homepage .jsm-hp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 22px;
}

/* Short desktop viewports — keep wave in first screen without redesign */
@media (min-width: 901px) and (max-height: 860px) {
	.jsm-homepage .jsm-hp-hero {
		padding-top: 18px;
	}

	.jsm-homepage .jsm-hp-hero__title {
		margin-bottom: 10px;
		font-size: clamp(2.2rem, 4.2vw, 3.2rem);
	}

	.jsm-homepage .jsm-hp-hero__lead {
		margin-bottom: 16px;
	}

	.jsm-homepage .jsm-hp-trust {
		margin-bottom: 16px;
	}
}

/* ========== RANGE ========== */
.jsm-homepage .jsm-hp-range {
	padding: 56px 0 72px;
	margin-top: 28px;
	background: #fff;
}

.jsm-homepage .jsm-hp-carousel {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
}

.jsm-homepage .jsm-hp-carousel__viewport {
	overflow: hidden;
	width: 100%;
}

.jsm-homepage .jsm-hp-cards,
.jsm-homepage .jsm-hp-carousel__track {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 18px;
	width: 100%;
	transform: translate3d(0, 0, 0);
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.jsm-homepage .jsm-hp-carousel__slide {
	flex: 0 0 calc((100% - 54px) / 4);
	min-width: 0;
}

.jsm-homepage .jsm-hp-carousel__nav {
	appearance: none;
	border: 0 !important;
	background: transparent !important;
	color: #0086d6 !important;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none !important;
	opacity: 0.9;
	transition: opacity 0.2s ease, color 0.2s ease;
	z-index: 2;
}

.jsm-homepage .jsm-hp-carousel__nav svg {
	display: block;
	width: 22px;
	height: 22px;
}

.jsm-homepage .jsm-hp-carousel__nav:hover,
.jsm-homepage .jsm-hp-carousel:hover .jsm-hp-carousel__nav {
	opacity: 1;
	color: #003a74 !important;
}

.jsm-homepage .jsm-hp-carousel__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.jsm-homepage .jsm-hp-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease;
}

.jsm-homepage .jsm-hp-card:hover {
	box-shadow: 0 8px 14px -2px rgba(0, 0, 0, 0.12), 0 3px 6px -1px rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
	.jsm-homepage .jsm-hp-btn:hover {
		transform: none;
	}

	.jsm-homepage .jsm-hp-carousel__track {
		transition: none;
	}
}

/* Top: white product image panel — fixed height so all cards match */
.jsm-homepage .jsm-hp-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	flex: 0 0 220px;
	padding: 20px 18px;
	background: #ffffff;
	text-decoration: none;
	border-bottom: 0;
}

.jsm-homepage .jsm-hp-card__media img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Bottom: pale info panel */
.jsm-homepage .jsm-hp-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
	flex: 1 1 auto;
	text-align: left;
	background: #f1f6f9;
	min-height: 0;
}

.jsm-homepage .jsm-hp-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0a2f5c;
	overflow: visible;
	min-height: 0;
}

.jsm-homepage .jsm-hp-card__title a {
	color: inherit;
	text-decoration: none;
}

.jsm-homepage .jsm-hp-card__desc {
	margin: 0 0 8px;
	font-size: 0.8125rem;
	font-style: italic;
	color: #718096;
	line-height: 1.4;
	flex: 0 1 auto;
	overflow: visible;
}

/* Full-width navy CTA — same format as catalog "ADD TO CART" */
.jsm-homepage .jsm-hp-card__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: auto;
	min-height: 42px;
	padding: 10px 12px;
	border-radius: 2px;
	background: #0a2f5c;
	color: #ffffff !important;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: 0 3px 0 rgba(0, 20, 50, 0.28);
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.jsm-homepage .jsm-hp-card__link:hover {
	background: #082447;
	color: #ffffff !important;
	box-shadow: 0 2px 0 rgba(0, 20, 50, 0.28);
}

.jsm-homepage .jsm-hp-card__link span[aria-hidden="true"] {
	display: none;
}

/* ========== ABOUT ========== */
.jsm-homepage .jsm-hp-about {
	padding: 0;
	margin: 0;
	background: #fff;
	line-height: 0;
}

.jsm-homepage .jsm-hp-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 1fr);
	gap: 0;
	align-items: stretch;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.jsm-homepage .jsm-hp-about__media {
	margin: 0;
	padding: 0;
	line-height: 0;
	overflow: hidden;
	background: transparent;
	align-self: stretch;
	justify-self: stretch;
}

.jsm-homepage .jsm-hp-about__media img,
.jsm-homepage .jsm-hp-about__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	object-fit: cover;
	object-position: left center;
	vertical-align: top;
}

.jsm-homepage .jsm-hp-about__copy {
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: clamp(16px, 2.5vw, 28px);
	padding-right: 20%;
	max-width: none;
	width: 100%;
	justify-self: stretch;
	align-self: center;
	line-height: 1.55;
}

.jsm-homepage .jsm-hp-about__text {
	margin: 14px 0 24px;
	font-size: 0.98rem;
	color: var(--jsm-hp-muted);
	max-width: 48ch;
	line-height: 1.6;
}

.jsm-homepage .jsm-hp-features {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.jsm-homepage .jsm-hp-features li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.jsm-homepage .jsm-hp-features__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: transparent;
	color: var(--jsm-hp-blue);
	flex: 0 0 auto;
}

.jsm-homepage .jsm-hp-features strong {
	display: block;
	font-size: 0.94rem;
	color: var(--jsm-hp-navy);
}

.jsm-homepage .jsm-hp-features small {
	display: block;
	margin-top: 2px;
	font-size: 0.78rem;
	color: var(--jsm-hp-muted);
	line-height: 1.35;
}

.jsm-homepage .jsm-hp-about .jsm-hp-btn--outline {
	border-radius: 999px;
	border-color: var(--jsm-hp-blue);
	color: var(--jsm-hp-blue) !important;
}

.jsm-homepage .jsm-hp-about .jsm-hp-btn--outline:hover {
	background: var(--jsm-hp-pale);
	color: var(--jsm-hp-navy) !important;
	border-color: var(--jsm-hp-navy);
}

.jsm-homepage .jsm-hp-about .jsm-hp-eyebrow {
	color: var(--jsm-hp-blue);
}

/* ========== CTA ========== */
.jsm-homepage .jsm-hp-cta {
	position: relative;
	overflow: hidden;
	background: #003a74;
	padding: 40px 0;
	margin: 0;
}

.jsm-homepage .jsm-hp-cta__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 120px;
}

.jsm-homepage .jsm-hp-cta__title {
	margin: 0 0 8px;
	font-size: clamp(1.7rem, 2.8vw, 2.2rem);
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
}

.jsm-homepage .jsm-hp-cta__text {
	margin: 0;
	max-width: 42ch;
	color: rgba(255, 255, 255, 0.84);
	font-size: 0.98rem;
}

.jsm-homepage .jsm-hp-cta__splash {
	display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
	.jsm-homepage .jsm-hp-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jsm-homepage .jsm-hp-carousel__slide {
		flex: 0 0 calc((100% - 18px) / 2);
	}
}

@media (max-width: 900px) {
	.jsm-homepage .jsm-hp-hero {
		aspect-ratio: auto;
		min-height: 0;
		max-height: none;
		height: auto;
		padding: 28px 0 0;
	}

	.jsm-homepage .jsm-hp-hero__layout,
	.jsm-homepage .jsm-hp-about__grid {
		grid-template-columns: 1fr;
	}

	.jsm-homepage .jsm-hp-hero__layout {
		min-height: 0;
		gap: 8px;
		align-items: start;
		width: min(100% - 32px, var(--jsm-hp-max));
	}

	.jsm-homepage .jsm-hp-hero__spacer {
		display: none;
	}

	.jsm-homepage .jsm-hp-hero__media {
		position: absolute;
		inset: 0;
		min-height: 100%;
	}

	.jsm-homepage .jsm-hp-hero__img {
		object-fit: cover;
		object-position: center bottom;
	}

	.jsm-homepage .jsm-hp-hero__veil {
		background: linear-gradient(
			180deg,
			rgba(236, 246, 252, 0.9) 0%,
			rgba(236, 246, 252, 0.7) 38%,
			rgba(236, 246, 252, 0.25) 68%,
			rgba(236, 246, 252, 0.05) 100%
		);
	}

	.jsm-homepage .jsm-hp-about__grid {
		padding: 0;
		margin: 0;
		width: 100%;
		grid-template-columns: 1fr;
		align-items: stretch;
		gap: 0;
	}

	.jsm-homepage .jsm-hp-about__media {
		margin: 0;
		padding: 0;
	}

	.jsm-homepage .jsm-hp-about__copy {
		padding: 24px 20% 28px clamp(16px, 4vw, 24px);
		max-width: none;
		justify-self: stretch;
	}

	.jsm-homepage .jsm-hp-about__media img {
		width: 100%;
		height: auto;
		min-height: 0;
		object-fit: cover;
		object-position: left center;
	}

	.jsm-homepage .jsm-hp-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.jsm-homepage .jsm-hp-shell {
		width: min(100% - 32px, var(--jsm-hp-max));
	}

	.jsm-homepage .jsm-hp-carousel {
		gap: 4px;
	}

	.jsm-homepage .jsm-hp-carousel__slide {
		flex: 0 0 100%;
	}

	.jsm-homepage .jsm-hp-carousel__nav {
		width: 34px;
		height: 34px;
		opacity: 0.9;
	}

	.jsm-homepage .jsm-hp-carousel__nav svg {
		width: 20px;
		height: 20px;
	}

	.jsm-homepage .jsm-hp-features {
		grid-template-columns: 1fr;
	}

	.jsm-homepage .jsm-hp-card__media {
		height: 200px;
		flex-basis: 200px;
	}

	.jsm-homepage .jsm-hp-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jsm-homepage .jsm-hp-hero__actions {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		gap: 12px;
	}

	.jsm-homepage .jsm-hp-btn--primary,
	.jsm-homepage .jsm-hp-btn--ghost,
	.jsm-homepage .jsm-hp-btn--light {
		width: auto;
		flex: 0 1 auto;
		white-space: nowrap;
	}

	.jsm-homepage .jsm-hp-btn--primary {
		padding-left: 18px;
		padding-right: 18px;
	}

	.jsm-homepage .jsm-hp-btn--ghost {
		gap: 8px;
	}

	.jsm-homepage .jsm-hp-about__grid {
		padding: 0;
		margin: 0;
	}
}

@media (max-width: 400px) {
	.jsm-homepage .jsm-hp-trust {
		grid-template-columns: 1fr;
	}
}


/* —— Mobile homepage CRO polish —— */
@media (max-width: 900px) {
	.jsm-homepage .jsm-hp-hero__copy {
		display: flex;
		flex-direction: column;
		max-width: none;
		width: 100%;
		padding-right: 0;
	}

	.jsm-homepage .jsm-hp-eyebrow {
		order: 1;
		overflow-wrap: anywhere;
	}

	.jsm-homepage .jsm-hp-hero__title {
		order: 2;
		font-size: clamp(1.85rem, 8vw, 2.35rem);
		line-height: 1.12;
		overflow-wrap: anywhere;
	}

	.jsm-homepage .jsm-hp-hero__lead {
		order: 3;
		max-width: none;
		font-size: 0.98rem;
		margin-bottom: 18px;
	}

	/* CTAs before trust — primary conversion path above the fold */
	.jsm-homepage .jsm-hp-hero__actions {
		order: 4;
		margin-bottom: 18px;
	}

	.jsm-homepage .jsm-hp-trust {
		order: 5;
		grid-template-columns: 1fr 1fr;
		gap: 10px 12px;
		margin-bottom: 0;
	}

	.jsm-homepage .jsm-hp-trust li {
		align-items: flex-start;
	}

	.jsm-homepage .jsm-hp-trust li:nth-child(2),
	.jsm-homepage .jsm-hp-trust li:nth-child(3) {
		display: none !important;
	}

	.jsm-homepage .jsm-hp-trust li:first-child {
		transition: opacity 220ms ease, transform 220ms ease;
	}

	.jsm-homepage .jsm-hp-trust li:first-child.is-changing {
		opacity: 0;
		transform: translateY(5px);
	}

	.jsm-homepage .jsm-hp-trust strong {
		font-size: 0.72rem;
	}

	.jsm-homepage .jsm-hp-trust small {
		font-size: 0.66rem;
	}

	.jsm-homepage .jsm-hp-range {
		padding-top: 56px;
		margin-top: 28px;
	}

	.jsm-homepage .jsm-hp-section-head {
		margin-bottom: 22px;
	}

	/* One full card per view — no side cropping */
	.jsm-homepage .jsm-hp-carousel {
		grid-template-columns: 36px minmax(0, 1fr) 36px;
		gap: 4px;
		width: 100%;
	}

	.jsm-homepage .jsm-hp-carousel__viewport {
		overflow: hidden;
		width: 100%;
		max-width: 100%;
	}

	.jsm-homepage .jsm-hp-carousel__slide {
		flex: 0 0 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.jsm-homepage .jsm-hp-card {
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}

	.jsm-homepage .jsm-hp-card__title,
	.jsm-homepage .jsm-hp-card__desc {
		overflow: visible;
		overflow-wrap: anywhere;
		word-break: break-word;
		-webkit-line-clamp: unset;
		display: block;
	}

	.jsm-homepage .jsm-hp-card__media img {
		object-fit: contain;
		object-position: center;
	}
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
	.jsm-homepage .jsm-hp-trust li:first-child {
		transition: none;
	}
}

@media (max-width: 640px) {
	.jsm-homepage .jsm-hp-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		width: 100%;
	}

	.jsm-homepage .jsm-hp-btn--primary,
	.jsm-homepage .jsm-hp-btn--ghost,
	.jsm-homepage .jsm-hp-btn--light {
		width: 100%;
		justify-content: center;
		min-height: 48px;
		white-space: normal;
	}

	/* ghost as outline on mobile for clearer secondary CTA */
	.jsm-homepage .jsm-hp-btn--ghost {
		background: #fff !important;
		border: 1.5px solid var(--jsm-hp-navy) !important;
		color: var(--jsm-hp-navy) !important;
		text-decoration: none !important;
		box-shadow: none !important;
	}

	.jsm-homepage .jsm-hp-trust {
		grid-template-columns: 1fr 1fr;
	}

	.jsm-homepage .jsm-hp-card__media {
		height: 200px;
		flex: 0 0 200px;
		padding: 16px;
	}

	.jsm-homepage .jsm-hp-card__body {
		min-width: 0;
		overflow: visible;
	}

	.jsm-homepage .jsm-hp-range {
		padding: 56px 0 56px;
		margin-top: 28px;
	}
}



/* ===== JSM MOBILE UX PHASE B HERO ===== */
@media (max-width: 767px) {
	.jsm-homepage .jsm-hp-hero {
		aspect-ratio: auto !important;
		min-height: 0 !important;
		height: auto !important;
		max-height: calc(68vh + 16px) !important;
		max-height: calc(68svh + 16px) !important;
		padding: 14px 0 0 !important;
		width: 100% !important;
		justify-content: flex-start !important;
		overflow: hidden !important;
	}

	.jsm-homepage .jsm-hp-hero__media {
		position: absolute !important;
		inset: 0 !important;
		min-height: 0 !important;
		height: auto !important;
		pointer-events: none !important;
	}

	.jsm-homepage .jsm-hp-hero__img {
		object-fit: cover !important;
		object-position: 72% 30% !important;
		width: 100% !important;
		height: 100% !important;
		filter: saturate(0.92);
	}

	.jsm-homepage .jsm-hp-hero__veil {
		background: linear-gradient(
			180deg,
			rgba(245, 250, 255, 0.96) 0%,
			rgba(245, 250, 255, 0.9) 42%,
			rgba(245, 250, 255, 0.55) 72%,
			rgba(245, 250, 255, 0.18) 100%
		) !important;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.jsm-homepage .jsm-hp-hero__layout {
		width: min(100% - 28px, var(--jsm-hp-max));
		padding-bottom: 10px;
	}

	.jsm-homepage .jsm-hp-eyebrow {
		font-size: 0.72rem;
		letter-spacing: 0.08em;
		margin-bottom: 6px;
	}

	.jsm-homepage .jsm-hp-hero__title {
		font-size: clamp(1.7rem, 7.2vw, 2.05rem);
		line-height: 1.12;
		margin-bottom: 8px;
		color: #122844;
		text-shadow: none;
	}

	.jsm-homepage .jsm-hp-hero__lead {
		font-size: 0.92rem;
		line-height: 1.4;
		color: #2a4060;
		margin-bottom: 10px;
		max-width: 34ch;
	}

	.jsm-homepage .jsm-hp-hero__actions {
		order: 4;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		width: 100%;
		margin-bottom: 8px;
	}

	.jsm-homepage .jsm-hp-btn--primary,
	.jsm-homepage .jsm-hp-btn--ghost {
		width: 100%;
		min-height: 50px;
		height: 50px;
		border-radius: 13px;
		justify-content: center;
		font-size: 1rem;
		font-weight: 700;
		padding: 0 18px;
	}

	.jsm-homepage .jsm-hp-btn--primary {
		background: #162b4a !important;
		color: #fff !important;
	}

	.jsm-homepage .jsm-hp-btn--ghost {
		background: #fff !important;
		border: 1.5px solid #162b4a !important;
		color: #162b4a !important;
		text-decoration: none !important;
		box-shadow: none !important;
	}

	.jsm-homepage .jsm-hp-btn--ghost .jsm-hp-btn__play {
		display: none !important;
	}

	.jsm-homepage .jsm-hp-trust {
		order: 5;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 10px 12px;
		margin: 6px 0 0;
		padding: 0 0 4px;
		width: 100%;
		text-align: left;
	}

	.jsm-homepage .jsm-hp-trust li {
		flex: 1 1 calc(33.333% - 8px);
		min-width: 96px;
		gap: 6px;
		align-items: flex-start;
		justify-content: flex-start;
		opacity: 1;
		text-align: left;
	}

	.jsm-homepage .jsm-hp-trust li:nth-child(n + 4) {
		display: none !important;
	}

	.jsm-homepage .jsm-hp-trust__icon {
		width: 16px;
		height: 16px;
		margin-top: 1px;
		opacity: 1;
		color: #162b4a;
		flex: 0 0 auto;
	}

	.jsm-homepage .jsm-hp-trust__icon svg {
		width: 16px;
		height: 16px;
	}

	.jsm-homepage .jsm-hp-trust small {
		display: none;
	}

	.jsm-homepage .jsm-hp-trust strong {
		display: block;
		font-size: 0.8125rem;
		font-weight: 700;
		line-height: 1.25;
		letter-spacing: 0.01em;
		color: #122844;
		text-align: left;
	}

	.jsm-homepage .jsm-hp-hero__lead {
		text-align: left;
	}

	.jsm-homepage .jsm-hp-hero__layout {
		padding-bottom: 18px !important;
	}

	@media (max-width: 360px) {
		.jsm-homepage .jsm-hp-trust li {
			flex: 1 1 100%;
			min-width: 0;
		}
	}
}

@media (max-width: 767px) {
	.jsm-homepage .jsm-hp-hero {
		padding-bottom: 16px !important;
	}
}

/* Keep the fixed desktop header from covering the hero. */
@media (min-width: 901px) {
	body.jsm-homepage-active.jsm-sticky-nav #content.site-content {
		padding-top: var(--jsm-sticky-header-offset, 84px) !important;
	}
}

/* Compact, swipeable two-row product carousel on mobile. */
@media (max-width: 767px) {
	.jsm-homepage .jsm-hp-carousel {
		display: block;
	}

	.jsm-homepage .jsm-hp-carousel__viewport {
		touch-action: pan-y;
	}

	.jsm-homepage .jsm-hp-carousel__track {
		display: grid;
		grid-auto-flow: column;
		grid-template-rows: repeat(2, minmax(0, 1fr));
		grid-auto-columns: calc((100% - 8px) / 2);
		gap: 8px;
	}

	.jsm-homepage .jsm-hp-carousel__slide {
		width: auto;
		max-width: none;
	}

	.jsm-homepage .jsm-hp-carousel__nav {
		position: absolute;
		top: 50%;
		width: 30px;
		height: 38px;
		transform: translateY(-50%);
		background: rgba(255, 255, 255, 0.92) !important;
		border-radius: 999px;
		box-shadow: 0 2px 8px rgba(10, 47, 92, 0.16) !important;
	}

	.jsm-homepage .jsm-hp-carousel__nav--prev {
		left: 4px;
	}

	.jsm-homepage .jsm-hp-carousel__nav--next {
		right: 4px;
	}

	.jsm-homepage .jsm-hp-card__media {
		height: 96px;
		flex-basis: 96px;
		padding: 8px;
	}

	.jsm-homepage .jsm-hp-card__body {
		gap: 4px;
		padding: 9px;
	}

	.jsm-homepage .jsm-hp-card__title {
		font-size: 0.78rem;
		line-height: 1.25;
	}

	.jsm-homepage .jsm-hp-card__desc {
		display: -webkit-box;
		margin-bottom: 4px;
		overflow: hidden;
		font-size: 0.68rem;
		line-height: 1.3;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.jsm-homepage .jsm-hp-card__link {
		min-height: 36px;
		padding: 7px 6px;
		font-size: 0.66rem;
	}
}
