/**
 * AI-Led Legacy Modernisation — page styles.
 *
 * Figma "AI-Led Legacy Modernisation - thinkpalm" (JcHwj7cC5blFIuXcjYOxZk),
 * page "R" frame 32:4627, 1440 wide: content 1112 at x 164, sections 132 apart.
 * Loaded after page-ai-app-dev.css, whose hero, testimonial, logo strip,
 * result tiles, service rows, CTA pill and FAQ are reused (same components).
 *
 * Motion: every prototype transition in this file is SMART_ANIMATE,
 * EASE_OUT (cubic-bezier(0, 0, 0.58, 1)), 0.3s — tiles, rows, cards and the
 * testimonial arrows. Layers that exist in only one variant dissolve in place.
 */

.tp-lmod {
	--lmod-ease: cubic-bezier(0, 0, 0.58, 1);
	--lmod-dur: 0.3s;
}

/* Section rhythm: 132px between blocks (Figma). */
.tp-lmod-results,
.tp-lmod-chal,
.tp-lmod-appr,
.tp-lmod-consult,
.tp-lmod-plan {
	padding-bottom: var(--aiad-section);
}

.tp-aiad-h2--42 {
	line-height: 42px;
}

/* -----------------------------------------------------------------------
   01 Hero — the AI App Dev hero; the card sits at x 768 (AI App Dev: 767).
   Testimonial switch = EASE_OUT 0.3s (2:4959).
   ----------------------------------------------------------------------- */
.tp-lmod .tp-aiad-testi {
	--aiad-swing-dur: 0.3s;
	--aiad-swing-ease: cubic-bezier(0, 0, 0.58, 1);
}

@media (min-width: 1240px) {
	.tp-lmod .tp-aiad-testi {
		transform: translateX(1px);
	}
}

/* -----------------------------------------------------------------------
   03 Modernisation Results — 32:5197: heading column 313 + 66 gap + two
   355 tiles (8:1668 purple / 8:1664 indigo). Hover EASE_OUT 0.3s.
   ----------------------------------------------------------------------- */
.tp-lmod-results__row {
	display: flex;
	align-items: flex-start;
	gap: 66px;
}

.tp-lmod-results__head {
	display: grid;
	gap: 16px;
	flex: 0 0 313px;
}

.tp-lmod-results__head .tp-aiad-h2 {
	max-width: 304px;
}

.tp-lmod .tp-lmod-results__grid {
	flex: 1 1 auto;
	grid-template-columns: repeat(2, 355px);
	justify-content: end;
	margin-top: 0;
}

.tp-lmod .tp-aiad-res {
	--res-ease: var(--lmod-ease);
	--res-duration: var(--lmod-dur);
}

/* Figma's white box hugs its content (196 tall); the figure then sits 90px down. */
.tp-lmod .tp-aiad-res__box {
	min-height: 196px;
}

/* Enterprise tag (12:1673): a full pill; on hover it becomes the 32/16/16/32
   chip with a 20% white fill (8:1667), as on the Maritime tile. */
.tp-lmod .tp-aiad-res--purple .tp-aiad-res__tag {
	border-radius: 261px;
	padding-inline: 16px;
	transition: color var(--res-duration) var(--res-ease), background-color var(--res-duration) var(--res-ease), box-shadow var(--res-duration) var(--res-ease), border-radius var(--res-duration) var(--res-ease);
}

.tp-lmod .tp-aiad-res--purple:is(:hover, :focus-within) .tp-aiad-res__tag {
	border-radius: 32px 16px 16px 32px;
}

/* -----------------------------------------------------------------------
   04 What's Stopping You — 32:5204. 3 × 355 cards, 24 gaps; hover
   (17:2636 → 17:2637): border #94bfff, white→#ebe9fe wash, block pattern
   (opacity .2) fading in at 160 / -20.
   ----------------------------------------------------------------------- */
