/*
 * Wi-Fi Device Testing & Validation — template-wifi-device-testing.php
 *
 * Source: Figma "WiFi Device Testing Page Revamp" frame 408:24248 (1440 wide).
 * Every value is taken from design/figma/wi-fi-device-testing-validation/
 * spec.json; the Figma layer id of each block is noted above its rules.
 * Content column = x 164, width 1112 on the 1440 frame (.tp-wfd-wrap).
 *
 * Loaded after the 2026 theme's tokens/base/header/footer sheets (the page
 * uses get_header()/get_footer() like the homepage), so the body reset and
 * skip link come from base.css. Rules stay scoped to .tp-wfd / .tp-wfd-body
 * because plugins still print their own CSS on every page.
 */

.tp-wfd,
.tp-wfd *,
.tp-wfd *::before,
.tp-wfd *::after {
	box-sizing: border-box;
}

.tp-wfd {
	display: block;
	overflow-x: clip;
	font-family: var(--tp-font-body);
	font-size: 16px;
	line-height: 24px;
	color: #383838;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.tp-wfd :where(h1, h2, h3, p, ul, ol, li, figure, figcaption) {
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	letter-spacing: 0;
}

.tp-wfd :where(ul, ol) {
	list-style: none;
}

.tp-wfd :where(img) {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
}

.tp-wfd :where(a) {
	text-decoration: none;
}

.tp-wfd :where(button) {
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-transform: none;
	letter-spacing: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.tp-wfd :focus-visible {
	outline: 2px solid #1977f3;
	outline-offset: 3px;
}

.tp-wfd-nw {
	white-space: nowrap;
}

.tp-wfd-wrap {
	width: min(1112px, calc(100% - 40px));
	margin-inline: auto;
}

/* Section titles — 700 36px/40px, capitalize (408:24539 et al.) */
.tp-wfd-h2 {
	font: 700 36px/40px var(--tp-font-heading);
	color: #021b42;
	text-transform: capitalize;
}

/* Centred section heading — 408:25114, 408:25129, 408:25023 */
.tp-wfd-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	text-align: center;
}

.tp-wfd-head__title--dark {
	color: #080a0b;
}

.tp-wfd-head__desc {
	max-width: 792px;
	font: 400 16px/24px var(--tp-font-body);
	color: #383838;
}

.tp-wfd-head__desc--muted {
	max-width: 933px;
	line-height: 20px;
	color: #414141;
}

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

/*
 * Button motion comes from the Figma prototype (Review page, 408:24248).
 * Easing presets map onto tokens.css: EASE_OUT 300ms = var(--tp-ease) 0.3s;
 * GENTLE (1022ms envelope) = --tp-ease-gentle over --tp-speed-slow; SLOW
 * (1250ms envelope) = --tp-ease-spring over --tp-speed-spring. Hover states
 * are plain :hover, as on the rest of the site (base.css). They used to be
 * gated to (hover: hover) and (pointer: fine), which hid them on touchscreen
 * laptops and in DevTools device mode (QA sheet 2026-10-26).
 */

/* Hero ghost — 408:24328: 10px 24px, 1px #fff, radius 59px.
   Hover: DISSOLVE, GENTLE. */
.tp-wfd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	font: 700 16px/24px var(--tp-font-body);
	color: #ffffff;
	white-space: nowrap;
	text-transform: capitalize;
}

.tp-wfd-btn--ghost {
	padding: 10px 24px;
	border: 1px solid #ffffff;
	border-radius: 59px;
	transition: background-color var(--tp-speed-slow) var(--tp-ease-gentle), color var(--tp-speed-slow) var(--tp-ease-gentle);
}

/* Solid blue — I408:25109;309:4790 / 423:2648: 10px 28px 10px 12px,
   #0d6efd, radius 55px, 28px white disc at (12, 8), label at x 50. */
.tp-wfd-btn--solid {
	position: relative;
	justify-content: flex-start;
	padding: 10px 28px 10px 50px;
	background: #0d6efd;
	border-radius: 55px;
	text-transform: none;
}

.tp-wfd-btn__disc {
	display: inline-flex;
	flex: none;
	color: #0d6efd; /* the ↗ inside the white disc */
}

.tp-wfd-btn__disc svg {
	display: block;
}

/* Banner CTA and case-study "Read More" — 423:2648 → 423:2650 on hover:
   disc x 12 → 122, label x 50 → 28 (on the 162px pill, i.e. disc at
   calc(100% - 40px)). Fill and colours stay the same. QA 2026-10-28: the
   travel now uses the homepage banner CTA's timing (.tp-hero__btn,
   SPRING 0.72s) instead of the 300ms ease-out, which read as abrupt. */
.tp-wfd-btn--solid:not(.tp-wfd-btn--dissolve) {
	transition: padding var(--tp-speed-spring) var(--tp-ease-spring);
}

.tp-wfd-btn--solid:not(.tp-wfd-btn--dissolve) > .tp-wfd-btn__disc {
	position: absolute;
	top: calc(50% - 14px);
	left: 12px;
	transition: left var(--tp-speed-spring) var(--tp-ease-spring);
}

/* Banner CTA — same two states, but the hover is a DISSOLVE (SLOW), so both
   faces are stacked and cross-faded instead of sliding. */
.tp-wfd-btn--dissolve {
	display: inline-grid;
	padding: 0;
}

.tp-wfd-btn__face {
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 28px 8px 12px; /* disc 28 at y 8 → 44 tall */
	transition: opacity var(--tp-speed-spring) var(--tp-ease-spring);
}

.tp-wfd-btn__face--hover {
	justify-content: flex-end;
	padding: 8px 12px 8px 28px;
	opacity: 0;
}

/* Outlined pill with a 36px ↗ disc — 408:25195 ("Get in Touch") and
   408:25123 ("Discover More"): 4px insets, label at x 50, radius 59.
   Hover is SMART_ANIMATE SLOW: the disc slides to the right inset and the
   label to x 16 — the site-wide icon-pill swap (base.css .tp-btn--white) —
   and the pill inverts, as the homepage's Discover More does. */
.tp-wfd-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 3px 16px 3px 49px; /* + 1px border */
	border: 1px solid currentColor;
	border-radius: 59px;
	font: 700 16px/24px var(--tp-font-body);
	white-space: nowrap;
	text-transform: capitalize;
	transition: padding var(--tp-speed-spring) var(--tp-ease-spring), background-color var(--tp-speed-spring) var(--tp-ease-spring), border-color var(--tp-speed-spring) var(--tp-ease-spring), color var(--tp-speed-spring) var(--tp-ease-spring);
}

.tp-wfd-pill__icon {
	position: absolute;
	top: calc(50% - 18px);
	left: 3px;
	display: block;
	transition: left var(--tp-speed-spring) var(--tp-ease-spring), color var(--tp-speed-spring) var(--tp-ease-spring);
}

.tp-wfd-pill--light {
	color: #ffffff;
}

.tp-wfd-pill--blue {
	color: #1977f3;
}

.tp-wfd-btn--ghost:hover {
	background: #ffffff;
	color: #0a1c4d;
}

.tp-wfd-btn--solid:not(.tp-wfd-btn--dissolve):hover {
	padding: 10px 50px 10px 28px;
}

.tp-wfd-btn--solid:not(.tp-wfd-btn--dissolve):hover > .tp-wfd-btn__disc {
	left: calc(100% - 40px);
}

.tp-wfd-btn--dissolve:hover .tp-wfd-btn__face {
	opacity: 0;
}

.tp-wfd-btn--dissolve:hover .tp-wfd-btn__face--hover {
	opacity: 1;
}

.tp-wfd-pill:hover {
	padding: 3px 49px 3px 16px;
}

.tp-wfd-pill:hover .tp-wfd-pill__icon {
	left: calc(100% - 39px); /* 36 disc + 3 inset */
}

/* 317:9680 — white fill, label and disc #1977f3 (QA sheet 2026-10-26). */
.tp-wfd-pill--light:hover {
	background: #ffffff;
	border-color: #ffffff;
	color: #1977f3;
}

.tp-wfd-pill--light:hover .tp-wfd-pill__icon {
	color: #1977f3;
}

.tp-wfd-pill--blue:hover {
	background: #1977f3;
	color: #ffffff;
}

/* Keyboard focus gets the same end state. */
.tp-wfd-btn--solid:not(.tp-wfd-btn--dissolve):focus-visible {
	padding: 10px 50px 10px 28px;
}

.tp-wfd-btn--solid:not(.tp-wfd-btn--dissolve):focus-visible > .tp-wfd-btn__disc {
	left: calc(100% - 40px);
}

.tp-wfd-btn--dissolve:focus-visible .tp-wfd-btn__face {
	opacity: 0;
}

.tp-wfd-btn--dissolve:focus-visible .tp-wfd-btn__face--hover {
	opacity: 1;
}

.tp-wfd-pill:focus-visible {
	padding: 3px 49px 3px 16px;
}

.tp-wfd-pill:focus-visible .tp-wfd-pill__icon {
	left: calc(100% - 39px);
}

/* ---------------------------------------------------------------------
 * Hero — 408:24319 (1440×600)
 * ------------------------------------------------------------------ */

.tp-wfd-hero {
	position: relative;
	height: 598px; /* 600 at y -2 */
	overflow: hidden;
	color: #ffffff;
	background: linear-gradient(201.22deg, #050d22 10.56%, #093095 75.88%);
}

/* Ellipse 197 — 224px #008cff, blur 153.9px, at (241, -152) */
.tp-wfd-hero__glow {
	position: absolute;
	top: -150px;
	left: calc(50% - 479px);
	width: 224px;
	height: 224px;
	border-radius: 50%;
	background: #008cff;
	filter: blur(153.9px);
	pointer-events: none;
}

.tp-wfd-hero__inner {
	position: relative;
	width: min(1112px, calc(100% - 40px));
	height: 100%;
	margin-inline: auto;
}

/* 408:24323 — column, gap 32, at (164, 219) */
.tp-wfd-hero__copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	padding-top: 219px;
	max-width: 556px;
}

/* 408:24325 — 700 52px/66px, second line 400 */
.tp-wfd-hero__title {
	font: 700 52px/66px var(--tp-font-heading);
	color: #ffffff;
}

.tp-wfd-hero__title-light {
	font-weight: 400;
}

/* Group 1321314721 — 657×613 at (736, -2); router 593×467 at (771.5, 86.3) */
.tp-wfd-hero__art {
	position: absolute;
	top: -2px;
	left: 572px;
	width: 657px;
	height: 613px;
	pointer-events: none;
}

.tp-wfd-hero__art img {
	position: absolute;
	max-width: none;
}

.tp-wfd-hero__art-glow {
	inset: 0;
	width: 100%;
	height: 100%;
}

.tp-wfd-hero__art-router {
	top: 14.4%;
	left: 5.4%;
	width: 90.29%;
	height: auto;
}

