/**
 * Three-column feature row — Pump homepage Figma ~329:8.
 */

.three-column-feature {
	--three-col-ink: #231f20;
	--three-col-green: #699528;
	--three-col-cta: #b5dc7b;
	--three-col-left-parallax-y: 0px;
	box-sizing: border-box;
	width: 100%;
	color: var(--three-col-ink);
}

.three-column-feature__inner {
	box-sizing: border-box;
	max-width: min(100%, var(--section-inner-max));
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 48px);
}

.three-column-feature__grid {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: clamp(28px, 5vw, 70px);
	min-width: 0;
}

@media (min-width: 980px) {
	.three-column-feature--has-left.three-column-feature--has-right .three-column-feature__grid {
		grid-template-columns: minmax(200px, 1.05fr) minmax(280px, 400px) minmax(240px, 397px);
	}

	.three-column-feature:not(.three-column-feature--has-left).three-column-feature--has-right .three-column-feature__grid {
		grid-template-columns: minmax(280px, 400px) minmax(240px, 397px);
	}

	.three-column-feature--has-left:not(.three-column-feature--has-right) .three-column-feature__grid {
		grid-template-columns: minmax(200px, 1.05fr) minmax(280px, 400px);
	}
}

.three-column-feature__col {
	min-width: 0;
}

.three-column-feature__left-stage {
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-block: clamp(12px, 3vw, 32px);
	margin-inline: clamp(-12px, -2vw, -32px);
}

.three-column-feature__left-slide {
	/* Fade + slide; alpha PNG stays clean with drop-shadow on the img (no overflow clip on the wrapper). */
	will-change: transform, opacity;
	opacity: 0;
	pointer-events: none;
	transform: translate3d(-56px, 0, 0);
	transition:
		opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Product column is on the visual right when outer columns are swapped — slide in from that side. */
.three-column-feature--swap-outer .three-column-feature__left-slide {
	transform: translate3d(56px, 0, 0);
}

.three-column-feature__left-slide.is-revealed {
	opacity: 1;
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
}

.three-column-feature__left-rotate {
	transform: rotate(19.93deg);
	transform-origin: center center;
}

@media (min-width: 980px) {
	.three-column-feature__left-rotate:not(.three-column-feature__left-rotate--empty) {
		margin-block: -20px;
	}
}

@media (max-width: 979px) {
	.three-column-feature__left-rotate {
		transform: rotate(12deg);
	}
	
	.three-column-feature__col--left {
		display: none;
	}
}

.three-column-feature__left-parallax {
	transform: translate3d(0, var(--three-col-left-parallax-y), 0);
}

/* Only promote the parallax layer where the parallax JS actually runs; on mobile the
   variable never changes, so a permanently-promoted layer just costs GPU memory. */
@media (min-width: 980px) {
	.three-column-feature__left-parallax {
		will-change: transform;
	}
}

/* Shadow follows image alpha — avoids rectangular box-shadow + overflow clip compositing bugs
   (transparent WebPs gaining a matte “plate” beside transforms). */
.three-column-feature__left-shadow {
	position: relative;
	display: block;
	max-width: min(289px, 70vw);
	margin-inline: auto;
	overflow: visible;
	background: transparent;
}

.three-column-feature__left-img {
	width: 100%;
	height: auto;
	display: block;
	background: transparent;
/* 	filter:
		drop-shadow(-18px -7px 41px rgba(0, 0, 0, 0.35))
		drop-shadow(-70px -27px 75px rgba(0, 0, 0, 0.31))
		drop-shadow(-158px -61px 102px rgba(0, 0, 0, 0.18))
		drop-shadow(-282px -108px 121px rgba(0, 0, 0, 0.05))
		drop-shadow(-440px -169px 132px rgba(0, 0, 0, 0.01)); */
	    filter: drop-shadow(-22px -8px 50px rgba(0, 0, 0, 0.5)) drop-shadow(-160px -60px 110px rgba(0, 0, 0, 0.14));
}

.three-column-feature__copy {
	display: flex;
	flex-direction: column;
	gap: clamp(32px, 4vw, 54px);
	align-items: stretch;
}

.three-column-feature__richtext {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	max-width: 100%;
}

/* Lead/emphasis text: only the bolded run itself is enlarged,
   so plain copy in the same paragraph stays at the base size. */
.three-column-feature__richtext strong,
.three-column-feature__richtext b {
	font-size: clamp(18px, 2.1vw, 21px);
	line-height: 1.4;
}

.three-column-feature__richtext p {
	margin: 0 0 0.75em;
}

.three-column-feature__richtext p:last-child {
	margin-bottom: 0;
}

.three-column-feature__richtext strong,
.three-column-feature__richtext b {
	font-weight: 700;
}

.three-column-feature__richtext span {
	color: var(--three-col-green);
}

.three-column-feature__editor-hint {
	opacity: 0.75;
	font-weight: 500;
}

.three-column-feature__cta-wrap {
	margin: 0;
}

.three-column-feature__cta {
	display: block;
	width: 100%;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	cursor: pointer;
}

.three-column-feature__cta-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--btn-gap);
	padding: var(--btn-padding-block) var(--btn-padding-inline) var(--btn-padding-block-end) var(--btn-padding-inline-start);
	background: var(--btn-primary-bg);
	border-radius: var(--btn-radius);
}

.three-column-feature__cta-label {
	font-family: var(--btn-font-family);
	font-weight: var(--btn-font-weight);
	font-size: var(--btn-font-size-lg);
	line-height: var(--btn-line-height);
	text-align: center;
	letter-spacing: var(--btn-letter-spacing-wide);
	text-transform: var(--btn-text-transform);
	color: var(--btn-primary-text);
}

.three-column-feature__cta-dot {
	flex: 0 0 auto;
	width: var(--btn-dot-size);
	height: var(--btn-dot-size);
	border-radius: 50%;
	background: var(--btn-primary-dot-bg);
}

.three-column-feature__cta--placeholder .three-column-feature__cta-inner {
	border: 2px dashed rgba(35, 31, 32, 0.35);
	cursor: default;
}

.three-column-feature__right-figure {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	max-width: 397px;
	aspect-ratio: 397 / 491;
	margin-inline: auto;
}

.three-column-feature__right-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.three-column-feature__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 16px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: rgba(35, 31, 32, 0.75);
	border: 2px dashed rgba(105, 149, 40, 0.45);
	border-radius: 8px;
	box-sizing: border-box;
}

.three-column-feature__placeholder--tall {
	min-height: 260px;
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.three-column-feature__left-slide,
	.three-column-feature--swap-outer .three-column-feature__left-slide {
		opacity: 1;
		pointer-events: auto;
		transform: none;
		transition: none;
	}

	.three-column-feature__left-parallax {
		transform: none;
		will-change: auto;
	}
}