.tp-lmod-chal__head {
	max-width: 863px;
	gap: 16px;
}

.tp-lmod-chal__head .tp-aiad-lead {
	max-width: 815px;
}

.tp-lmod-chal__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 42px;
}

.tp-lmod-chal__card {
	position: relative;
	min-height: 276px;
	padding: 32px;
	border: 1px solid #d5d7da;
	border-radius: 16px;
	overflow: hidden;
	isolation: isolate;
	background: #ffffff;
	transition: border-color var(--lmod-dur) var(--lmod-ease);
}

.tp-lmod-chal__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: linear-gradient(164deg, #ffffff 23%, #ebe9fe 100%);
	opacity: 0;
	transition: opacity var(--lmod-dur) var(--lmod-ease);
}

.tp-lmod-chal__grid-art {
	position: absolute;
	top: -21px;
	left: 159px;
	z-index: -1;
	width: 274px;
	max-width: none;
	opacity: 0;
	transition: opacity var(--lmod-dur) var(--lmod-ease);
	pointer-events: none;
}

.tp-lmod-chal__card:hover,
.tp-lmod-chal__card:focus-within {
	border-color: #94bfff;
}

.tp-lmod-chal__card:is(:hover, :focus-within)::before,
.tp-lmod-chal__card:is(:hover, :focus-within) .tp-lmod-chal__grid-art {
	opacity: 1;
}

.tp-lmod-chal__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #ebe9fe;
}

.tp-lmod-chal__icon img {
	width: 32px;
	height: 32px;
}

.tp-lmod-chal__title {
	margin-top: 24px !important;
	font: 500 20px/30px var(--tp-font-heading, 'Plus Jakarta Sans'), sans-serif !important;
	color: #080a0b !important;
}

.tp-lmod-chal__text {
	margin-top: 12px !important;
	color: #383838;
}

/* -----------------------------------------------------------------------
   05 How ThinkPalm Modernises Every Layer — the AI App Dev service rows.
   Blue field runs 313px past the list: the first CTA strip overlaps its
   bottom 181px. Rows: EASE_OUT 0.3s (12:1798 → 12:1799).
   ----------------------------------------------------------------------- */
.tp-lmod-sol {
	padding-bottom: 313px;
}

/* Line art 32:5171 / 32:5172 (the AI App Dev pair; the right one sits lower here).
   QA 2026-11-16 "pattern move to the bottom" (a change from Figma, which has
   it at top 915 = bottom -33): pinned to the section's bottom edge, 148px
   lower than Figma, so its centre lines up with the top of the CTA strip
   (181px overlap) and its lines run down to the end of the blue band beside
   the strip instead of fading out mid-band. Bottom-anchored, it stays there
   when the rows wrap and the band grows. Was: top: 915px. */
.tp-lmod .tp-aiad-sol__lines--b {
	top: auto;
	bottom: -181px;
}

/* 760 (Figma 718): QA 2026-11-16 "Modernises" lengthens the first line,
   which no longer fit and pushed "of" onto a line of its own. */
.tp-lmod-sol__head {
	max-width: 760px;
}

.tp-lmod-sol__head .tp-aiad-lead {
	max-width: 682px;
}

.tp-lmod .tp-aiad-sol__row::before,
.tp-lmod .tp-aiad-sol__img {
	transition: opacity var(--lmod-dur) var(--lmod-ease);
}

/* Plain hover at desktop widths (not gated on a hover-capable pointer, so
   touch laptops get it too); the image card is hidden below 1024 anyway. */
@media (min-width: 1024px) {
	.tp-lmod .tp-aiad-sol__row:hover::before { opacity: 0.09; }
	.tp-lmod .tp-aiad-sol__row:hover .tp-aiad-sol__img { opacity: 1; }
}

/* -----------------------------------------------------------------------
   06 "Let's Plan Your First Step" — 32:5218: 1112×358, r 42,
   #c45757 → #000279 (Figma handles converted: 214°, 39% → 106%), three
   frosted panes and the photo (hidden on phones, doc).
   ----------------------------------------------------------------------- */