/* ---------------------------------------------------------------------
 * Intro — 408:24361
 * ------------------------------------------------------------------ */

/* QA 2026-10-28: tighter than Figma's 108px top / 243px text-image gap,
   as the QA sheet asks. The copy column widens instead of the card moving,
   so both still line up with the 1112px grid edges. */
.tp-wfd-intro {
	padding-top: 64px;
}

.tp-wfd-intro__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.tp-wfd-intro__copy {
	flex: 0 1 600px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-left: 2px;
}

/* 408:24364 — 600 40px/50px #021b42 */
.tp-wfd-intro__title {
	font: 600 40px/50px var(--tp-font-heading);
	color: #021b42;
	text-transform: capitalize;
}

.tp-wfd-intro__desc {
	font: 400 16px/24px var(--tp-font-body);
	color: #383838;
}

/* Cardiogram 408:24362 — 363×342, radius 12; 3D icon 296×286 at (35, 27) */
.tp-wfd-intro__card {
	position: relative;
	flex: 0 0 363px;
	aspect-ratio: 363 / 342;
	background: linear-gradient(180deg, #f4f5ff 0%, #fbfdff 100%);
	border: 1px solid #eeefff;
	border-radius: 12px;
}

.tp-wfd-intro__card img {
	position: absolute;
	top: 7.89%;
	left: 9.64%;
	width: 81.54%;
}

/* ---------------------------------------------------------------------
 * Logos + challenges — 408:24255 band (#fff → #f1f8ff, 1048→2040)
 * ------------------------------------------------------------------ */

.tp-wfd-challenges {
	padding: 63px 0 100px;
	background: linear-gradient(180deg, #ffffff 0%, #f1f8ff 100%);
}

/* Component 6 — 5 × 210.9×95.1, gap 14.36 */
.tp-wfd-logos {
	display: flex;
	gap: 14.36px;
}

.tp-wfd-logos__item {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 95.1px;
	padding: 0 12px;
	background: #ffffff;
	border: 0.9px solid #e3efff;
	border-radius: 16.15px;
}

.tp-wfd-logos__item img {
	flex: none;
	max-width: 100%;
}

/* 408:24538 — row, centred, gap 66; title 493, description 545 */
.tp-wfd-challenges__head {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 66px;
	margin-top: 101px;
}

.tp-wfd-challenges__title {
	flex: 0 1 493px;
}

.tp-wfd-challenges__desc {
	flex: 0 1 545px;
	font: 400 16px/24px var(--tp-font-body);
	color: #414141;
}

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

/* C1…c6 — 355×234, 1px #ddd, radius 24; content at (24, 32), gap 24 */
.tp-wfd-challenge {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	min-height: 234px;
	padding: 31px 23px;
	border: 1px solid #dddddd;
	border-radius: 24px;
	transition: border-color 0.3s var(--tp-ease), box-shadow 0.3s var(--tp-ease), transform 0.3s var(--tp-ease);
}

.tp-wfd-challenge:hover {
	border-color: #a8d1ff;
	box-shadow: 0 12px 32px rgba(14, 101, 234, 0.08);
	transform: translateY(-2px);
}

.tp-wfd-challenge__icon {
	width: 94px;
	height: 94px;
	border-radius: 20px;
}

.tp-wfd-challenge__title {
	max-width: 259px;
	font: 600 20px/26px var(--tp-font-heading);
	color: #080a0b;
}

/* ---------------------------------------------------------------------
 * Services carousel — 408:24876
 * Left column 425 wide at x 164; track starts at x 697 and bleeds to the
 * right edge of the viewport. Cards 579 wide, gap 42.
 * ------------------------------------------------------------------ */

/* QA 2026-10-28: Figma has 152px above the H2; reduced as requested. */
.tp-wfd-svc {
	padding-top: 88px;
}

/* QA 2026-10-28: part of the next card must show, as in Figma. Figma's
   425px column + 108px gap only leaves room for that at 1440, so between
   1350 and 1440 both ease down to the 380/64 used below 1240. */
.tp-wfd-svc__row {
	display: flex;
	align-items: flex-start;
	gap: clamp(64px, 48.89vw - 596px, 108px);
}

.tp-wfd-svc__intro {
	flex: 0 0 clamp(380px, 50vw - 295px, 425px);
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.tp-wfd-svc__title {
	width: 474px;
	max-width: calc(100vw - 40px);
}

.tp-wfd-svc__desc {
	max-width: 452px;
	margin-top: 32px;
	font: 400 16px/20px var(--tp-font-body);
	color: #414141;
}

/* Frame 2147228062 — row, space-between, 42 below the copy */
.tp-wfd-svc__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 42px;
}

/* Group 3042780 — 146×76, #e8f1ff, 1px #fff, radius 60; 60px buttons */
.tp-wfd-svc__arrows {
	display: flex;
	gap: 5px;
	padding: 7px 12px;
	background: #e8f1ff;
	border: 1px solid #ffffff;
	border-radius: 60px;
}

.tp-wfd-svc__arrow {
	display: flex;
	width: 60px;
	height: 60px;
	border-radius: 30px;
	color: #ffffff;
	background: #0e65ea;
	transition: background-color 0.3s var(--tp-ease), color 0.3s var(--tp-ease);
}

.tp-wfd-svc__arrow svg {
	display: block;
}

.tp-wfd-svc__arrow:disabled {
	color: #b1c6e5;
	background: transparent;
	cursor: default;
}

/* "01/09" — 400 20px/25px #414141, current page 600 */
.tp-wfd-svc__count {
	font: 400 20px/25px var(--tp-font-body);
	color: #414141;
	font-variant-numeric: tabular-nums;
}

.tp-wfd-svc__count strong {
	font-weight: 600;
}

.tp-wfd-svc__viewport {
	container-type: inline-size;
	flex: 1 1 auto;
	min-width: 0;
	margin-top: 21px;
	margin-right: calc((100vw - min(1112px, 100vw - 40px)) / -2);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.tp-wfd-svc__viewport::-webkit-scrollbar {
	display: none;
}

.tp-wfd-svc__track {
	display: flex;
	gap: 42px;
	width: max-content;
}

/* Frame 2147228040 — 579×269: image 193×189 at (0, 40),
   card 482×269 at (97, 0). The viewport bleeds to the screen edge, so
   100cqw - 164px (97 image offset + 42 gap + 25 of the next card) is
   exactly 579 at 1440 and keeps the next card peeking in on narrower
   screens; 540 is the narrowest the longest copy still fits. */
.tp-wfd-svc-card {
	position: relative;
	flex: 0 0 clamp(540px, 100cqw - 164px, 579px);
	height: 269px;
	overflow: clip;
	scroll-snap-align: start;
}

.tp-wfd-svc-card__img {
	position: absolute;
	top: 40px;
	left: 0;
	z-index: 1;
	width: 193px;
	height: 189px;
}

/* Rectangle 161125359 — gradient, 1px #a8d1ff, radius 39 24 24 24;
   text at (129, 40); number at (419, 20) */
.tp-wfd-svc-card__body {
	position: relative;
	height: 100%;
	margin-left: 97px;
	padding: 39px 52px 20px 128px;
	background: linear-gradient(90deg, rgba(168, 209, 255, 0) 0%, rgba(168, 209, 255, 0.2) 100%);
	border: 1px solid #a8d1ff;
	border-radius: 39px 24px 24px 24px;
}

.tp-wfd-svc-card__num {
	position: absolute;
	top: 19px;
	right: 19px;
	font: 500 38px/48px var(--tp-font-heading);
	color: rgba(65, 65, 65, 0.2);
}

/* 250px reproduces Figma's breaks: "Configuration /" on its own line
   (Variant8), "Mesh & Extender Testing" on one (QA 2026-10-28). */
.tp-wfd-svc-card__title {
	max-width: 250px;
	font: 600 20px/26px var(--tp-font-heading);
	color: #0e65ea;
}

.tp-wfd-svc-card__text {
	margin-top: 12px;
	font: 400 16px/24px var(--tp-font-body);
	color: #383838;
}

/*
 * Arrow clicks — menu 279:25776 → Variant2…9, SMART_ANIMATE EASE_OUT 300ms.
 * The script moves matching cards and dissolves unmatched cards in place.
 * A waiting card's title is at y 60, with a 16px gap to its text; selected
 * cards 1–7 raise their title to y 40 and reduce that gap to 12px.
 * Variants 8 and 9 retain the waiting copy position even when selected.
 */
.tp-wfd-svc.is-js .tp-wfd-svc-card.is-past {
	opacity: 0;
}

/* Variants 8 and 9 set their copy at Plus Jakarta's intrinsic 126%
   (20.16px), not the 24px of cards 1–7 (QA 2026-10-28). */
.tp-wfd-svc-card:nth-child(n+8) .tp-wfd-svc-card__text {
	line-height: 20.16px;
}

@media (min-width: 768px) {
	.tp-wfd-svc-card__title,
	.tp-wfd-svc-card__text {
		transition: transform 0.3s var(--tp-ease), line-height 0.3s var(--tp-ease);
	}

	/* Waiting cards also use the intrinsic 126% line height in Figma. */
	.tp-wfd-svc.is-js .tp-wfd-svc-card:not(.is-current) .tp-wfd-svc-card__text {
		line-height: 20.16px;
	}

	.tp-wfd-svc.is-js .tp-wfd-svc-card:not(.is-current) .tp-wfd-svc-card__title,
	.tp-wfd-svc.is-js .tp-wfd-svc-card:nth-child(n+8) .tp-wfd-svc-card__title {
		transform: translateY(20px);
	}

	.tp-wfd-svc.is-js .tp-wfd-svc-card:not(.is-current) .tp-wfd-svc-card__text,
	.tp-wfd-svc.is-js .tp-wfd-svc-card:nth-child(n+8) .tp-wfd-svc-card__text {
		transform: translateY(24px);
	}
}

/* ---------------------------------------------------------------------
 * "Find the field failures" banner — 408:25109
 * Box 1112×339 at y 2670; Wi-Fi badge 203×214 at (315, -66), router
 * 283×221 at (834, 156), halo 282×282 at (204, -188).
 * ------------------------------------------------------------------ */

.tp-wfd-banner {
	padding-top: 168px;
}

.tp-wfd-banner__box {
	--tp-wfd-wifi-left: 315px;
	--tp-wfd-wifi-top: -66px;
	--tp-wfd-wifi-width: 203px;
	position: relative;
	min-height: 339px;
}

/* Figma 309:4782: keep the 282.447px rotated bounds separate from the
 * 261.148px ellipse. The exported fill preserves Figma's angled gradient.
 * The local ellipse rotates about its top-left corner at x226.2485. */
.tp-wfd-banner__halo {
	position: absolute;
	top: calc(var(--tp-wfd-wifi-top) - var(--tp-wfd-wifi-width) * 0.6009852217);
	left: calc(var(--tp-wfd-wifi-left) - var(--tp-wfd-wifi-width) * 0.5467980296);
	width: calc(var(--tp-wfd-wifi-width) * 1.3913659529);
	height: calc(var(--tp-wfd-wifi-width) * 1.3913659529);
	pointer-events: none;
}

.tp-wfd-banner__halo::before {
	content: "";
	position: absolute;
	top: 0;
	left: 7.8770636733%;
	width: 92.4590902588%;
	height: 92.4590902588%;
	background: url("../images/wifi-testing/banner-halo.png") center / 100% 100% no-repeat;
	transform: matrix(0.9963642955, 0.0851951241, -0.0851951241, 0.9963642955, 0, 0);
	transform-origin: 0 0;
}

/* Frame 2147228031 — gradient 189.41deg #153a8f → #072467 plus the 28%
   colour-burn texture, baked into banner-bg.webp */
.tp-wfd-banner__panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 361px) minmax(0, 472px);
	justify-content: space-between;
	align-items: start;
	min-height: 339px;
	padding: 76px 84px 70px 63px;
	color: #ffffff;
	background: #0e2c79 url("../images/wifi-testing/banner-bg.webp") center / cover no-repeat;
	border-radius: 24px;
}

.tp-wfd-banner__notch {
	position: absolute;
	width: 350px;
	height: 105px;
	max-width: none;
	pointer-events: none;
}

.tp-wfd-banner__notch--tl {
	top: -1px;
	left: -1px;
}

.tp-wfd-banner__notch--br {
	right: -1px;
	bottom: -1px;
}

/* QA 2026-10-28: the panel's full rectangle shows as a 1px hairline across
   both white cut-outs (Figma's masked notches, sampled #d2d9e8 on white).
   Drawn above the notches; on the navy panel the tint disappears. */
.tp-wfd-banner__panel::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(7, 36, 103, 0.18);
	border-radius: inherit;
	pointer-events: none;
}

