/*
 * #start (the blue "Your first test is free." card) and #faq —
 * patterns/cta-faq.php, ported from src/features/landing/landing-page.tsx.
 *
 * The TSX switches nothing on wide/xl in these two sections, so there are no
 * breakpoints here: every value below is the one inline style it had, with
 * the clamp()s verbatim. The footer is styled in base.css (section 7).
 */

/* ---------------------------------------------------------------------------
 * #start
 * ------------------------------------------------------------------------ */
.id-start {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 40px);
}

/* The card (data-rise). Flex row that wraps: copy grows, the button keeps its size. */
.id-start__card {
	position: relative;
	overflow: hidden;
	border-radius: clamp(28px, 3.6vw, 44px);
	background: #1668D9;
	color: #FFFFFF;
	padding: clamp(40px, 6vw, 88px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px 48px;
	box-shadow: 0 60px 100px -60px rgba(22, 104, 217, 0.9);
}

/* The faint score ring bleeding off the bottom-right corner (core/html). */
.id-start__ring {
	position: absolute;
	right: -60px;
	bottom: -90px;
	width: min(52vw, 420px);
	opacity: 0.18;
}

.id-start__copy {
	position: relative;
	flex: 1;
	min-width: min(100%, 320px);
}
.id-start__title {
	font-size: clamp(36px, 5.6vw, 76px);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.05em;
	margin: 0;
}
.id-start__lede {
	font-size: clamp(16px, 1.6vw, 20px);
	color: rgba(255, 255, 255, 0.88);
	margin: 16px 0 0;
}

/*
 * The button. In the TSX the <a> was the card's flex item; here the
 * .wp-block-buttons wrapper is, so it carries position:relative (paints above
 * the ring) and the .wp-block-button is a flex box, so the 62px pill sets the
 * row height without a line box around it.
 */
.id-start__actions {
	position: relative;
}
.id-start__actions > .id-start__cta {
	display: flex;
}
.id-start__cta .wp-block-button__link {
	position: relative;
	height: 62px;
	padding: 0 10px 0 30px;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	border-radius: 999px;
	background: #FFFFFF;
	color: #0B1120;
	font-family: inherit;
	font-size: 18px;
	font-weight: 800;
	line-height: inherit;
	text-align: start;
	word-break: normal;
	transition: transform 200ms cubic-bezier(.16, 1, .3, 1), background 200ms;
}
/* Global link/button hovers must not tint the white pill (id-lh8 lifts it). */
.id-start__cta .wp-block-button__link:hover {
	background: #FFFFFF;
	color: #0B1120;
}
/* The aria-hidden "→" circle. */
.id-start__cta .wp-block-button__link::after {
	content: "\2192";
	content: "\2192" / "";
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #1668D9;
	color: #FFFFFF;
	display: grid;
	place-items: center;
	font-size: 19px;
}

/* ---------------------------------------------------------------------------
 * #faq: the ieltsdrill/faq block (blocks/faq) renders core/details blocks
 * from ieltsdrill_faq() straight into .id-faq__list on the front end.
 * ------------------------------------------------------------------------ */
.id-faq {
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(72px, 12vh, 130px) clamp(16px, 4vw, 40px) clamp(64px, 11vh, 120px);
}
.id-faq__title {
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.04em;
	margin: 0;
}

/* The list (data-rise). */
.id-faq__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 28px;
}

/*
 * Editor only: there the items sit inside the block's wrapper and the server
 * render's own <div>, not directly in the list. Repeat the list's column so
 * the canvas matches the page. These elements are never on the front end.
 */
.id-faq__preview,
.id-faq__preview > div {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.id-faq__item {
	border-radius: 18px;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px rgba(9, 20, 40, 0.06);
	padding: 2px 22px;
}
.id-faq__item > summary {
	cursor: pointer;
	min-height: 44px;
	padding: 18px 0;
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 17px;
	font-weight: 700;
}
/* The aria-hidden "+" badge. */
.id-faq__item > summary::after {
	content: "+";
	content: "+" / "";
	margin-left: auto;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #F1F5FC;
	color: #1668D9;
	display: grid;
	place-items: center;
	font-size: 17px;
	font-weight: 800;
}
.id-faq__answer {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.6;
	color: #4E5F7C;
}