.tp-lmod-plan {
	position: relative;
	z-index: 1;
}

.tp-lmod-plan--overlap {
	margin-top: -181px;
}

.tp-lmod-plan__card {
	position: relative;
	min-height: 358px;
	border-radius: 42px;
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(214deg, #c45757 39%, #000279 106%);
}

.tp-lmod-plan__glass {
	position: absolute;
	z-index: 0;
	width: 204px;
	height: 229px;
	border: 1.94px solid transparent;
	border-radius: 38.72px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%) padding-box,
		linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%) border-box;
	-webkit-backdrop-filter: blur(19.36px);
	backdrop-filter: blur(19.36px);
}

/* Figma x 669 / 769 / 869 in the 1112 card, kept from the right edge. */
.tp-lmod-plan__glass--1 { right: 239px; top: 192px; }
.tp-lmod-plan__glass--2 { right: 139px; top: 112px; }
.tp-lmod-plan__glass--3 { right: 39px; top: 32px; }

.tp-lmod-plan__photo {
	position: absolute;
	z-index: 1;
	bottom: -174px; /* Figma top -14 in the 358 card, kept when the card grows */
	right: -247px;
	width: 874px;
	max-width: none !important;
	height: 546px !important;
	pointer-events: none;
}

.tp-lmod-plan__copy,
.tp-lmod-consult__copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 577px;
	max-width: 100%;
}

.tp-lmod-plan__copy {
	padding: 80px 0 80px 62px;
}

.tp-lmod-strip__title {
	font: 700 36px/46px var(--tp-font-heading, 'Plus Jakarta Sans'), sans-serif !important;
	color: #ffffff !important;
}

.tp-lmod-strip__desc {
	margin-top: 12px !important;
	color: rgba(255, 255, 255, 0.8);
}

.tp-lmod-strip__title--dark {
	color: #16234d !important;
}

.tp-lmod-strip__desc--dark {
	color: rgba(22, 35, 77, 0.8);
}

.tp-lmod-plan__copy .tp-aiad-cta,
.tp-lmod-consult__copy .tp-aiad-cta {
	margin-top: 24px;
}

/* -----------------------------------------------------------------------
   07 Our AI-Led Approach — 32:5235. Columns 355 / 24; 107px colour tiles
   (r 24) centred, the step number (70px, #dbdbdb → white) peeking out on
   the left behind the tile; 11px dots + 1px line between tiles of a row.
   ----------------------------------------------------------------------- */
.tp-lmod-appr__head {
	max-width: 767px;
	gap: 32px;
}

.tp-lmod-appr__head .tp-aiad-h2 {
	max-width: 685px;
}

.tp-lmod-appr__lead {
	font-size: 16px;
	line-height: 20.2px;
	color: #414141;
}

.tp-lmod-appr__grid {
	--appr-gap: 24px;
	--appr-inset: 73px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: var(--appr-gap);
	row-gap: 110px;
	margin-top: 62px;
}

.tp-lmod-appr__step {
	text-align: center;
}

.tp-lmod-appr__mark {
	position: relative;
	height: 107px;
}

/* 70px digits on a 26px line box at -11px (Figma 32:5239…): drawn in a 70px
   box so the clipped gradient covers the whole glyph; #dbdbdb → white. */
