/*
 * E17 page group (WO-64): the book page. Loads with core/group on every page (functions.php), so
 * every rule added here is scoped under the page root class .fd-book. Phone first, token colours only.
 *
 * Book.png measured at 1440 and 390 (docs/design/claude-design-2026-11-11/package/04_Screenshots):
 * - hero: surface-inverse, 64 px above the columns and 96 px below; a 490 px copy column and the
 *   654 px booking card with a 56 px gap from 1024 px; one column below, the card after the copy;
 * - eyebrow cta-primary; H1 about 49 px Lexend at 390 and 1440; lead 18 px on 29 px;
 * - the three numbered steps on 26 px plates (brand-on-dark at 13 %), number in cta-primary;
 * - the people card (brand-on-dark at 6 %, edge at 26 %) and four logos as light marks;
 * - FAQ: a 900 px column, the open list of the faq block (.fd-book shares the Home list style).
 * The soft text on the dark ground (lead, step text, card text) is drawn as a pale blue-grey (RGB
 * 197 206 221): a 48 % mix of text-on-inverse-muted into text-on-inverse gives RGB 194 206 224,
 * within 5/255 per channel, so no new token.
 */

.fd-book {
	--fd-book-soft: color-mix(in srgb, var(--wp--preset--color--text-on-inverse-muted) 48%, var(--wp--preset--color--text-on-inverse));
}

/* Hero band */
.fd-book-hero.wp-block-group {
	padding-top: var(--wp--preset--spacing--64);
	padding-bottom: var(--wp--preset--spacing--96);
}

.fd-book-hero__grid {
	display: grid;
	gap: 2.75rem 3.5rem;
}

.fd-book-hero__copy,
.fd-book-hero__action {
	min-width: 0;
}

.fd-book-hero__copy > * {
	margin-block: 0;
}

.fd-book .fd-book-hero__eyebrow {
	color: var(--wp--preset--color--cta-primary);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
}

.fd-book .fd-book-hero__title {
	margin-top: var(--wp--preset--spacing--24);
	color: var(--wp--preset--color--text-on-inverse);
	font-family: var(--wp--preset--font-family--heading);

	/* Drawn about 49 px at 390 and at 1440 (three lines on the phone): the screenshot wins over the handoff clamp. */
	font-size: 3.0625rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.08;
}

.fd-book .fd-book-hero__lead {
	margin-top: var(--wp--preset--spacing--24);
	color: var(--fd-book-soft);
	font-size: 1.125rem;
	line-height: 1.6;
}

/* The three steps: a numbered plate, the title on its own line, the text below. */
.fd-book .fd-book-hero__steps {
	display: grid;
	gap: var(--wp--preset--spacing--12);
	margin-top: var(--wp--preset--spacing--24);
	padding: 0;
	list-style: none;
	counter-reset: fd-book-step;
}

.fd-book .fd-book-hero__steps li {
	position: relative;
	min-height: 1.625rem;
	padding-left: 2.625rem;
	color: var(--fd-book-soft);
	font-size: 0.9375rem;
	line-height: 1.27;
	counter-increment: fd-book-step;
}

.fd-book .fd-book-hero__steps li::before {
	content: counter(fd-book-step);
	position: absolute;
	top: 0.0625rem;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.625rem;
	height: 1.625rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--brand-on-dark) 13%, var(--wp--preset--color--surface-inverse));
	color: var(--wp--preset--color--cta-primary);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
}

.fd-book .fd-book-hero__steps strong {
	display: block;
	margin-bottom: 0.125rem;
	color: var(--wp--preset--color--text-on-inverse);
	font-size: 1rem;
	font-weight: 700;
}

/* The people card: two portraits and the sentence (flydoo/avatar-line). */
.fd-book .fd-book-hero__people {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--16);
	margin-top: var(--wp--preset--spacing--24);
	padding: 1rem 1.125rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--brand-on-dark) 26%, var(--wp--preset--color--surface-inverse));
	border-radius: var(--wp--custom--radius--md);
	background: color-mix(in srgb, var(--wp--preset--color--brand-on-dark) 6%, var(--wp--preset--color--surface-inverse));
}