.tp-wfd-banner__title {
	position: relative;
	margin-top: 54px;
	font: 400 36px/46px var(--tp-font-heading);
	text-transform: capitalize;
}

.tp-wfd-banner__side {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 42px;
}

.tp-wfd-banner__text {
	font: 400 16px/24px var(--tp-font-body);
}

.tp-wfd-banner__wifi {
	position: absolute;
	top: var(--tp-wfd-wifi-top);
	left: var(--tp-wfd-wifi-left);
	width: var(--tp-wfd-wifi-width);
	height: auto;
	border-radius: 78px;
	pointer-events: none;
}

.tp-wfd-banner__router {
	position: absolute;
	top: 156px;
	right: -5px;
	width: 283px;
	height: 221px;
	pointer-events: none;
}

/*
 * Idle float — 309:4807 ⇄ 309:4809, AFTER_TIMEOUT 1ms both ways: SMART_ANIMATE
 * EASE_OUT 700ms out, EASE_IN 700ms back, forever. Halo (Ellipse 207) moves
 * +10/+30, router -20 (up), Wi-Fi badge +29 (down). `translate` leaves each
 * layer's own transform (the halo's 4.89deg) untouched.
 */
.tp-wfd-banner__halo {
	animation: tp-wfd-float-halo 1.4s infinite;
}

.tp-wfd-banner__router {
	animation: tp-wfd-float-router 1.4s infinite;
}

.tp-wfd-banner__wifi {
	animation: tp-wfd-float-wifi 1.4s infinite;
}

@keyframes tp-wfd-float-halo {
	0% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0, 0.58, 1); }
	50% { translate: 10px 30px; animation-timing-function: cubic-bezier(0.42, 0, 1, 1); }
	100% { translate: 0 0; }
}

@keyframes tp-wfd-float-router {
	0% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0, 0.58, 1); }
	50% { translate: 0 -20px; animation-timing-function: cubic-bezier(0.42, 0, 1, 1); }
	100% { translate: 0 0; }
}

@keyframes tp-wfd-float-wifi {
	0% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0, 0.58, 1); }
	50% { translate: 0 29px; animation-timing-function: cubic-bezier(0.42, 0, 1, 1); }
	100% { translate: 0 0; }
}

/* ---------------------------------------------------------------------
 * Pre-compliance — 408:25114 head, 408:25110 cards, 408:25176 CTA.
 * The #f1f8ff band (408:24249) starts 132px into the CTA.
 * ------------------------------------------------------------------ */