.tp-lmod-appr__num {
	position: absolute;
	top: -33px;
	left: calc(50% - 77px);
	width: 100px;
	font: 400 70px/70px var(--tp-font-heading, 'Plus Jakarta Sans'), sans-serif;
	text-align: center;
	background: linear-gradient(168deg, #dbdbdb 26%, #ffffff 93%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #dbdbdb;
	user-select: none;
}

.tp-lmod-appr__tile {
	position: absolute;
	top: 0;
	left: calc(50% - 53.5px);
	display: grid;
	place-items: center;
	width: 107px;
	height: 107px;
	border-radius: 24px;
	background: var(--tile, #4da3ff);
}

.tp-lmod-appr__tile img {
	width: 52px;
	height: 52px;
}

/* From this tile's right edge to the next tile's left edge, inset each end. */
.tp-lmod-appr__link {
	position: absolute;
	top: 48px;
	left: calc(50% + 53.5px + var(--appr-inset));
	width: calc(100% + var(--appr-gap) - 107px - 2 * var(--appr-inset));
	height: 11px;
	background:
		radial-gradient(circle 5.5px at 5.5px 50%, var(--tile) 99%, transparent 100%) left / 11px 11px no-repeat,
		radial-gradient(circle 5.5px at 5.5px 50%, var(--tile-next) 99%, transparent 100%) right / 11px 11px no-repeat,
		repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0 5px, transparent 5px 10px) center / calc(100% - 32px) 1px no-repeat;
}

.tp-lmod-appr__title {
	margin-top: 24px !important;
	font: 700 20px/26px var(--tp-font-heading, 'Plus Jakarta Sans'), sans-serif !important;
	color: #080a0b !important;
}

.tp-lmod-appr__text {
	margin-top: 16px !important;
	color: #383838;
}

/* -----------------------------------------------------------------------
   08 AI-Driven Testing — 70:5680 on 70:5768 (#edf2ff fading out over 465px,
   starting 146px above the heading). 4 × 254 tiles, 32 gaps.
   ----------------------------------------------------------------------- */
.tp-lmod-test {
	padding: 146px 0 var(--aiad-section);
	background: linear-gradient(180deg, #edf2ff 0, rgba(237, 242, 255, 0) 465px) no-repeat;
}

.tp-lmod-test__head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.tp-lmod-test__head .tp-aiad-h2 {
	flex: 0 0 551px;
}

.tp-lmod-test__head .tp-aiad-lead {
	flex: 0 1 545px;
}

.tp-lmod-test__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin-top: 42px;
}

.tp-lmod-test__img {
	width: auto !important;
	height: 149px !important;
}

.tp-lmod-test__title {
	margin-top: 12px !important;
	font: 400 24px/28px var(--tp-font-heading, 'Plus Jakarta Sans'), sans-serif !important;
	color: #080a0b !important;
	text-transform: capitalize;
}

.tp-lmod-test__text {
	max-width: 226px;
	margin-top: 14px !important;
	color: #383838;
}

/* -----------------------------------------------------------------------
   09 "Not sure where to start?" — 70:5757: 1112×334, r 42, light image
   background (its 1px #004ffc/10% border is part of the export), photo
   555×370 from x 557 clipped at the bottom; photo hidden on phones (doc).
   ----------------------------------------------------------------------- */
.tp-lmod-consult__card {
	position: relative;
	min-height: 334px;
	border-radius: 42px;
	overflow: hidden;
	isolation: isolate;
	background: #eef3ff var(--consult-bg, none) center / 100% 100% no-repeat;
}

.tp-lmod-consult__photo {
	position: absolute;
	z-index: 1;
	bottom: -36px; /* Figma top 0 in the 334 card, kept when the card grows */
	right: 0;
	width: 555px;
	max-width: none !important;
	height: 370px !important;
	pointer-events: none;
}

.tp-lmod-consult__copy {
	padding: 80px 0 80px 70px;
}

/* -----------------------------------------------------------------------
   10 Your Next Move — 32:5187: #17306d → #1f4ed8 → #3b82f6, 132 / 164
   padding; four 266×399 white cards (16 gaps). Hover (32:4076 → 32:4075):
   white 21.4px glow, white blurred disc top right, block pattern
   bottom right — all dissolve in, EASE_OUT 0.3s.
   Updated Figma (KzHg… 3784:1265, 11 Nov): ↗ arrow (23px, black 32%)
   at the tag's right end; on hover it sits in a 58×58 r16 dark tile
   (#282828 → #4d4d4d), turns white and moves 6px left / 6px down.
   ----------------------------------------------------------------------- */
.tp-lmod-next {
	padding: var(--aiad-section) 0;
	background: linear-gradient(180deg, #17306d -3%, #1f4ed8 33%, #3b82f6 100%);
}

.tp-lmod-next__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 64px;
}

.tp-lmod-next__head .tp-aiad-h2 {
	flex: 0 1 514px;
}

.tp-lmod-next__head .tp-aiad-lead {
	flex: 0 1 556px;
}

.tp-lmod-next__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 64px;
}