.fd-book .fd-book-hero__people .fd-avatar-line__faces {
	flex: none;
}

.fd-book .fd-book-hero__people .fd-avatar-line__img {
	width: 3rem;
	height: 3rem;
	border-width: 1px;
}

.fd-book .fd-book-hero__people .fd-avatar-line__text p {
	margin: 0;
	color: var(--fd-book-soft);
	font-size: 0.875rem;
	line-height: 1.5;
}

.fd-book .fd-book-hero__people strong {
	color: var(--wp--preset--color--text-on-inverse);
	font-weight: 700;
}

/* The four logos as light marks on the dark ground (drawn about 75 % white). The Gaelens file is a
 * dark word mark on an opaque white plate: inverted and screened, its plate falls back to the ground. */
.fd-book .fd-book-hero__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--wp--preset--spacing--20);

	/* 26 px below the card to the marks, less the 11 px the 44 px link adds above a 22 px mark. */
	margin-top: 0.9375rem;
	padding: 0;
	list-style: none;
}

.fd-book .fd-book-hero__logos .fd-logo-wall__item {
	margin: 0;
}

.fd-book .fd-book-hero__logos .fd-logo-wall__tile {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
}

.fd-book .fd-book-hero__logos .fd-logo-wall__logo {
	display: block;
	width: auto;
	max-width: 5.25rem;
	height: 1.3125rem;
	object-fit: contain;
	filter: grayscale(1) invert(1);
	mix-blend-mode: screen;
	opacity: 0.78;
}

/* FAQ: the heading and the open list in a 900 px column (no 900 px token; the same column as Home's FAQ). */
.fd-book-faq.wp-block-group {
	padding-top: 4.875rem;
	padding-bottom: var(--wp--preset--spacing--80);
}

/* The open list as drawn on Book.png: 23 px under the heading, 18 px above and 21 px below each question. */
.fd-book.fd-book-faq .fd-section-intro {
	margin-bottom: 1.4375rem;
}

.fd-book.fd-book-faq .fd-faq {
	max-width: 56.25rem;
	margin-inline: auto;
}

/* Drawn about 34 px at 1440 and at 390 (two lines there, "About the 30-minute" / "call"). */
.fd-book-faq .fd-section-intro__heading {
	font-size: 2.125rem;
	letter-spacing: -0.03em;
	line-height: 1.18;
}

@media (min-width: 1024px) {

	/* 64 px above; 98 px below the marks, less the 11 px under the mark inside its 44 px link. */
	.fd-book-hero.wp-block-group {
		padding-bottom: 5.4375rem;
	}

	/* The H1 sits on a 52 px line at 1440 (53 px on the phone). */
	.fd-book .fd-book-hero__title {
		line-height: 1.06;
	}

	/* 490 px copy column, 56 px gap, 654 px card (Book.png at 1440). */
	.fd-book-hero__grid {
		grid-template-columns: minmax(0, 490fr) minmax(0, 654fr);
		align-items: start;
	}

}

/*
 * Review M6 (2026-11-16): on phones and tablets the booking card came after the steps, the people and the
 * logos, on the second screen. Below 1024 px the copy column opens up (display: contents) so the card
 * follows the heading and the lead, and the steps, people and logos come after it. Nothing in those three
 * is focusable before the card, so the keyboard order still matches what is read.
 */
@media not all and (min-width: 1024px) {

	.fd-book-hero__grid {
		row-gap: 1.25rem;
	}

	.fd-book-hero__copy {
		display: contents;
	}

	.fd-book-hero__action {
		order: 1;
		margin-block: 0.75rem;
	}

	.fd-book .fd-book-hero__steps,
	.fd-book .fd-book-hero__people,
	.fd-book .fd-book-hero__logos {
		order: 2;
	}
}
