.test_prep {
	padding-top: 40px;
	padding-bottom: 40px;
	background: #ffffff;
	/* The glow behind the devices may reach past the screen edge */
	overflow-x: clip;
}

.test_prep__grid {
	display: grid;
	grid-template-columns: 9fr 11fr;
	align-items: center;
	gap: 48px;
}

.test_prep__text {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.test_prep__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.test_prep__features {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.test_prep__feature {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.test_prep__feature svg {
	flex: none;
}

.test_prep__feature div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.design_2026 .test_prep__feature h3 {
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0;
}

.test_prep__feature p {
	font-size: 17px;
	line-height: 1.55;
}

.test_prep__buttons {
	display: flex;
	flex-wrap: wrap;
	align-self: flex-start;
	gap: 14px;
}

.design_2026 .test_prep__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border: 1.5px solid var(--navy-600);
	border-radius: var(--radius-2026);
	background: #ffffff;
	color: var(--navy-600);
	font-family: var(--font-2026);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.14s ease;
}

.design_2026 .test_prep__secondary:hover {
	background: #EEF0F8;
	color: var(--navy-600);
}

/* The chevrons are only shown on the text link on phones */
.test_prep__secondary svg {
	display: none;
}

.test_prep__visual {
	display: flex;
	justify-content: center;
}

/* Device mockups are positioned within a fixed ratio box, scaled down on smaller screens */
.test_prep__devices {
	position: relative;
	left: 32px;
	width: 100%;
	max-width: 602px;
	aspect-ratio: 602 / 430;
	isolation: isolate;
}

/* Soft sky glow behind the devices */
.test_prep__devices::before {
	content: '';
	position: absolute;
	z-index: -1;
	top: -21%;
	right: -15%;
	bottom: -25.6%;
	left: -18.3%;
	background: radial-gradient(closest-side, rgba(201, 241, 252, 1) 0%, rgba(201, 241, 252, 0.8) 40%, rgba(201, 241, 252, 0.35) 72%, rgba(232, 249, 254, 0) 100%);
	pointer-events: none;
}

.test_prep__tablet {
	position: absolute;
	left: 0;
	top: 6.74%;
	width: 87.04%;
	height: 87.2%;
	padding: 2.49%;
	border-radius: 28px;
	background: #12161F;
	box-shadow: 0 18px 40px rgba(15, 20, 45, 0.22);
}

.test_prep__tablet img,
.test_prep__phone img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0%;
}

.test_prep__tablet img {
	border-radius: 12px;
}

.test_prep__phone {
	position: absolute;
	right: 8.64%;
	bottom: -8.6%;
	width: 26.25%;
	height: 75.1%;
	padding: 1.5%;
	border-radius: 28px;
	background: #12161F;
	box-shadow: 0 14px 32px rgba(15, 20, 45, 0.28);
	transform: rotate(9deg);
}

.test_prep__phone img {
	border-radius: 19px;
}

.test_prep__badge {
	position: absolute;
	left: -38px;
	top: 83%;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 13px 20px 13px 13px;
	border: 1.5px solid var(--green-500);
	border-radius: var(--radius-2026);
	background: var(--green-50);
	box-shadow: 0 16px 36px rgba(15, 20, 45, 0.18), 0 2px 6px rgba(15, 20, 45, 0.08);
}

.test_prep__badge_icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: var(--green-500);
}

.test_prep__badge_text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.test_prep__badge_text strong {
	color: var(--navy-600);
	font-size: 17px;
	line-height: 1.25;
	font-weight: 700;
}

.test_prep__badge_text span {
	color: #33584A;
	font-size: 14px;
	line-height: 1.35;
}

@media (max-width: 1199px) {
	.test_prep__grid {
		gap: 40px;
	}

	.test_prep__devices {
		left: 0;
	}

	.test_prep__badge {
		left: -16px;
	}
}

@media (max-width: 991px) {
	.test_prep__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.test_prep__devices {
		max-width: 560px;
	}

	.test_prep__badge {
		left: 0;
	}
}

@media (max-width: 767px) {
	.test_prep {
		padding-top: 28px;
		padding-bottom: 56px;
	}

	/* On mobile the mockups sit between the intro and the features */
	.test_prep__grid {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	.test_prep__text {
		display: contents;
	}

	.test_prep__intro {
		order: 1;
		gap: 12px;
		padding: 0 8px;
		text-align: center;
	}

	.test_prep__visual {
		order: 2;
	}

	.test_prep__features {
		order: 3;
		gap: 20px;
		padding: 0 8px;
	}

	.test_prep__feature {
		gap: 16px;
	}

	.test_prep__feature div {
		gap: 4px;
	}

	.design_2026 .test_prep__feature h3 {
		font-size: 19px;
	}

	.test_prep__feature p {
		font-size: 16px;
	}

	.test_prep__buttons {
		order: 4;
		flex-direction: column;
		align-items: center;
		align-self: center;
		/* The link text sits 24px below the button, inside the link's 44px tap area */
		gap: 12.5px;
	}

	.design_2026 .test_prep__secondary {
		gap: 4px;
		min-height: 44px;
		padding: 0;
		border: 0;
		background: none;
		color: var(--sky-400);
		font-size: 16px;
	}

	.design_2026 .test_prep__secondary:hover {
		background: none;
		color: var(--sky-500);
	}

	.test_prep__secondary svg {
		display: block;
	}

	.test_prep__devices {
		left: 7px;
		max-width: 357px;
		aspect-ratio: 357 / 250;
	}

	.test_prep__devices::before {
		top: -19.2%;
		right: -11.2%;
		bottom: -24%;
		left: -15.7%;
	}

	.test_prep__tablet {
		top: 6.8%;
		width: 85.7%;
		height: 87.2%;
		padding: 2.5%;
		border-radius: 17px;
		box-shadow: 0 10px 22px rgba(15, 20, 45, 0.22);
	}

	.test_prep__tablet img {
		border-radius: 8px;
	}

	.test_prep__phone {
		right: 7.8%;
		bottom: 2.4%;
		width: 24.6%;
		height: 72%;
		padding: 1.4%;
		border-radius: 16px;
		box-shadow: 0 8px 18px rgba(15, 20, 45, 0.28);
	}

	.test_prep__phone img {
		border-radius: 11px;
	}

	.test_prep__badge {
		top: 62%;
		left: calc(50% - 7px);
		gap: 12px;
		width: max-content;
		padding: 11px 16px 11px 12px;
		transform: translateX(-50%);
	}

	.test_prep__badge_icon {
		width: 38px;
		height: 38px;
	}

	.test_prep__badge_icon svg {
		width: 19px;
		height: 19px;
	}

	.test_prep__badge_text strong {
		font-size: 15px;
	}

	.test_prep__badge_text span {
		font-size: 13px;
	}
}