.tp-lmod-next__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 399px;
	padding: 24px;
	border-radius: 24px;
	overflow: hidden;
	isolation: isolate;
	background: #ffffff;
	color: #000000;
	box-shadow: 0 4px 21.4px rgba(255, 255, 255, 0);
	transition: box-shadow var(--lmod-dur) var(--lmod-ease);
}

.tp-lmod-next__glow {
	position: absolute;
	z-index: -1;
	top: -103px;
	left: 116px;
	width: 227px;
	height: 227px;
	border-radius: 50%;
	background: #ffffff;
	filter: blur(75.6px);
	opacity: 0;
	transition: opacity var(--lmod-dur) var(--lmod-ease);
	pointer-events: none;
}

.tp-lmod-next__grid-art {
	position: absolute;
	z-index: -1;
	top: 304px;
	left: 133.6px;
	width: 161px;
	max-width: none;
	opacity: 0;
	transition: opacity var(--lmod-dur) var(--lmod-ease);
	pointer-events: none;
}

.tp-lmod-next__card:is(:hover, :focus-within) {
	box-shadow: 0 4px 21.4px #ffffff;
}

.tp-lmod-next__card:is(:hover, :focus-within) .tp-lmod-next__glow,
.tp-lmod-next__card:is(:hover, :focus-within) .tp-lmod-next__grid-art {
	opacity: 1;
}

/* Arrow: 58×58 box at the card's top-right (24 / 24). At rest only the
   arrow shows, centred where Figma's 46px frame is (219,47 in the card);
   on hover the dark tile fades in and the arrow eases to its centre. */
.tp-lmod-next__arrow {
	position: absolute;
	z-index: 1;
	top: 24px;
	right: 24px;
	width: 58px;
	height: 58px;
	border-radius: 16px;
	color: rgba(0, 0, 0, 0.32);
	transition: color var(--lmod-dur) var(--lmod-ease);
	pointer-events: none;
}

.tp-lmod-next__arrow::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(48.7deg, #282828 11.9%, #4d4d4d 91.5%);
	opacity: 0;
	transition: opacity var(--lmod-dur) var(--lmod-ease);
}

.tp-lmod-next__arrow svg {
	position: absolute;
	top: 11.5px;
	left: 23.5px;
	display: block;
	width: 23px;
	height: 23px;
	transition: transform var(--lmod-dur) var(--lmod-ease);
}

.tp-lmod-next__card:is(:hover, :focus-within) .tp-lmod-next__arrow {
	color: #ffffff;
}

.tp-lmod-next__card:is(:hover, :focus-within) .tp-lmod-next__arrow::before {
	opacity: 1;
}

.tp-lmod-next__card:is(:hover, :focus-within) .tp-lmod-next__arrow svg {
	transform: translate(-6px, 6px);
}

.tp-lmod-next__tag {
	display: block;
	align-self: stretch;
	padding: 10px 56px 10px 0;
	border-radius: 0 12px 12px 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0%, rgba(200, 212, 36, 0.077) 60%, rgba(200, 212, 36, 0.22) 88%);
	font: 600 16px/24px var(--tp-font-heading, 'Plus Jakarta Sans'), sans-serif;
	color: #000000;
}