.tp-wfd-precomp {
	padding-top: 158px;
	background: linear-gradient(180deg, #ffffff calc(100% - 134px), #f1f8ff calc(100% - 134px));
}

.tp-wfd-precomp__title {
	max-width: 605px;
}

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

/* Assess / Fix / Re-verify — 355×279, 32px 24px, radius 24 */
.tp-wfd-step {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 279px;
	padding: 32px 24px;
	background: linear-gradient(180deg, rgba(231, 245, 255, 0) 0%, #e7f5ff 100%);
	border: 1px solid #d7eaf8;
	border-radius: 24px;
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

/*
 * Hover — 377:23187 → 377:23189 (Fix 383:23340, Re-verify 383:23445),
 * SMART_ANIMATE GENTLE. The gradient fill becomes solid #e7f5ff, and the
 * 150px-blurred "Background+Blur" pill (80%) slides in from beyond the right
 * edge — 213×212 at (598, -33) → 440×212 at (-148, -63) — changing from
 * #b9affe to the card's own colour. The halftone image fill sits above both
 * fills in every state.
 */
.tp-wfd-step::before,
.tp-wfd-step::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tp-wfd-step::before {
	z-index: -3;
	background: #e7f5ff;
	opacity: 0;
	transition: opacity var(--tp-speed-slow) var(--tp-ease-gentle);
}

.tp-wfd-step::after {
	z-index: -2;
	background: url("../images/wifi-testing/step-texture.png") center / 100% 100% no-repeat;
}

.tp-wfd-step__glow {
	position: absolute;
	z-index: -1;
	top: -34px; /* Figma x/y are from the outer edge; these from inside the 1px border */
	left: calc(100% + 244px); /* x 598 on the 355px card */
	width: 213px;
	height: 212px;
	border-radius: 658.5px;
	background: #b9affe;
	opacity: 0.8;
	filter: blur(75px); /* Figma layer blur 150 */
	pointer-events: none;
	transition: top var(--tp-speed-slow) var(--tp-ease-gentle), left var(--tp-speed-slow) var(--tp-ease-gentle), width var(--tp-speed-slow) var(--tp-ease-gentle), background-color var(--tp-speed-slow) var(--tp-ease-gentle);
}

.tp-wfd-step--1 { --tp-wfd-glow: #8fa5ff; }
.tp-wfd-step--2 { --tp-wfd-glow: #fff18f; }
.tp-wfd-step--3 { --tp-wfd-glow: #8fffa0; }

.tp-wfd-step:hover::before {
	opacity: 1;
}

.tp-wfd-step:hover .tp-wfd-step__glow {
	top: -64px;
	left: -149px;
	width: 440px;
	background: var(--tp-wfd-glow, #8fa5ff);
}

.tp-wfd-step__img {
	width: 79px;
	height: 79px;
}

.tp-wfd-step__title {
	margin-top: 24px;
	font: 600 20px/26px var(--tp-font-heading);
	color: #080a0b;
}

.tp-wfd-step__text {
	max-width: 299px;
	margin-top: 12px;
	font: 400 16px/24px var(--tp-font-body);
	color: #383838;
}

/* Frame 2147228086 — 1112×266, 50px padding, radius 24 */
.tp-wfd-cert {
	position: relative;
	margin-top: 24px;
	min-height: 266px;
	padding: 50px;
	overflow: hidden;
	color: #ffffff;
	background: linear-gradient(196.91deg, #272b74 -8.16%, #373da4 46.25%, #4951da 101.92%);
	border: 1px solid #686dd5;
	border-radius: 24px;
}

.tp-wfd-cert__lines {
	position: absolute;
	max-width: none;
	pointer-events: none;
}

.tp-wfd-cert__lines--r {
	top: -11px;
	right: -11px;
	width: 578px;
	height: 287px;
}

.tp-wfd-cert__lines--l {
	top: 127px;
	left: -44px;
	width: 308px;
	height: 154px;
}

.tp-wfd-cert__copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 618px;
}

/* 408:25193 — 24px/30px, "Ready to Get" 400 / "Certification-Ready?" 700 */
.tp-wfd-cert__title {
	font: 400 24px/30px var(--tp-font-heading);
}

.tp-wfd-cert__title strong {
	font-weight: 700;
}

.tp-wfd-cert__text {
	margin-top: 12px;
	font: 400 16px/24px var(--tp-font-body);
	color: rgba(255, 255, 255, 0.6);
}

.tp-wfd-cert .tp-wfd-pill {
	margin-top: 24px;
}

/* hand 217.9×246 at (751, 40), rotated 3.72deg */
.tp-wfd-cert__hand {
	position: absolute;
	top: 39px;
	right: 142px;
	width: 218px;
	height: 246px;
	max-width: none;
	transform: rotate(3.72deg);
	transform-origin: 0 0;
	pointer-events: none;
}

/* ---------------------------------------------------------------------
 * TR-398 — 408:24250 art, 408:24541 copy, 408:25117 tabs, 408:25118 strip
 * ------------------------------------------------------------------ */

.tp-wfd-tr398 {
	padding-top: 107px;
	background: #f1f8ff;
}

.tp-wfd-tr398__intro {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
}

/* 495×431 at x 160 + a 107px fade (Rectangle 161125372) over its right edge */
.tp-wfd-tr398__art {
	position: relative;
	flex: 0 1 495px;
	margin-left: -4px;
}

.tp-wfd-tr398__art img {
	width: 100%;
	aspect-ratio: 495 / 431;
	mix-blend-mode: multiply; /* Figma fill blend MULTIPLY */
}

.tp-wfd-tr398__art video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
	mix-blend-mode: multiply;
	opacity: 0;
	pointer-events: none;
}

.tp-wfd-tr398__art video.is-playing {
	opacity: 1;
}

.tp-wfd-tr398__art.has-playing-video img {
	visibility: hidden;
}

.tp-wfd-tr398__art::after {
	content: "";
	position: absolute;
	top: 9px;
	right: -85px;
	width: 107px;
	height: 410px;
	background: linear-gradient(90deg, rgba(239, 246, 255, 0) 0%, #eff6ff 19.71%, #f1f8ff 85.1%);
}

.tp-wfd-tr398__copy {
	position: relative;
	z-index: 1;
	flex: 0 1 551px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 53px;
}

.tp-wfd-tr398__title {
	max-width: 493px;
}

.tp-wfd-tr398__desc {
	font: 400 16px/24px var(--tp-font-body);
	color: #414141;
	text-align: justify;
	/* QA 2026-10-28: Figma justifies without hyphenating ("perfor-mance"). */
	hyphens: manual;
}

/* Union 408:25117 — tab notch 267×116 (radius 24) joined to the 1113×374
   panel; stroke 1px rgba(165,192,250,0.32). Issue 2: notch at x 560,
   tab at 576. Issue 3 (variant 319:13513): notch flush right. */
.tp-wfd-tabs {
	position: relative;
	margin-top: -56px;
	padding-top: 76px;
	--tp-wfd-notch: 50.31%;
}

.tp-wfd-tabs[data-active="1"] {
	--tp-wfd-notch: 76.01%;
}

.tp-wfd-tabs__list {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	height: 77px;
}

.tp-wfd-tabs__notch {
	position: absolute;
	top: 0;
	left: var(--tp-wfd-notch);
	width: 267px;
	height: 77px;
	background: #ffffff;
	border: 1px solid rgba(165, 192, 250, 0.32);
	border-bottom: 0;
	border-radius: 24px 24px 0 0;
	transition: left var(--tp-speed-slow) var(--tp-ease-gentle);
}

/* QA 2026-10-28: the Union's inner corners — the notch side runs down to
   y 52, then a 24px concave curve meets the panel top (…L536 76 C549 76
   560 65 560 52…). Each 25×25 square covers the notch side border and the
   panel's top border below it, and redraws the stroke along the curve. */
.tp-wfd-tabs__notch::before,
.tp-wfd-tabs__notch::after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 25px;
	height: 25px;
	pointer-events: none;
	transition: opacity var(--tp-speed-slow) var(--tp-ease-gentle);
}

.tp-wfd-tabs__notch::before {
	left: -25px;
	background: radial-gradient(circle at 0 0, transparent 23.4px, rgba(165, 192, 250, 0.32) 23.6px, rgba(165, 192, 250, 0.32) 24.4px, #ffffff 24.6px);
}

.tp-wfd-tabs__notch::after {
	right: -25px;
	background: radial-gradient(circle at 100% 0, transparent 23.4px, rgba(165, 192, 250, 0.32) 23.6px, rgba(165, 192, 250, 0.32) 24.4px, #ffffff 24.6px);
}

/* Issue 3 (319:13513): the notch is flush with the panel's right edge,
   which has no corner there, so the right-hand curve goes. */
.tp-wfd-tabs[data-active="1"] .tp-wfd-tabs__notch::after {
	opacity: 0;
}

/* QA 2026-10-28 (smoother switch): one blue highlight slides with the
   notch instead of two tab fills cross-fading. Tabs sit 16px inside the
   notch in both variants (576 = 560 + 16, 862 = 846 + 16). Desktop only;
   below 1024px the tabs are a plain segmented row. */
.tp-wfd-tabs__pill {
	display: none;
}

.tp-wfd-tabs__tab {
	position: absolute;
	top: 16px;
	width: 235px;
	height: 46px;
	padding: 10px;
	border-radius: 11px;
	font: 500 20px/26px var(--tp-font-heading);
	color: #000000;
	text-align: center;
	transition: background-color var(--tp-speed-slow) var(--tp-ease-gentle), color var(--tp-speed-slow) var(--tp-ease-gentle);
}

.tp-wfd-tabs__tab:nth-of-type(1) {
	left: calc(var(--tp-wfd-tab-0, 51.75%));
}

.tp-wfd-tabs__tab:nth-of-type(2) {
	left: calc(var(--tp-wfd-tab-1, 77.45%));
}

.tp-wfd-tabs__tab[aria-selected="true"] {
	font-weight: 700;
	color: #ffffff;
	background: #007aff;
}

.tp-wfd-tabs__tab[aria-selected="false"]:hover {
	color: #007aff;
}

@media (min-width: 1024px) {
	.tp-wfd-tabs.is-js .tp-wfd-tabs__pill {
		position: absolute;
		top: 16px;
		left: calc(var(--tp-wfd-notch) + 16px);
		display: block;
		width: 235px;
		height: 46px;
		background: #007aff;
		border-radius: 11px;
		transition: left var(--tp-speed-slow) var(--tp-ease-gentle);
	}

	.tp-wfd-tabs.is-js .tp-wfd-tabs__tab[aria-selected="true"] {
		background: transparent;
	}
}

.tp-wfd-tabs__body {
	position: relative;
	min-height: 374px;
	background: #ffffff;
	border: 1px solid rgba(165, 192, 250, 0.32);
	border-radius: 24px;
	overflow: hidden;
	transition: border-top-right-radius var(--tp-speed-slow) var(--tp-ease-gentle);
}

.tp-wfd-tabs[data-active="1"] .tp-wfd-tabs__body {
	border-top-right-radius: 0;
}

.tp-wfd-tabs__panel {
	display: flex;
	min-height: 372px;
	animation: tp-wfd-fade 0.35s var(--tp-ease);
}

.tp-wfd-tabs__panel[hidden] {
	display: none;
}

@keyframes tp-wfd-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/*
 * Tab switch — 319:13511 ⇄ 319:13513, SMART_ANIMATE GENTLE: the notch and
 * the blue highlight slide. With JS the panels share one grid cell, so the
 * body keeps the taller panel's height and never jumps.
 * QA 2026-10-28: a straight cross-fade showed both panels' copy and images
 * on top of each other mid-way. Now the outgoing panel fades out first
 * (200ms) and the incoming one fades in and rises 12px just after.
 */
.tp-wfd-tabs.is-js .tp-wfd-tabs__body {
	display: grid;
}

.tp-wfd-tabs.is-js .tp-wfd-tabs__panel {
	grid-area: 1 / 1;
	animation: none;
	transition: opacity 0.45s var(--tp-ease) 0.16s, transform 0.55s var(--tp-ease) 0.16s, visibility 0s linear 0s;
}

.tp-wfd-tabs.is-js .tp-wfd-tabs__panel:not(.is-active) {
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.2s var(--tp-ease), transform 0s linear 0.2s, visibility 0s linear 0.2s;
}

/* Frame 2147228093 — 442 wide at (48, 48 below the panel top) */
.tp-wfd-tabs__copy {
	flex: 0 1 442px;
	padding: 47px 0 47px 47px;
	box-sizing: content-box;
}

.tp-wfd-tabs__title {
	font: 600 28px/34px var(--tp-font-heading);
	color: #131313;
	text-transform: capitalize;
}

.tp-wfd-tabs__desc {
	margin-top: 16px;
	font: 400 16px/24px var(--tp-font-body);
	color: #595959;
}

.tp-wfd-ticks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.tp-wfd-ticks li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font: 500 16px/24px var(--tp-font-body);
	color: #131313;
}

.tp-wfd-ticks svg {
	flex: none;
}

/* QA 2026-10-28: the tick text is one flex item. Bare, the <span> that
   keeps "Wi-Fi" unbroken became its own item, so the 12px gap appeared
   either side of it ("Mesh   Wi-Fi   performance testing"). */
.tp-wfd-ticks__text {
	min-width: 0;
}

/* image 57: 526×350 at (557, 24); image 56: 546×318 at (538, 40) */
.tp-wfd-tabs__img {
	position: absolute;
	right: 29px;
	bottom: 0;
	width: 526px;
}

.tp-wfd-tabs__panel--1 .tp-wfd-tabs__img {
	right: 28px;
	bottom: 15px;
	width: 546px;
}

/* Rectangle 161125371 — 1110×255, radius 24. Both its fill and stroke
   fade toward white; retain the entire card above the lab band. */
.tp-wfd-report {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 24px;
	max-width: 1110px;
	min-height: 255px;
	padding: 45px 41px 112px;
	border: 1px solid transparent;
	border-radius: 24px;
	/* Figma interpolates colour and alpha separately. Intermediate stops
	   preserve its lighter fade in browsers' premultiplied gradients. */
	background: linear-gradient(180deg,
		rgba(218, 234, 255, 1) 0%,
		rgba(222.625, 236.625, 255, .875) 12.5%,
		rgba(227.25, 239.25, 255, .75) 25%,
		rgba(231.875, 241.875, 255, .625) 37.5%,
		rgba(236.5, 244.5, 255, .5) 50%,
		rgba(241.125, 247.125, 255, .375) 62.5%,
		rgba(245.75, 249.75, 255, .25) 75%,
		rgba(250.375, 252.375, 255, .125) 87.5%,
		rgba(255, 255, 255, 0) 100%);
}

/* Paint only the 1px stroke, following all four rounded corners.
   Its white endpoint blends into the pale band without clipping it. */
.tp-wfd-report::after {
	content: "";
	position: absolute;
	inset: -1px;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(180deg,
		rgba(163, 204, 255, .36) 0%,
		rgba(186, 216.75, 255, .52) 25%,
		rgba(209, 229.5, 255, .68) 50%,
		rgba(232, 242.25, 255, .84) 75%,
		#fff 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	pointer-events: none;
}

.tp-wfd-report > .tp-wfd-pill {
	min-width: min(285px, 100%);
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
}

.tp-wfd-report > .tp-wfd-pill:not(:hover):not(:focus-visible) {
	padding-right: 15px;
}

.tp-wfd-report__copy {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* 408:25121 — 24px/30px #021b42, "Certification-Ready" 700 */
.tp-wfd-report__title {
	font: 400 24px/30px var(--tp-font-heading);
	color: #021b42;
}

.tp-wfd-report__title strong {
	font-weight: 700;
}

.tp-wfd-report__text {
	font: 400 16px/24px var(--tp-font-body);
	color: rgba(2, 27, 66, 0.8);
}

/* ---------------------------------------------------------------------
 * Lab — 408:25124 band, 408:25125 heading, 408:25128 accordion + card
 * ------------------------------------------------------------------ */

.tp-wfd-lab {
	padding: 100px 0 94px;
	color: #ffffff;
	background: linear-gradient(185.08deg, #153a8f 10.78%, #072467 97.6%);
}

.tp-wfd-lab__head {
	display: flex;
	align-items: flex-end;
	gap: 24px;
}

.tp-wfd-lab__title {
	flex: 0 1 556px;
	font: 400 36px/46px var(--tp-font-heading);
	text-transform: capitalize;
}

.tp-wfd-lab__title strong {
	font-weight: 700;
}

.tp-wfd-lab__desc {
	flex: 0 1 558px;
	margin-left: auto;
	font: 400 16px/24px var(--tp-font-body);
}

.tp-wfd-lab__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-top: 72px;
}

/* Frame 2147228103 — items 46px (10px 24px), gap 8, 2px dividers
   (white, 0 → 1 → 0 at 13.9% / 86.5%, opacity 0.1) */
.tp-wfd-acc {
	flex: 0 1 556px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tp-wfd-acc__item {
	position: relative;
	padding: 9px 23px; /* + 1px border = Figma 10px 24px */
	border: 1px solid transparent;
	border-radius: 12px;
	transition: background-color var(--tp-speed-slow) var(--tp-ease-gentle), border-color var(--tp-speed-slow) var(--tp-ease-gentle), padding var(--tp-speed-slow) var(--tp-ease-gentle);
}

.tp-wfd-acc__item::after {
	content: "";
	position: absolute;
	left: -1px;
	right: -1px;
	bottom: -9px;
	height: 2px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 13.94%, #ffffff 86.54%, rgba(255, 255, 255, 0) 100%);
	opacity: 0.1;
	pointer-events: none;
}

/* Open variant 408:23938 — 13% white fill, 1px 32% white stroke,
   radius 12, title at y 20 (46 → 106 tall), title 700 */
.tp-wfd-acc__item.is-open {
	padding-top: 19px;
	padding-bottom: 19px;
	background: rgba(255, 255, 255, 0.13);
	border-color: rgba(255, 255, 255, 0.32);
}

.tp-wfd-acc__heading {
	font: 500 20px/26px var(--tp-font-heading);
}

.tp-wfd-acc__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	text-align: left;
	color: #ffffff;
	font-weight: inherit;
}

.tp-wfd-acc__item.is-open .tp-wfd-acc__btn {
	font-weight: 700;
}

.tp-wfd-acc__btn:hover .tp-wfd-acc__label {
	opacity: 0.8;
}

.tp-wfd-acc__chev {
	flex: none;
	transition: transform var(--tp-speed-slow) var(--tp-ease-gentle);
}

.tp-wfd-acc__item.is-open .tp-wfd-acc__chev {
	transform: rotate(180deg);
}

/*
 * Rows open on hover in Figma — new ani1…6 (408:23937 → 408:23938 etc.),
 * ON_HOVER SMART_ANIMATE GENTLE — and close again when the pointer leaves.
 * The script adds .is-js and drops [hidden] so the height can animate.
 */
.tp-wfd-acc.is-js .tp-wfd-acc__panel {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	visibility: hidden;
	transition: grid-template-rows var(--tp-speed-slow) var(--tp-ease-gentle), opacity var(--tp-speed-slow) var(--tp-ease-gentle), visibility var(--tp-speed-slow) var(--tp-ease-gentle);
}

.tp-wfd-acc.is-js .tp-wfd-acc__item.is-open .tp-wfd-acc__panel {
	grid-template-rows: 1fr;
	opacity: 1;
	visibility: visible;
}

.tp-wfd-acc__inner {
	min-height: 0;
	overflow: hidden;
}

.tp-wfd-acc__panel p {
	max-width: 415px;
	margin-top: 16px;
	font: 400 16px/24px var(--tp-font-body);
}

/* Rectangle 161125372 — 532×461 white, radius 24; photo 500×323 at 16 */
.tp-wfd-lab__card {
	flex: 0 1 532px;
	padding: 16px 16px 38px;
	color: #004a67;
	background: #ffffff;
	border-radius: 24px;
}

.tp-wfd-lab__photo {
	width: 100%;
	aspect-ratio: 500 / 323;
	object-fit: cover;
	border-radius: 24px;
}

.tp-wfd-lab__caption {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-top: 24px;
	font: 500 16px/20px var(--tp-font-body);
}

.tp-wfd-lab__caption > span {
	max-width: 339px;
}

.tp-wfd-lab__caption svg {
	flex: none;
	width: 36px;
	height: 36px;
}

/* ---------------------------------------------------------------------
 * Case studies — 408:25129 heading, 408:25132 cards (1112×400, every 530)
 * ------------------------------------------------------------------ */

.tp-wfd-cases {
	padding: 100px 0;
}

.tp-wfd-cases__list {
	--tp-wfd-case-inset: max(0px, calc(var(--tp-header-height-scrolled, 88px) - 65px));
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	/* 408:25132 starts 23px before the heading ends. Each sticky row
	   supplies 65px of padding, retaining the visible 42px heading gap. */
	margin-top: -23px;
}

.tp-wfd-case-row {
	flex: 0 0 auto;
	padding-block: 65px;
}

/* Figma rows 408:25133 / 408:25147 / 408:25162: STICKY_SCROLLS.
   Later siblings paint over the earlier card, with no zoom or tween.
   JS enables pinning only when every card fits below the shared header. */
.tp-wfd-cases__list.is-stackable > .tp-wfd-case-row {
	position: sticky;
	top: var(--tp-wfd-case-inset);
}

/* QA 2026-10-28 (Changes tab): a card blurs as the next one slides over
   it and clears again once that card has moved off. JS sets --tp-wfd-cover
   (0–1) from the overlap. The blur is on the children so the card's own
   overflow clip keeps it inside the rounded corners. */
.tp-wfd-case.is-covered > * {
	filter: blur(calc(var(--tp-wfd-cover, 0) * 6px));
}

.tp-wfd-case {
	position: relative;
	display: flex;
	min-height: 400px;
	background: #ddf6ff;
	border-radius: 24px;
	overflow: hidden;
}

.tp-wfd-case__img {
	flex: 0 0 48.83%;
	width: 48.83%;
	min-height: 400px;
	object-fit: cover;
	border-radius: 24px 0 0 24px;
}

/* Frame 2147228107 — at (604, 92), column gap 16 */
.tp-wfd-case__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: calc(408px + 61px);
	/* Reserve the cut-out/button area if an editor adds longer copy. */
	padding: 92px 0 56px 61px;
}

.tp-wfd-case-row:first-child .tp-wfd-case__body {
	max-width: calc(357px + 61px);
}

/* Figma places the second card's copy 15px higher and narrows its text */
.tp-wfd-case-row:nth-child(2) .tp-wfd-case__body {
	padding-top: 77px;
}

.tp-wfd-case-row:nth-child(2) .tp-wfd-case__text {
	max-width: 357px;
}

/* 408:25142 — 6px 12px, 1px #008dc0, radius 52, 500 16px/20px */
.tp-wfd-case__tag {
	display: inline-flex;
	padding: 6px 12px;
	border: 1px solid #008dc0;
	border-radius: 52px;
	font: 500 16px/20px var(--tp-font-body);
	color: #008dc0;
}

.tp-wfd-case__title {
	margin-top: 16px;
	font: 500 24px/30px var(--tp-font-heading);
	color: #131313;
}

.tp-wfd-case__text {
	margin-top: 12px;
	font: 400 16px/24px var(--tp-font-body);
	color: #383838;
}

/* Mask Group — white 304×98 cut-out holding the 162×44 "Read More" pill */
.tp-wfd-case__foot {
	position: absolute;
	right: -1px;
	bottom: -2px;
	z-index: 2;
	width: 305px;
	height: 98px;
}

.tp-wfd-case__notch {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
}

.tp-wfd-case__btn {
	position: absolute;
	right: 2px;
	bottom: 4px;
}

/* ---------------------------------------------------------------------
 * Journey — 408:25022; band 408:24254 (#fff → #f1f8ff)
 * ------------------------------------------------------------------ */

.tp-wfd-journey {
	padding-bottom: 100px;
	background: linear-gradient(180deg, #ffffff 0%, #f1f8ff 100%);
}

.tp-wfd-journey__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 23.5px;
	row-gap: 110px;
	margin-top: 61px;
}

.tp-wfd-jstep {
	text-align: center;
}

.tp-wfd-jstep__badge {
	position: relative;
	width: 107px;
	height: 107px;
	margin-inline: auto;
}

/* "01"… — 400 70px/26px, gradient #dbdbdb → #fff clipped to the text */
.tp-wfd-jstep__num {
	position: absolute;
	top: -11px;
	left: -24px;
	width: 96px;
	transform: translateX(-50%);
	font: 400 70px/26px var(--tp-font-heading);
	text-align: center;
	color: transparent;
	background: linear-gradient(168.05deg, #dbdbdb 1.77%, #ffffff 136.85%);
	-webkit-background-clip: text;
	background-clip: text;
	pointer-events: none;
	user-select: none;
	padding: 24px 0;
	margin-top: -24px;
}

/* Figma 408:25026–25031: use the original number artwork. Offsets are the
 * rendered glyph bounds relative to each 107px icon, rather than one shared
 * 96px text box (02 is outlined in the source design). */
.tp-wfd-jstep__num--art {
	top: -21.9902px;
	left: -58.5831px;
	width: max-content;
	height: auto;
	margin: 0;
	padding: 0;
	transform: none;
	background: none;
	line-height: 0;
}

.tp-wfd-jstep__num--art img {
	display: block;
	max-width: none;
}

.tp-wfd-jstep--2 .tp-wfd-jstep__num--art {
	top: -24.5195px;
	left: -61.2693px;
}

.tp-wfd-jstep--3 .tp-wfd-jstep__num--art {
	left: -55.5897px;
}

.tp-wfd-jstep--4 .tp-wfd-jstep__num--art {
	left: -67.6407px;
}

.tp-wfd-jstep--5 .tp-wfd-jstep__num--art {
	left: -65.6622px;
}

.tp-wfd-jstep--6 .tp-wfd-jstep__num--art {
	left: -55.1453px;
}

.tp-wfd-jstep__icon {
	position: relative;
	z-index: 1;
	width: 107px;
	height: 107px;
	transition: transform 0.3s var(--tp-ease);
}

.tp-wfd-jstep:hover .tp-wfd-jstep__icon {
	transform: translateY(-4px);
}

/* Frame 2147224609 — 127×11 connector, 73px right of the icon */
.tp-wfd-jstep__link {
	position: absolute;
	top: 48px;
	left: calc(100% + 73px);
	width: 127px;
	height: 11px;
	max-width: none;
}

.tp-wfd-jstep__title {
	margin-top: 24px;
	font: 700 20px/26px var(--tp-font-heading);
	color: #080a0b;
}

.tp-wfd-jstep__text {
	margin-top: 16px;
	font: 400 16px/24px var(--tp-font-body);
	color: #383838;
}

.tp-wfd-jstep--6 .tp-wfd-jstep__text {
	max-width: 305px;
	margin-inline: auto;
}

/* ---------------------------------------------------------------------
 * Why ThinkPalm — 408:24877 (card 555×654 + list 533)
 * ------------------------------------------------------------------ */

.tp-wfd-why {
	padding-top: 100px;
}

.tp-wfd-why__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.tp-wfd-why__card {
	position: relative;
	flex: 0 1 555px;
	min-height: 654px;
	padding: 52px;
	overflow: hidden;
	background: linear-gradient(181.96deg, #132c5b 24.35%, #007aff 113.44%, #131313 184.89%);
	border-radius: 32px;
}

.tp-wfd-why__lines {
	position: absolute;
	top: 181px;
	left: -113px;
	width: 826px;
	height: 586px;
	max-width: none;
	pointer-events: none;
}

.tp-wfd-why__copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 451px;
}

.tp-wfd-why__title {
	color: #ffffff;
}

.tp-wfd-why__desc {
	font: 400 16px/24px var(--tp-font-body);
	color: rgba(255, 255, 255, 0.8);
}

/* Telecom Engineers … 587×475 at (-29, 226) with its drop shadow
   (0 4px 21.3px rgba(175,126,126,.37)) baked into the 630×518 export */
.tp-wfd-why__photo {
	position: absolute;
	top: 208.7px;
	left: -50.5px;
	width: 630px;
	height: 518px;
	max-width: none;
}

.tp-wfd-why__list {
	flex: 0 1 533px;
	margin-top: 27px;
}

/* Items 102 tall, 32 + 1px divider + 32 between them; divider
   rgba(0,68,116) 0 → 1 at 51.4%, opacity 0.2 */
.tp-wfd-why__item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.tp-wfd-why__item + .tp-wfd-why__item {
	margin-top: 56px; /* items repeat every 166px (Figma frame 102 tall + 32 + 32) */
}

.tp-wfd-why__item + .tp-wfd-why__item::before {
	content: "";
	position: absolute;
	top: -32px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(0, 68, 116, 0) 0%, #004474 51.44%, #004474 100%);
	opacity: 0.2;
}

.tp-wfd-why__icon {
	flex: 0 0 102px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 102px;
	height: 102px;
	background: #ffffff;
	border: 1px solid #cffff9;
	border-radius: 12px;
}

.tp-wfd-why__icon img {
	width: 56px;
	height: 56px;
}

.tp-wfd-why__item-title {
	font: 600 20px/26px var(--tp-font-heading);
	color: #080a0b;
}

.tp-wfd-why__item-text {
	max-width: 406px;
	margin-top: 12px;
	font: 400 16px/24px var(--tp-font-body);
	color: #383838;
}

/* ---------------------------------------------------------------------
 * FAQ — 408:24993 (823 wide, heading gap 60, items gap 28)
 * ------------------------------------------------------------------ */

.tp-wfd-faq {
	padding: 130px 0 100px;
}

.tp-wfd-faq__wrap {
	width: min(823px, calc(100% - 40px));
	margin-inline: auto;
}

.tp-wfd-faq__heading {
	font: 600 40px/50px var(--tp-font-heading);
	color: #080a0b;
	text-align: center;
	text-transform: capitalize;
}

.tp-wfd-faq__list {
	margin-top: 60px;
}

/* Closed rows are 799 wide (icon 24 in from the list edge); the open row
   is a #f8f8f8 card with 24px padding. Dividers (1px #d6d6d6) sit only
   between two closed rows. */
.tp-wfd-faq__item {
	padding: 0 24px 0 0;
	border-radius: 24px;
	transition: background-color 0.3s var(--tp-ease), padding 0.3s var(--tp-ease);
}

.tp-wfd-faq__item + .tp-wfd-faq__item {
	margin-top: 28px;
}

.tp-wfd-faq__item:not(.is-open) + .tp-wfd-faq__item:not(.is-open) {
	padding-top: 28px;
	border-top: 1px solid #d6d6d6;
	border-radius: 0;
}

.tp-wfd-faq__item.is-open {
	padding: 24px;
	background: #f8f8f8;
}

/* QA 2026-10-28 (Changes tab): questions keep their sentence case. */
.tp-wfd-faq__q {
	font: 500 20px/34px var(--tp-font-heading);
	color: #131313;
}

.tp-wfd-faq__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	text-align: left;
	font-weight: inherit;
	text-transform: inherit;
}

.tp-wfd-faq__q-text {
	max-width: 548px;
	transition: color 0.2s var(--tp-ease);
}

.tp-wfd-faq__item.is-open .tp-wfd-faq__q {
	font-weight: 600;
}

.tp-wfd-faq__item.is-open .tp-wfd-faq__q-text {
	max-width: 660px;
}

.tp-wfd-faq__btn:hover .tp-wfd-faq__q-text {
	color: #1977f3;
}

/* Icon — 42×42, 8px padding, #fff, 1px #dcdcdc, radius 50px */
.tp-wfd-faq__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: #ffffff;
	border: 1px solid #dcdcdc;
	border-radius: 50px;
	color: rgba(0, 0, 0, 0.4);
	transition: color 0.2s var(--tp-ease), border-color 0.2s var(--tp-ease);
}

.tp-wfd-faq__icon svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.333;
	stroke-linecap: round;
}

.tp-wfd-faq__v {
	transform-origin: 8px 8px;
	transition: transform 0.3s var(--tp-ease), opacity 0.3s var(--tp-ease);
}

.tp-wfd-faq__item.is-open .tp-wfd-faq__icon {
	color: #1977f3;
}

.tp-wfd-faq__item.is-open .tp-wfd-faq__v {
	transform: rotate(90deg);
	opacity: 0;
}

.tp-wfd-faq__a p {
	max-width: 682px;
	margin-top: 12px;
	font: 400 16px/26px var(--tp-font-body);
	color: #383838;
}

/* Shared Get In Touch section: this page's intro is set in Title Case in
   Figma (408:24437, text-transform: capitalize). */
.tp-wfd-body .tp-git__title {
	text-transform: capitalize;
}

/* =====================================================================
 * Responsive. The 1440 layout holds down to a 1152 viewport (the 1112
 * column plus 20px gutters); below that columns flow, then stack.
 * ================================================================== */

@media (max-width: 1239px) {
	.tp-wfd-hero__art {
		left: auto;
		right: -80px;
		width: 560px;
		height: 523px;
	}

	.tp-wfd-svc__row {
		gap: 64px;
	}

	.tp-wfd-svc__intro {
		flex-basis: 380px;
	}

	.tp-wfd-svc__title {
		width: auto;
	}

	.tp-wfd-banner__box {
		--tp-wfd-wifi-left: 26%;
	}

	.tp-wfd-tabs__copy {
		flex-basis: 380px;
	}

	.tp-wfd-tabs__img,
	.tp-wfd-tabs__panel--1 .tp-wfd-tabs__img {
		width: 46%;
	}
}

@media (max-width: 1023px) {
	/* Hero — copy above the artwork */
	.tp-wfd-hero {
		height: auto;
	}

	.tp-wfd-hero__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		height: auto;
	}

	.tp-wfd-hero__copy {
		align-self: stretch;
		padding-top: 160px;
		max-width: none;
	}

	.tp-wfd-hero__art {
		position: relative;
		top: auto;
		right: auto;
		width: min(560px, 100%);
		height: auto;
		aspect-ratio: 657 / 613;
		margin-top: -8px;
		margin-bottom: -40px;
	}

	/* Intro */
	.tp-wfd-intro {
		padding-top: 56px;
	}

	.tp-wfd-intro__row {
		flex-direction: column;
		align-items: stretch;
	}

	.tp-wfd-intro__copy {
		flex-basis: auto;
		margin-left: 0;
	}

	.tp-wfd-intro__card {
		flex-basis: auto;
		width: min(363px, 100%);
		align-self: center;
	}

	/* Logos + challenges */
	.tp-wfd-challenges {
		padding: 64px 0 80px;
	}

	.tp-wfd-logos {
		flex-wrap: wrap;
		justify-content: center;
	}

	.tp-wfd-logos__item {
		flex: 0 1 calc((100% - 2 * 14.36px) / 3);
	}

	.tp-wfd-challenges__head {
		flex-direction: column;
		gap: 16px;
		margin-top: 64px;
	}

	.tp-wfd-challenges__title,
	.tp-wfd-challenges__desc {
		flex-basis: auto;
	}

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

	/* Services carousel — intro on top, track full width */
	.tp-wfd-svc {
		padding-top: 56px;
	}

	.tp-wfd-svc__row {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}

	.tp-wfd-svc__intro {
		flex-basis: auto;
	}

	.tp-wfd-svc__desc {
		max-width: 640px;
	}

	.tp-wfd-svc__controls {
		order: 3;
	}

	.tp-wfd-svc__viewport {
		margin-top: 0;
		margin-left: calc((100vw - min(1112px, 100vw - 40px)) / -2);
		padding-left: calc((100vw - min(1112px, 100vw - 40px)) / 2);
		scroll-padding-left: calc((100vw - min(1112px, 100vw - 40px)) / 2);
	}

	/* Banner — single column; the decorative notches belong to the wide layout */
	.tp-wfd-banner {
		padding-top: 140px;
	}

	.tp-wfd-banner__notch {
		display: none;
	}

	.tp-wfd-banner__panel {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 24px;
		padding: 150px 32px 170px;
	}

	.tp-wfd-banner__title {
		margin-top: 0;
	}

	.tp-wfd-banner__box {
		--tp-wfd-wifi-left: 32px;
		--tp-wfd-wifi-width: 160px;
	}

	.tp-wfd-banner__router {
		top: auto;
		right: 0;
		bottom: -38px;
		width: 230px;
		height: auto;
	}

	/* Pre-compliance */
	.tp-wfd-precomp {
		padding-top: 80px;
	}

	.tp-wfd-precomp__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-top: 40px;
	}

	/* One card per row: icon on the left, copy beside it */
	.tp-wfd-step {
		display: grid;
		grid-template-columns: 79px minmax(0, 1fr);
		column-gap: 24px;
		align-content: center;
		min-height: 0;
		padding: 24px;
	}

	.tp-wfd-step__img {
		grid-row: span 2;
	}

	.tp-wfd-step__title {
		margin-top: 0;
	}

	.tp-wfd-step__text {
		max-width: none;
		margin-top: 8px;
	}

	.tp-wfd-step__text br {
		display: none;
	}

	.tp-wfd-cert {
		padding: 40px 32px;
	}

	.tp-wfd-cert__copy {
		max-width: 58%;
	}

	.tp-wfd-cert__hand {
		right: 24px;
	}

	/* TR-398 */
	.tp-wfd-tr398 {
		padding-top: 64px;
	}

	.tp-wfd-tr398__intro {
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}

	.tp-wfd-tr398__art {
		flex-basis: auto;
		width: min(495px, 100%);
		margin-left: 0;
	}

	.tp-wfd-tr398__art::after {
		display: none;
	}

	.tp-wfd-tr398__copy {
		flex-basis: auto;
		margin-top: 0;
	}

	.tp-wfd-tabs {
		margin-top: 40px;
		padding-top: 0;
	}

	.tp-wfd-tabs__list {
		position: static;
		display: flex;
		gap: 8px;
		height: auto;
		margin-bottom: 16px;
		padding: 6px;
		background: #ffffff;
		border: 1px solid rgba(165, 192, 250, 0.32);
		border-radius: 16px;
	}

	.tp-wfd-tabs__notch {
		display: none;
	}

	.tp-wfd-tabs__tab {
		position: static;
		flex: 1 1 0;
		width: auto;
	}

	.tp-wfd-tabs[data-active="1"] .tp-wfd-tabs__body {
		border-top-right-radius: 24px;
	}

	.tp-wfd-tabs__panel {
		flex-direction: column;
	}

	.tp-wfd-tabs__copy {
		flex-basis: auto;
		padding: 32px 32px 8px;
	}

	.tp-wfd-tabs__img,
	.tp-wfd-tabs__panel--1 .tp-wfd-tabs__img {
		position: static;
		align-self: center;
		width: min(526px, 100%);
		margin-bottom: 0;
	}

	.tp-wfd-tabs__panel--1 .tp-wfd-tabs__img {
		margin: 8px 0 16px;
	}

	.tp-wfd-report {
		flex-direction: column;
		align-items: flex-start;
		min-height: 0;
		padding: 32px 32px 48px;
	}

	/* Lab */
	.tp-wfd-lab {
		padding: 80px 0;
	}

	.tp-wfd-lab__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.tp-wfd-lab__title,
	.tp-wfd-lab__desc {
		flex-basis: auto;
		margin-left: 0;
	}

	.tp-wfd-lab__row {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
		margin-top: 40px;
	}

	.tp-wfd-acc,
	.tp-wfd-lab__card {
		flex-basis: auto;
	}

	.tp-wfd-lab__card {
		width: min(532px, 100%);
		align-self: center;
	}

	/* Case studies — image above the copy */
	.tp-wfd-cases {
		padding: 80px 0;
	}

	.tp-wfd-cases__list {
		--tp-wfd-case-inset: var(--tp-header-height-scrolled, 88px);
		gap: 40px;
		margin-top: 40px;
	}

	.tp-wfd-case-row {
		padding-block: 0;
	}

	.tp-wfd-case {
		flex-direction: column;
	}

	.tp-wfd-case__img {
		flex-basis: auto;
		width: 100%;
		min-height: 0;
		aspect-ratio: 543 / 300;
		border-radius: 24px 24px 0 0;
	}

	.tp-wfd-case__body,
	.tp-wfd-case-row:first-child .tp-wfd-case__body,
	.tp-wfd-case-row:nth-child(2) .tp-wfd-case__body {
		max-width: 560px;
		padding: 32px 32px 112px;
	}

	.tp-wfd-case-row:nth-child(2) .tp-wfd-case__text {
		max-width: none;
	}

	/* Journey — two columns, connectors only make sense in the 3-up row */
	.tp-wfd-journey {
		padding: 80px 0;
	}

	.tp-wfd-journey__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 32px;
		row-gap: 64px;
		margin-top: 56px;
	}

	.tp-wfd-jstep__link {
		display: none;
	}

	.tp-wfd-jstep--6 .tp-wfd-jstep__text {
		max-width: none;
	}

	/* Why ThinkPalm */
	.tp-wfd-why {
		padding-top: 0;
	}

	.tp-wfd-why__row {
		flex-direction: column;
		align-items: stretch;
		gap: 48px;
	}

	.tp-wfd-why__card {
		flex-basis: auto;
		width: min(555px, 100%);
		align-self: center;
	}

	.tp-wfd-why__list {
		flex-basis: auto;
		margin-top: 0;
	}

	/* FAQ */
	.tp-wfd-faq {
		padding: 80px 0;
	}

	.tp-wfd-faq__list {
		margin-top: 40px;
	}
}

@media (max-width: 767px) {
	.tp-wfd-precomp__title br {
		display: none;
	}

	.tp-wfd-tr398__desc {
		text-align: left;
	}

	.tp-wfd-h2 {
		font-size: 28px;
		line-height: 34px;
	}

	.tp-wfd-head {
		gap: 16px;
	}

	.tp-wfd-hero__copy {
		padding-top: 136px;
		gap: 24px;
	}

	.tp-wfd-hero__title {
		font-size: 36px;
		line-height: 44px;
	}

	.tp-wfd-hero__art {
		margin-bottom: -24px;
	}

	.tp-wfd-intro {
		padding-top: 48px;
	}

	.tp-wfd-intro__title {
		font-size: 28px;
		line-height: 34px;
	}

	.tp-wfd-logos__item {
		flex-basis: calc((100% - 14.36px) / 2);
		height: 80px;
	}

	.tp-wfd-logos__item img {
		max-height: 48px;
		width: auto;
	}

	.tp-wfd-challenges__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.tp-wfd-challenge {
		min-height: 0;
		flex-direction: row;
		align-items: center;
		gap: 16px;
		padding: 19px;
	}

	.tp-wfd-challenge__icon {
		flex: none;
		width: 72px;
		height: 72px;
		border-radius: 16px;
	}

	/* Service cards — image above the copy */
	.tp-wfd-svc-card {
		flex-basis: min(320px, calc(100vw - 72px));
		height: auto;
		padding-top: 64px;
	}

	.tp-wfd-svc-card__img {
		top: 0;
		left: 16px;
		width: 128px;
		height: auto;
	}

	.tp-wfd-svc-card__body {
		height: 100%;
		margin-left: 0;
		padding: 80px 20px 24px;
		border-radius: 24px;
	}

	.tp-wfd-svc-card__num {
		font-size: 32px;
		line-height: 40px;
	}

	.tp-wfd-svc__arrows {
		padding: 5px 8px;
	}

	.tp-wfd-svc__arrow {
		width: 48px;
		height: 48px;
	}

	.tp-wfd-svc__arrow svg {
		width: 48px;
		height: 48px;
	}

	.tp-wfd-banner {
		padding-top: 120px;
	}

	.tp-wfd-banner__panel {
		padding: 116px 20px 150px;
	}

	.tp-wfd-banner__title {
		font-size: 28px;
		line-height: 36px;
	}

	.tp-wfd-banner__box {
		--tp-wfd-wifi-top: -56px;
		--tp-wfd-wifi-left: 20px;
		--tp-wfd-wifi-width: 132px;
	}

	.tp-wfd-banner__router {
		width: 190px;
	}

	.tp-wfd-btn,
	.tp-wfd-pill {
		white-space: normal;
		text-align: left;
	}

	.tp-wfd-step {
		grid-template-columns: 64px minmax(0, 1fr);
		column-gap: 16px;
		padding: 20px;
	}

	.tp-wfd-step__img {
		width: 64px;
		height: 64px;
	}

	.tp-wfd-precomp {
		background: linear-gradient(180deg, #ffffff calc(100% - 160px), #f1f8ff calc(100% - 160px));
	}

	.tp-wfd-cert {
		min-height: 0;
		padding: 32px 20px 200px;
	}

	.tp-wfd-cert__copy {
		max-width: none;
	}

	.tp-wfd-cert__lines--l {
		display: none;
	}

	.tp-wfd-cert__hand {
		top: auto;
		right: 20px;
		bottom: -70px;
		width: 160px;
		height: auto;
	}

	.tp-wfd-tabs__tab {
		height: auto;
		min-height: 44px;
		padding: 9px 8px;
		font-size: 16px;
		line-height: 22px;
	}

	.tp-wfd-tabs__copy {
		padding: 24px 20px 8px;
	}

	.tp-wfd-tabs__title {
		font-size: 22px;
		line-height: 28px;
	}

	.tp-wfd-report {
		padding: 28px 20px 40px;
	}

	.tp-wfd-report__title {
		font-size: 20px;
		line-height: 26px;
	}

	.tp-wfd-lab {
		padding: 64px 0;
	}

	.tp-wfd-lab__title {
		font-size: 28px;
		line-height: 36px;
	}

	.tp-wfd-acc__item {
		padding-left: 15px;
		padding-right: 15px;
	}

	.tp-wfd-acc__heading {
		font-size: 18px;
		line-height: 24px;
	}

	.tp-wfd-lab__caption {
		gap: 16px;
	}

	.tp-wfd-cases {
		padding: 64px 0;
	}

	.tp-wfd-case__body,
	.tp-wfd-case-row:first-child .tp-wfd-case__body,
	.tp-wfd-case-row:nth-child(2) .tp-wfd-case__body {
		padding: 24px 20px 104px;
	}

	.tp-wfd-case__title {
		font-size: 20px;
		line-height: 26px;
	}

	.tp-wfd-case__tag {
		font-size: 14px;
		line-height: 18px;
	}

	.tp-wfd-journey {
		padding: 64px 0;
	}

	.tp-wfd-journey__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 48px;
		margin-top: 48px;
	}

	.tp-wfd-why__card {
		min-height: 600px;
		padding: 32px 24px;
	}

	.tp-wfd-why__photo {
		top: auto;
		bottom: -96px;
		left: 50%;
		width: 500px;
		height: auto;
		transform: translateX(-50%);
	}

	.tp-wfd-why__item {
		gap: 16px;
	}

	.tp-wfd-why__icon {
		flex-basis: 72px;
		width: 72px;
		height: 72px;
	}

	.tp-wfd-why__icon img {
		width: 44px;
		height: 44px;
	}

	.tp-wfd-why__item + .tp-wfd-why__item {
		margin-top: 48px;
	}

	.tp-wfd-why__item + .tp-wfd-why__item::before {
		top: -24px;
	}

	.tp-wfd-faq {
		padding: 64px 0;
	}

	.tp-wfd-faq__heading {
		font-size: 28px;
		line-height: 34px;
	}

	.tp-wfd-faq__item {
		padding-right: 0;
	}

	.tp-wfd-faq__item.is-open {
		padding: 20px 16px;
	}

	.tp-wfd-faq__q {
		font-size: 18px;
		line-height: 28px;
	}

	.tp-wfd-faq__btn {
		gap: 16px;
	}

	.tp-wfd-faq__a p {
		font-size: 15px;
		line-height: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tp-wfd-cases__list.is-stackable > .tp-wfd-case-row {
		position: relative;
		top: auto;
	}

	.tp-wfd *,
	.tp-wfd *::before,
	.tp-wfd *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.tp-wfd-svc * {
		transition: none !important;
	}

	.tp-wfd-tabs.is-js .tp-wfd-tabs__panel {
		transform: none !important;
		transition-delay: 0s !important;
	}

	.tp-wfd-svc__viewport {
		scroll-behavior: auto;
	}

	/* Idle loops stop outright; a 0.01ms infinite loop would flicker. */
	.tp-wfd-banner__halo,
	.tp-wfd-banner__router,
	.tp-wfd-banner__wifi {
		animation: none !important;
	}
}

/* ---------------------------------------------------------------------
 * Lab video card (FRD §8) — muted autoplay in the card, click opens the
 * homepage lightbox (wifi-testing-lightbox.css).
 * ------------------------------------------------------------------ */

.tp-wfd-lab__card.has-video {
	position: relative;
	cursor: pointer;
}

.tp-wfd-lab__card.has-video video.tp-wfd-lab__photo {
	display: block;
	height: auto;
	background: #021b42;
}

/* Video thumbnail over the photo box (16px card padding), lifted by
   page-wifi-testing.js once the clip is past its black opening frames. */
.tp-wfd-lab__thumb {
	position: absolute;
	top: 16px;
	left: 16px;
	width: calc(100% - 32px);
	height: auto;
	aspect-ratio: 500 / 323;
	object-fit: cover;
	border-radius: 24px;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.tp-wfd-lab__thumb.is-hidden {
	opacity: 0;
}

/* Invisible full-card button: keyboard and screen-reader access to the
   same click the whole card answers. */
.tp-wfd-lab__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 24px;
	cursor: pointer;
}

.tp-wfd-lab__play:focus-visible {
	outline: 3px solid #1977f3;
	outline-offset: 3px;
}

/* ---------------------------------------------------------------------
 * Pop-up forms — Figma 453:2619 (assessment), 453:3331 (TR-398 report),
 * thank-you slides 453:3304 / 453:3403. Frame 594 wide, radius 24; white
 * body from y 84; fields 261×56 on a 24px grid; 45px pill button.
 * ------------------------------------------------------------------ */

@font-face {
	font-family: 'TP WFD Poppins';
	src: url('matter-csa/fonts/Poppins-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'TP WFD Poppins';
	src: url('matter-csa/fonts/Poppins-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

html.tp-wfd-pop-lock {
	overflow: hidden;
	scrollbar-gutter: stable;
}

.tp-wfd-pop {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	visibility: hidden;
	transition: visibility 0.3s var(--tp-ease);
}

.tp-wfd-pop.is-open {
	visibility: visible;
}

/* The legacy theme's sheet (and its border-box reset) is dequeued here. */
.tp-wfd-pop,
.tp-wfd-pop *,
.tp-wfd-pop *::before,
.tp-wfd-pop *::after {
	box-sizing: border-box;
}

.tp-wfd-pop__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 27, 66, 0.6);
	opacity: 0;
	transition: opacity 0.3s var(--tp-ease);
}

.tp-wfd-pop.is-open .tp-wfd-pop__backdrop {
	opacity: 1;
}

.tp-wfd-pop__dialog {
	position: relative;
	width: 594px;
	max-width: 100%;
	max-height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: #0a0a0a;
	font-family: var(--tp-font-body);
	text-align: left;
	background: linear-gradient(180deg, #0d6efd 4%, #003e99 15%, #ffffff 68%, #eef4fb 100%);
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(2, 27, 66, 0.25);
	/* Figma opens every pop-up as an OVERLAY with MOVE_IN ← (from the right
	   edge), EASE_OUT 300ms; closing plays it in reverse. */
	transform: translateX(calc(50vw + 50%));
	transition: transform 0.3s var(--tp-ease);
}

.tp-wfd-pop.is-open .tp-wfd-pop__dialog {
	transform: none;
}

.tp-wfd-pop__dialog:focus {
	outline: none;
}

.tp-wfd-pop.is-success .tp-wfd-pop__dialog {
	background: linear-gradient(180deg, #10ce65 0%, #038439 12%, #eef4fb 100%);
}

/* Title 24,24 (500 24/30.2 white); close 20×20 at 540,32 */
.tp-wfd-pop__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	min-height: 84px;
	padding: 24px 34px 0 24px;
}

.tp-wfd-pop__title {
	margin: 0;
	color: #ffffff;
	font: 500 24px/30.2px var(--tp-font-body);
	letter-spacing: 0;
}

.tp-wfd-pop__close {
	flex: none;
	display: flex;
	width: 20px;
	height: 20px;
	margin-top: 8px;
	padding: 0;
	color: rgba(255, 255, 255, 0.4);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color 0.2s ease;
}

.tp-wfd-pop__close:hover,
.tp-wfd-pop__close:focus-visible {
	color: #ffffff;
}

.tp-wfd-pop__close:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
	border-radius: 2px;
}

.tp-wfd-pop__close svg {
	width: 20px;
	height: 20px;
}

.tp-wfd-pop__body {
	padding: 32px 24px;
	background: #ffffff;
	border-radius: 24px;
}

.tp-wfd-pop__form[hidden],
.tp-wfd-pop__done[hidden] {
	display: none;
}

.tp-wfd-pop__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.tp-wfd-pop__field {
	position: relative;
	min-width: 0;
}

.tp-wfd-pop__field--wide {
	grid-column: 1 / -1;
}

/* Floating label 12/16 #49454f on a white 4px-padded chip at top −8, left 12 */
.tp-wfd-pop__label {
	position: absolute;
	top: -8px;
	left: 12px;
	z-index: 1;
	max-width: calc(100% - 24px);
	padding: 0 4px;
	overflow: hidden;
	color: #49454f;
	font: 400 12px/16px var(--tp-font-body);
	white-space: nowrap;
	text-overflow: ellipsis;
	background: #ffffff;
}

.tp-wfd-pop__req {
	color: #e5252a;
}

.tp-wfd-pop__control {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 4px 16px;
	color: #1d1b20;
	font: 400 16px/24px var(--tp-font-body);
	background: #ffffff;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	box-shadow: none;
	transition: border-color 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.tp-wfd-pop__control::placeholder {
	color: rgba(29, 27, 32, 0.49);
	opacity: 1;
}

.tp-wfd-pop__control:focus {
	border-color: #0d6efd;
	outline: none;
	box-shadow: 0 0 0 1px #0d6efd;
}

.tp-wfd-pop__field:focus-within .tp-wfd-pop__label {
	color: #0d6efd;
}

textarea.tp-wfd-pop__control {
	height: 74px;
	padding: 12px 16px;
	resize: vertical;
}

/* Device type: "Select" 600 16/24, 12×6 chevron in a 24px box 9px from the edge */
.tp-wfd-pop__select {
	padding-right: 44px;
	font-weight: 600;
	background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'%3E%3Cpath d='M0 0h12L6 6z' fill='%231d1b20'/%3E%3C/svg%3E") no-repeat right 15px center / 12px 6px;
	cursor: pointer;
}

.tp-wfd-pop__select:valid {
	font-weight: 500;
}

.tp-wfd-pop__select option {
	color: #1d1b20;
	font-weight: 500;
}

.tp-wfd-pop__field.is-invalid .tp-wfd-pop__control {
	border-color: #e5252a;
}

/* Validation bubble — FRD sample: white card, orange "!" */
.tp-wfd-tip {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 3;
	display: none;
	align-items: center;
	gap: 8px;
	max-width: 280px;
	padding: 10px 14px;
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.tp-wfd-tip::before {
	content: '';
	position: absolute;
	top: -5px;
	left: 20px;
	width: 10px;
	height: 10px;
	background: #ffffff;
	transform: rotate(45deg);
}

.tp-wfd-pop__field.is-invalid .tp-wfd-tip {
	display: flex;
}

.tp-wfd-tip__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: #ffffff;
	font: italic 700 13px/1 Georgia, 'Times New Roman', serif;
	background: #f2a13a;
	border-radius: 3px;
}

.tp-wfd-tip__text {
	color: #1d1d1d;
	font: 400 13px/1.4 var(--tp-font-body);
}

/* Consent row: 16×16 box (#f3f3f5, 4px radius), gap 8, text 14/22.8.
   Figma: 6px under the 74px message box (its layout slot is 56 + 24);
   the 3-field report form has no message box, so it keeps the full 24. */
.tp-wfd-pop__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 6px;
	color: #0a0a0a;
	font: 400 14px/22.8px var(--tp-font-body);
}

.tp-wfd-pop__check {
	flex: none;
	position: relative;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	background: #f3f3f5;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.tp-wfd-pop__check:checked {
	background: #0d6efd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 10px 8px;
	border-color: #0d6efd;
}

.tp-wfd-pop__check:focus-visible {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
}

.tp-wfd-pop__consent label {
	cursor: pointer;
}

.tp-wfd-pop__consent a {
	color: inherit;
	text-decoration: underline;
}

#tp-wfd-pop-report .tp-wfd-pop__consent {
	margin-top: 24px;
}

/* 453:3331 puts its divider 42 under the captcha (453:2619: 24) */
#tp-wfd-pop-report .tp-wfd-pop__form .tp-wfd-pop__foot {
	margin-top: 42px;
}

/* Captcha 20px under the consent row's 16px box (its text runs 6.8px lower) */
.tp-wfd-pop__turnstile {
	min-height: 65px;
	margin-top: 13px;
}

.tp-wfd-pop__error {
	margin: 12px 0 0;
	color: #c4161c;
	font: 500 14px/20px var(--tp-font-body);
}

.tp-wfd-pop__error[hidden] {
	display: none;
}

.tp-wfd-pop__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Divider then button: 24 above, 1px rgba(0,0,0,.1), 24 below; 45px pill */
.tp-wfd-pop__foot {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tp-wfd-pop__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 45px;
	margin: 0;
	padding: 10px 12px;
	color: #ffffff;
	font: 700 16px/24px var(--tp-font-body);
	text-transform: none;
	letter-spacing: 0;
	background: #0d6efd;
	border: 0;
	border-radius: 55px;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.tp-wfd-pop__btn:hover {
	background: #0b5ed7;
}

.tp-wfd-pop__btn:focus-visible {
	outline: 2px solid #0d6efd;
	outline-offset: 3px;
}

.tp-wfd-pop__btn:disabled {
	opacity: 0.6;
	cursor: progress;
}

.tp-wfd-pop__btn--dark,
.tp-wfd-pop__btn--dark:hover {
	background: #080a0b;
}

.tp-wfd-pop__btn--dark:focus-visible {
	outline-color: #080a0b;
}

/* Thank-you slide: 170px badge (glow included in the 216×224 export) over
   Poppins 16/24 #080a0b, gap 16; column starts 71 under the body top */
.tp-wfd-pop__done-msg {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 39px 0 12px;
	text-align: center;
}

.tp-wfd-pop__done-icon {
	width: 216px;
	height: 224px;
	margin: -27px 0 -11px;
}

.tp-wfd-pop__done-msg p {
	max-width: 461px;
	margin: 16px 0 0;
	color: #080a0b;
	font: 400 16px/24px 'TP WFD Poppins', var(--tp-font-body);
}

.tp-wfd-pop__done-msg strong {
	font-weight: 600;
}

#tp-wfd-pop-report .tp-wfd-pop__done-msg {
	padding-top: 7px;
}

@media (max-width: 640px) {
	.tp-wfd-pop {
		padding: 16px;
	}

	.tp-wfd-pop__head {
		min-height: 72px;
		padding: 20px 20px 0;
	}

	.tp-wfd-pop__title {
		font-size: 20px;
		line-height: 26px;
	}

	.tp-wfd-pop__close {
		margin-top: 3px;
	}

	.tp-wfd-pop__body {
		padding: 28px 20px 24px;
	}

	.tp-wfd-pop__fields {
		grid-template-columns: 1fr;
	}

	/* The placeholder runs to three lines at this width. */
	textarea.tp-wfd-pop__control {
		height: 98px;
	}

	.tp-wfd-pop__consent {
		margin-top: 16px;
	}

	.tp-wfd-pop__done-msg {
		padding-top: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tp-wfd-pop,
	.tp-wfd-pop__backdrop,
	.tp-wfd-pop__dialog {
		transition: none;
	}
}