.tp-lmod-next__icon {
	width: 62px;
	height: 62px;
	margin-top: 12px;
}

.tp-lmod-next__title {
	margin-top: 32px !important;
	font: 500 24px/32px var(--tp-font-heading, 'Plus Jakarta Sans'), sans-serif !important;
	color: #000000 !important;
}

.tp-lmod-next__text {
	margin-top: 32px !important;
	color: #000000;
}

/* FAQ sits 132 below the blue band. */
.tp-lmod-faq {
	padding-top: var(--aiad-section);
}

/* Figma keeps the strip buttons' own case ("Book a Discovery Call"). */
.tp-lmod-plan .tp-aiad-cta--violet,
.tp-lmod-consult .tp-aiad-cta--violet {
	text-transform: none;
}

/* Figma's title boxes wrap "Validate Every / Change" (254 box + trailing nbsp). */
.tp-lmod-test__title {
	max-width: 230px;
}

/* =======================================================================
   Responsive. Desktop values above are the 1440 frame. Doc (mobile):
   case-study cards one after the other; challenges, testing and next-move
   cards in one swipeable row (both directions, no loop); service rows
   without images, number + title then description, swipeable; CTA strip
   photos removed; approach steps one after the other.
   ======================================================================= */
@media (max-width: 1239px) {
	.tp-lmod-results__row {
		gap: 40px;
	}

	.tp-lmod-results__head {
		flex: 1 1 260px;
	}

	.tp-lmod .tp-lmod-results__grid {
		flex: 0 1 734px;
		grid-template-columns: repeat(2, minmax(0, 355px));
	}

	.tp-lmod-test__head .tp-aiad-h2 {
		flex: 0 1 551px;
	}

	.tp-lmod-appr__grid {
		--appr-inset: 40px;
	}
}

@media (max-width: 1023px) {
	/* Results: heading above, the two tiles side by side. */
	.tp-lmod-results__row {
		flex-direction: column;
		gap: 32px;
	}

	.tp-lmod-results__head {
		flex: none;
		max-width: 640px;
	}

	.tp-lmod-results__head .tp-aiad-h2 {
		max-width: none;
	}

	.tp-lmod .tp-lmod-results__grid {
		display: grid;
		flex: none;
		width: 100%;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
		scroll-snap-type: none;
	}

	.tp-lmod .tp-lmod-results__grid .tp-aiad-res {
		flex: none;
	}

	.tp-lmod-chal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Blue band still runs under the top of the first CTA strip. */
	.tp-lmod-sol {
		padding-bottom: calc(var(--aiad-section) + 120px);
	}

	.tp-lmod-plan--overlap {
		margin-top: -120px;
	}

	.tp-lmod-plan__copy {
		width: min(577px, calc(100% - 360px));
		padding-left: 40px;
	}

	.tp-lmod-plan__photo {
		right: -360px;
	}

	.tp-lmod-plan__glass--1 { right: 130px; }
	.tp-lmod-plan__glass--2 { right: 30px; }
	.tp-lmod-plan__glass--3 { right: -70px; }

	.tp-lmod-consult__copy {
		width: min(577px, calc(100% - 400px));
		padding-left: 40px;
	}

	.tp-lmod-consult__photo {
		right: -170px;
	}

	.tp-lmod-appr__grid {
		--appr-inset: 20px;
	}

	.tp-lmod-test {
		padding-top: 120px;
	}

	.tp-lmod-test__head,
	.tp-lmod-next__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.tp-lmod-test__head .tp-aiad-h2,
	.tp-lmod-test__head .tp-aiad-lead,
	.tp-lmod-next__head .tp-aiad-h2,
	.tp-lmod-next__head .tp-aiad-lead {
		flex: none;
		max-width: 640px;
	}

	.tp-lmod-test__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 48px;
	}

	.tp-lmod-test__text {
		max-width: 320px;
	}

	.tp-lmod-next__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 40px;
	}

	.tp-lmod-next__card {
		min-height: 360px;
	}
}

/* Phones */
@media (max-width: 767px) {
	.tp-aiad-h2--42,
	.tp-aiad-h2--46 {
		line-height: 36px;
	}

	/* Case studies one after the other (doc). */
	.tp-lmod .tp-lmod-results__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	/* One swipeable row: challenges, testing, next move. */
	.tp-lmod-chal__grid,
	.tp-lmod-test__grid,
	.tp-lmod-next__grid {
		display: flex;
		gap: 16px;
		margin-inline: -20px;
		padding: 0 20px 4px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 20px;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
	}

	.tp-lmod-chal__card,
	.tp-lmod-test__item,
	.tp-lmod-next__card {
		flex: 0 0 280px;
		scroll-snap-align: start;
	}

	.tp-lmod-chal__card {
		padding: 28px 24px;
	}

	.tp-lmod-chal__grid {
		margin-top: 32px;
	}

	.tp-lmod-test__item {
		flex-basis: 240px;
	}

	.tp-lmod-test__grid {
		margin-top: 32px;
	}

	.tp-lmod-test {
		padding-top: 88px;
		background-size: 100% 360px;
	}

	.tp-lmod-next__card {
		flex-basis: 266px;
		min-height: 0;
	}

	.tp-lmod-next__grid {
		margin-top: 32px;
	}

	/* CTA strips: no photos (doc); copy fills the card. */
	.tp-lmod-sol {
		padding-bottom: calc(var(--aiad-section) + 80px);
	}

	.tp-lmod-plan--overlap {
		margin-top: -80px;
	}

	.tp-lmod-plan__photo,
	.tp-lmod-plan__glass,
	.tp-lmod-consult__photo {
		display: none;
	}

	.tp-lmod-plan__card,
	.tp-lmod-consult__card {
		min-height: 0;
		border-radius: 28px;
	}

	.tp-lmod-plan__copy,
	.tp-lmod-consult__copy {
		width: 100%;
		padding: 40px 24px;
	}

	.tp-lmod-strip__title {
		font-size: 28px !important;
		line-height: 36px !important;
	}

	.tp-lmod-plan__copy .tp-aiad-cta,
	.tp-lmod-consult__copy .tp-aiad-cta {
		max-width: 100%;
		white-space: normal;
		height: auto;
		min-height: 44px;
		text-align: left;
	}

	.tp-lmod-consult__card {
		background-size: cover;
		background-position: left center;
	}

	/* Approach: steps one after the other, no connectors. */
	.tp-lmod-appr__head {
		gap: 16px;
	}

	.tp-lmod-appr__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 56px;
		margin-top: 56px;
	}

	.tp-lmod-appr__link {
		display: none;
	}

	.tp-lmod-appr__text {
		max-width: 340px;
		margin-inline: auto;
	}
}

/* Thank You slide heading (doc screenshot: "We’ve Received Your Request"). */
.tp-lmod-pop .tp-lmod-pop__done-head {
	margin: 0 0 8px;
	font: 600 22px/30px var(--tp-font-heading, 'Plus Jakarta Sans'), sans-serif;
	color: #080a0b;
	text-align: center;
}

/* QA Changes 2026-11-14 — each "Your Next Move" card links to its service.
   The title link stretches over the whole card, so the card's existing hover
   (Figma KzHg… variant, 0.3s ease-out) is also the link's hover; the text
   itself keeps Figma's look (no colour change, no underline). */
.tp-lmod-next__card.has-link {
	cursor: pointer;
}

.tp-lmod .tp-lmod-next__link,
.tp-lmod .tp-lmod-next__link:hover,
.tp-lmod .tp-lmod-next__link:focus,
.tp-lmod .tp-lmod-next__link:visited {
	color: inherit !important;
	text-decoration: none !important;
	outline: none;
}

.tp-lmod-next__link::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
	border-radius: inherit;
}

.tp-lmod-next__link:focus-visible::after {
	border-radius: 24px;
	box-shadow: inset 0 0 0 2px #2561ff;
}

/* QA 2026-11-14 — smoother FAQ. The answer now opens/closes over 0.3s
   (data-wfd-faq-animated). The open question row is 70px here (Figma
   164:24516) vs 42px closed; without this the closing row snapped 28px at
   once and the tapped question jumped. Animate the row with the answer and
   keep the text top-aligned so it doesn't re-centre mid-way. */
@media (min-width: 768px) {
	.tp-lmod-faq .tp-wfd-faq__btn {
		align-items: flex-start;
		min-height: 42px;
		transition: min-height 0.3s var(--tp-ease);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tp-lmod-faq .tp-wfd-faq__btn {
		transition: none;
	}
}

/* -----------------------------------------------------------------------
   QA sheet 2026-11-16 (AI Led Modernization.xlsx)
   ----------------------------------------------------------------------- */

/* Headings and the case-study button keep the case they are written in:
   "Layer of", "Testing for", "Approach to", "Read the Case Study" (the shared
   AI App Dev styles capitalise every word). */
.tp-lmod .tp-aiad-h2,
.tp-lmod .tp-aiad-res__btn {
	text-transform: none;
}

/* AI-Driven Testing illustrations: the Figma images carry an opaque white
   box. Multiply drops the white into the section's #edf2ff fade (colours are
   unchanged, white becomes the background), and also covers any
   white-backed replacement uploaded in wp-admin. */
.tp-lmod-test__img {
	mix-blend-mode: multiply;
}

/* Phones: the blue band ends at the middle of the "Let's Plan Your First
   Step" card, whatever the card's height. The band's lower part is drawn by
   the strip itself: a two-row grid whose equal 1fr rows split the card in
   half, with the band in the top row. The blue section's glow is anchored to
   its bottom edge, and the band continues the same glow from the same
   points, so there is no seam. At 390px the glow sits where it did before. */
@media (max-width: 767px) {
	.tp-lmod-sol {
		padding-bottom: var(--aiad-section);
		background:
			radial-gradient(circle 1000px at calc(50% - 733px) calc(100% - 160px), rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0.09) 300px, rgba(255, 255, 255, 0.05) 520px, rgba(255, 255, 255, 0.02) 760px, rgba(255, 255, 255, 0) 1000px),
			radial-gradient(circle 1000px at calc(50% + 611px) calc(100% + 75px), rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0.09) 300px, rgba(255, 255, 255, 0.05) 520px, rgba(255, 255, 255, 0.02) 760px, rgba(255, 255, 255, 0) 1000px),
			#0b3889;
	}

	.tp-lmod-plan--overlap {
		display: grid;
		grid-template-rows: 1fr 1fr;
		margin-top: 0;
	}

	.tp-lmod-plan--overlap::before {
		content: "";
		grid-area: 1 / 1 / 2 / 2;
		background:
			radial-gradient(circle 1000px at calc(50% - 733px) -160px, rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0.09) 300px, rgba(255, 255, 255, 0.05) 520px, rgba(255, 255, 255, 0.02) 760px, rgba(255, 255, 255, 0) 1000px),
			radial-gradient(circle 1000px at calc(50% + 611px) 75px, rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0.09) 300px, rgba(255, 255, 255, 0.05) 520px, rgba(255, 255, 255, 0.02) 760px, rgba(255, 255, 255, 0) 1000px),
			#0b3889;
	}

	.tp-lmod-plan--overlap > .tp-aiad-wrap {
		grid-area: 1 / 1 / 3 / 2;
		position: relative;
		z-index: 1;
	}

	/* "Modernises" no longer fits "…Every Layer of" on one phone line, so the
	   desktop line break after "of" left that word on a line of its own. */
	.tp-lmod-sol__head .tp-aiad-h2 br {
		display: none;
	}
}
