/*
 * Section tones and role properties (FD-041). Every colour comes from a theme.json token; this file
 * holds no hex. Light values sit on :root and on the three light tones, so a light band nested in
 * an inverse one resets. Inverse values sit on .is-style-section-inverse. Consumers (buttons.css,
 * links.css, blocks) read only the --flydoo-* properties. Documented in docs/section-styles.md.
 */
:root,
.is-style-section-page,
.is-style-section-raised,
.is-style-section-sunken,
.fd-card--basis,
.fd-capability-row,
.fd-process-card {
	--flydoo-card: var(--wp--preset--color--surface-raised);
	--flydoo-heading: var(--wp--preset--color--text-primary);
	--flydoo-text: var(--wp--preset--color--text-primary);
	--flydoo-text-secondary: var(--wp--preset--color--text-secondary);
	--flydoo-text-muted: var(--wp--preset--color--text-muted);
	--flydoo-link: var(--wp--preset--color--brand-primary);
	--flydoo-link-hover: var(--wp--preset--color--brand-primary-hover);
	--flydoo-eyebrow: var(--wp--preset--color--brand-primary);
	--flydoo-line: var(--wp--preset--color--line-default);
	--flydoo-line-strong: var(--wp--preset--color--line-strong);
	--flydoo-focus: var(--wp--custom--focus--color);
	--flydoo-status-included: var(--wp--preset--color--status-included);
	--flydoo-status-excluded: var(--wp--preset--color--status-excluded);
	--flydoo-status-note: var(--wp--preset--color--status-note);
	--flydoo-button-bg: var(--wp--preset--color--brand-primary);
	--flydoo-button-bg-hover: var(--wp--preset--color--brand-primary-hover);
	--flydoo-button-text: var(--wp--preset--color--text-on-brand);
	--flydoo-button-border: var(--wp--preset--color--brand-primary);
}

.is-style-section-inverse {
	--flydoo-card: var(--wp--preset--color--surface-raised);
	--flydoo-heading: var(--wp--preset--color--text-on-brand);
	--flydoo-text: var(--wp--preset--color--text-on-inverse);
	--flydoo-text-secondary: var(--wp--preset--color--text-on-inverse);
	--flydoo-text-muted: var(--wp--custom--line--input);
	--flydoo-link: var(--wp--preset--color--brand-on-dark);
	--flydoo-link-hover: var(--wp--preset--color--brand-on-dark);
	--flydoo-eyebrow: var(--wp--preset--color--brand-on-dark);
	--flydoo-line: var(--wp--preset--color--line-strong);
	--flydoo-line-strong: var(--wp--preset--color--line-strong);
	--flydoo-focus: var(--wp--custom--focus--color-inverse);
	--flydoo-status-included: var(--wp--custom--inverse--status--included);
	--flydoo-status-excluded: var(--wp--custom--inverse--status--excluded);
	--flydoo-status-note: var(--wp--custom--inverse--status--note);
	--flydoo-button-bg: var(--wp--preset--color--brand-primary);
	--flydoo-button-bg-hover: var(--wp--preset--color--brand-primary-hover);
	--flydoo-button-text: var(--wp--preset--color--text-on-brand);
	/* The brand fill is 2.25:1 against the inverse ground; a line-strong edge gives the button 3:1 or more (WO-26). */
	--flydoo-button-border: var(--wp--preset--color--line-strong);
}

.is-style-section-page,
.is-style-section-raised,
.is-style-section-sunken,
.is-style-section-inverse {
	color: var(--flydoo-text);
}

/*
 * QA audit 1 (S10): every drawn H1 and H2 on the navy ground is pure white (text-on-brand), body copy stays
 * text-on-inverse. The colour is the --flydoo-heading role, so a light card inside the navy band (the booking
 * card, the checklist form, a light tone) resets it to text-primary and its title stays legible (QA audit 2).
 */
.is-style-section-inverse :is(h1, h2) {
	color: var(--flydoo-heading);
}

.is-style-eyebrow {
	color: var(--flydoo-eyebrow, inherit);
}

/* One focus ring for every control; the colour inherits, so inverse remaps it. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--flydoo-focus, var(--wp--custom--focus--color));
	outline-offset: var(--wp--custom--focus--offset);
}

/*
 * Section patterns and the home page (FD-089, FD-090, FD-096). Base is the phone; min-width queries
 * at the token breakpoints only.
 */

/* Per-width copy (Q-087): the wide copy is hidden on the phone, the phone copy is hidden from 768.
   The blocks in flydoo-blocks scope the same classes inside themselves; those rules are more specific.
   "revert" restores the element's own display, so use these classes on paragraphs, headings and buttons only. */
.fd-per-width--wide,
.wp-block-buttons > .wp-block-button.fd-per-width--wide {
	display: none;
}

@media (min-width: 768px) {
	.fd-per-width--mobile {
		display: none;
	}

	.fd-per-width--wide {
		display: revert;
	}

	/* Core sets inline-block on a button inside the buttons block; keep that. */
	.wp-block-buttons > .wp-block-button.fd-per-width--wide {
		display: inline-block;
	}
}

/* A section that reads as the continuation of the one before it from 768 (Method: phases, then the decision layer). */
@media (min-width: 768px) {
	.wp-block-group.fd-section-continued {
		padding-bottom: var(--wp--preset--spacing--32);
	}

	.wp-block-group.fd-section-continues {
		padding-top: var(--wp--preset--spacing--32);
	}
}

/* Home hero: one column on the phone, two from 1024 (1200 wide width). */
.fd-home-hero__grid {
	display: grid;
	gap: var(--wp--preset--spacing--32);
}

.fd-home-hero__copy > * + * {
	margin-block-start: var(--wp--preset--spacing--24);
}

.fd-pattern-home-hero .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--12);
}

.fd-pattern-home-hero .wp-block-button {
	flex: 1 1 100%;
}

.fd-pattern-home-hero .wp-block-button__link {
	width: 100%;
	text-align: center;
}

@media (min-width: 768px) {
	.fd-pattern-home-hero .wp-block-button {
		flex: 0 0 auto;
	}

	.fd-pattern-home-hero .wp-block-button__link {
		width: auto;
	}
}

@media (min-width: 1024px) {
	.fd-home-hero__grid {
		grid-template-columns: 1fr 1fr;
		column-gap: var(--wp--preset--spacing--64);
		align-items: center;
	}
}

/* Attribution: two blocks, side by side from 1024. */
.fd-attribution__grid {
	display: grid;
	gap: var(--wp--preset--spacing--32);
}

@media (min-width: 1024px) {
	.fd-attribution__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--64);
	}
}

/* Close band: buttons stack full width on the phone. */
.fd-pattern-close-band .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--12);
}

.fd-pattern-close-band .wp-block-button:first-child {
	flex: 1 1 100%;
}

.fd-pattern-close-band .wp-block-button:first-child .wp-block-button__link {
	width: 100%;
	text-align: center;
}

@media (min-width: 768px) {
	.fd-pattern-close-band .wp-block-button:first-child {
		flex: 0 0 auto;
	}

	.fd-pattern-close-band .wp-block-button:first-child .wp-block-button__link {
		width: auto;
	}
}

/* Statement rows (Industries index): a dash and one statement per row, rules between. */
.fd-statement-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fd-statement-list li {
	display: flex;
	gap: var(--wp--preset--spacing--12);
	padding-block: var(--wp--preset--spacing--12);
	border-bottom: 1px solid var(--flydoo-line);
	font-size: var(--wp--preset--font-size--standard-body);
}

.fd-statement-list li::before {
	content: "\2014" / "";
	flex: none;
	color: var(--flydoo-link);
}

/*
 * Locked page systems (FD-091). The text-only sections of an industry or service page (hero, operating
 * reality, outcomes, close) sit on the wide measure, left-aligned, like the drawn industry pages. The hero
 * scope note is a boxed note on the sunken ground.
 */
.fd-system-section--hero .fd-page-hero__note {
	box-sizing: border-box;
	margin-block-start: var(--wp--preset--spacing--24);
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--surface-sunken);
	color: var(--flydoo-text-secondary);
}

/*
 * Tables on legal pages (the cookie overview). Phone first: each row is a card with its cells
 * stacked, so long cookie names wrap instead of scrolling the table sideways. From 768 the table
 * is a table again.
 */
.page-template-page-legal .wp-block-table table,
.page-template-page-legal .wp-block-table tbody,
.page-template-page-legal .wp-block-table tr,
.page-template-page-legal .wp-block-table td {
	display: block;
	box-sizing: border-box;
	width: 100%;
}

.page-template-page-legal .wp-block-table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.page-template-page-legal .wp-block-table tr {
	margin-block-end: var(--wp--preset--spacing--16, 1rem);
	padding: var(--wp--preset--spacing--12, 0.75rem) var(--wp--preset--spacing--16, 1rem);
	border: 1px solid var(--flydoo-line);
	border-radius: 5px;
}

.page-template-page-legal .wp-block-table td {
	padding: 0.25rem 0;
	border: 0;
	overflow-wrap: anywhere;
}

.page-template-page-legal .wp-block-table td:first-child {
	font-weight: 600;
	color: var(--flydoo-text);
}

.page-template-page-legal .wp-block-table td:last-child {
	color: var(--flydoo-text-secondary);
}

@media (min-width: 768px) {
	.page-template-page-legal .wp-block-table table {
		display: table;
	}

	.page-template-page-legal .wp-block-table thead {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
		white-space: normal;
		display: table-header-group;
	}

	.page-template-page-legal .wp-block-table tbody {
		display: table-row-group;
	}

	.page-template-page-legal .wp-block-table tr {
		display: table-row;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
	}

	.page-template-page-legal .wp-block-table td {
		display: table-cell;
		width: auto;
		padding: 0.5em;
		border: 1px solid var(--flydoo-line);
		overflow-wrap: normal;
	}
}

/*
 * Page sections use the full container (Raza, 2026-11-03). The page-37 mockups draw every
 * section's text and blocks left-aligned at the 1200px container, never in the centred 860px
 * reading column that a constrained group gives its children by default, nor in the 720px prose
 * measure of the section-intro pattern. The selector outranks
 * core's constrained rule and per-group container rules; full-width children are untouched.
 */
:is(.is-style-section-page, .is-style-section-raised, .is-style-section-sunken, .is-style-section-inverse).is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.fd-pattern-section-intro.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--wp--style--global--wide-size);
}

/*
 * The 1200px column is centred in every page section, as in the footer, whatever the section's
 * "justify left" setting. At 1440 the column fills the space between the 24px gutters, so nothing
 * moves; above 1440 left-justified and centred sections otherwise start at different x positions.
 * Core writes the justification margins with !important, so this rule does too.
 */
:is(.is-style-section-page, .is-style-section-raised, .is-style-section-sunken, .is-style-section-inverse).is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	margin-right: auto !important;
	margin-left: auto !important;
}

/*
 * A page section's padding is its whole edge: the first child's top margin and the last child's
 * bottom margin (the eyebrow style carries 11px, large body text 18px) do not add to it, so the
 * eyebrow sits at the drawn 64px (page-37 mockups).
 */
:is(.is-style-section-page, .is-style-section-raised, .is-style-section-sunken, .is-style-section-inverse).is-layout-constrained > :first-child {
	margin-block-start: 0;
}

:is(.is-style-section-page, .is-style-section-raised, .is-style-section-sunken, .is-style-section-inverse).is-layout-constrained > :last-child {
	margin-block-end: 0;
}

/*
 * Header rhythm of a core section, as drawn in the page-37 mockups: 18px from the eyebrow to the
 * heading, 20px from the heading to what follows (the theme block gap is 32px).
 */
:is(.is-style-section-page, .is-style-section-raised, .is-style-section-sunken, .is-style-section-inverse) > .is-style-eyebrow:has(+ .wp-block-heading) {
	margin-block-end: 0;
}

:is(.is-style-section-page, .is-style-section-raised, .is-style-section-sunken, .is-style-section-inverse) > .is-style-eyebrow + .wp-block-heading {
	margin-block-start: 1.125rem;
}

:is(.is-style-section-page, .is-style-section-raised, .is-style-section-sunken, .is-style-section-inverse) > .wp-block-heading {
	margin-block-end: 0;
}

:is(.is-style-section-page, .is-style-section-raised, .is-style-section-sunken, .is-style-section-inverse) > .wp-block-heading + * {
	margin-block-start: 1.25rem;
}

/*
 * A section that holds the reference band takes no padding of its own: the band block carries the
 * drawn spacing (44/20 on phones, 72/28 from 1024, Figma 295:2624 / 295:2618). !important because
 * locked pages write their section padding inline.
 */
:is(.is-style-section-page, .is-style-section-raised, .is-style-section-sunken, .is-style-section-inverse):has(> .fd-reference-band) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* An anchored section heading (#send-a-message, reference-band links) lands with its eyebrow in view, not flush against the top edge. */
.fd-section-intro__heading[id] {
	scroll-margin-top: clamp(3.5rem, calc(3rem + 1.5vw), 4.5rem);
}

/*
 * Legal pages (review V10): the standard page container. The eyebrow and the H1 (the theme's h1
 * element style, as on every other page) sit in the wide column like the other page heroes, and the
 * text keeps its 660 px reading measure. From 1024 the "On this page" list moves into the right
 * column and stays in view, so the right half is no longer empty. Phone first, tokens only.
 */
.fd-legal {
	padding-block: var(--wp--preset--spacing--40, 2.5rem) var(--wp--preset--spacing--64, 4rem);
}

.fd-legal__head {
	margin-block-end: var(--wp--preset--spacing--32, 2rem);
}

.fd-legal__head .wp-block-post-title {
	margin-block: 0.5rem 0;
	max-inline-size: 22ch;
}

.fd-legal__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--24, 1.5rem);
}

@media (min-width: 1024px) {

	.fd-legal__body {
		grid-template-columns: minmax(0, var(--wp--custom--measure--legal, 660px)) minmax(14rem, 18rem);
		justify-content: space-between;
		align-items: start;
		column-gap: var(--wp--preset--spacing--64, 4rem);
	}

	.fd-legal__body > .wp-block-flydoo-legal-toc,
	.fd-legal__body > .fd-legal-toc {
		position: sticky;
		inset-block-start: calc(var(--wp-admin--admin-bar--height, 0px) + 6rem);
		grid-column: 2;
		grid-row: 1;
	}

	.fd-legal__body > .fd-legal__content {
		grid-column: 1;
		grid-row: 1;
	}
}

/*
 * Cookie policy, version 2.2 (Nicolas's "Flydoo Cookie Policy — page design", 2026-11-17): the
 * date line and a lead under the title, then the contents as a box above the text (two columns
 * from 768 px), one column of text, cookie tables with a code pill per cookie, a badge per category
 * and a contact box. The "Your cookie choice" panel of the design is not built (no optional cookie).
 * The legal TOC block stays the source of the contents; the content wrapper lets its blocks join
 * the body grid, so the box can sit between the lead and section 1. Scoped to the page by the lead.
 */
.fd-legal__body:has(.fd-cookie-lead) {
	grid-template-columns: minmax(0, 49rem);
	row-gap: 0;
}

.fd-legal__body:has(.fd-cookie-lead) > .fd-legal__content {
	display: contents;
}

.fd-legal__body:has(.fd-cookie-lead) > .fd-legal__content > * {
	order: 2;
	grid-column: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 49rem;
}

.fd-legal__body:has(.fd-cookie-lead) > .fd-legal__content > .fd-cookie-meta,
.fd-legal__body:has(.fd-cookie-lead) > .fd-legal__content > .fd-cookie-lead {
	order: 0;
}

.fd-legal__body:has(.fd-cookie-lead) > .wp-block-flydoo-legal-toc,
.fd-legal__body:has(.fd-cookie-lead) > .fd-legal-toc {
	position: static;
	order: 1;
	grid-column: 1;
	grid-row: auto;
	margin-block: var(--wp--preset--spacing--32, 2rem) var(--wp--preset--spacing--16, 1rem);
}

.fd-legal__body:has(.fd-cookie-lead) .fd-legal-toc {
	max-inline-size: none;
	padding: 1.25rem 1.5rem;
	border-radius: var(--wp--custom--radius--lg, 12px);
}

.fd-legal__body:has(.fd-cookie-lead) .fd-legal-toc__label {
	color: var(--wp--preset--color--text-primary);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.fd-legal__body:has(.fd-cookie-lead) .fd-legal-toc__list a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media (min-width: 768px) {

	.fd-legal__body:has(.fd-cookie-lead) .fd-legal-toc__list {
		column-count: 2;
		column-gap: 2rem;
	}

	.fd-legal__body:has(.fd-cookie-lead) .fd-legal-toc__list > li {
		break-inside: avoid;
	}
}

.fd-legal__content > .fd-cookie-meta {
	margin-block-start: 0;
	font-size: 0.875rem;
}

.fd-legal__content > .fd-cookie-lead {
	margin-block-start: 0.75rem;
	font-size: 1.125rem;
	line-height: 1.6;
}

.fd-cookie-cat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
	font-size: 1.125rem;
}

.fd-cookie-badge {
	padding: 0.2rem 0.625rem;
	border-radius: 999px;
	background: var(--wp--preset--color--brand-soft);
	color: var(--wp--preset--color--brand-primary);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
}

.fd-cookie-note {
	color: var(--wp--preset--color--text-secondary);
}

.wp-block-table.fd-cookie-table {
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--line-default);
	border-radius: var(--wp--custom--radius--lg, 12px);
}

.wp-block-table.fd-cookie-table table {
	width: 100%;
	min-width: 34rem;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.wp-block-table.fd-cookie-table thead {
	border-bottom: 0;
}

.wp-block-table.fd-cookie-table th,
.wp-block-table.fd-cookie-table td {
	padding: 0.875rem 1rem;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line-default);
	text-align: left;
	vertical-align: top;
}

.wp-block-table.fd-cookie-table thead th {
	border-top: 0;
	background: var(--wp--preset--color--surface-sunken);
	color: var(--wp--preset--color--text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
}

.wp-block-table.fd-cookie-table code {
	display: inline-block;
	margin: 0 0.25rem 0.25rem 0;
	padding: 0.1rem 0.4rem;
	border-radius: 6px;
	background: var(--wp--preset--color--surface-sunken);
	font-size: 0.8125rem;
	white-space: nowrap;
}

.fd-cookie-badge--consent {
	background: color-mix(in srgb, var(--wp--preset--color--cta-primary) 22%, transparent);
	color: var(--wp--preset--color--text-primary);
}

/* The "Your cookie choice" panel (flydoo-consent shortcode, 18 November): inline under "Your choices" on phones and tablets, a sticky right column from 1024 px as in the page design. */
.fd-legal__content > .fd-cookie-choice {
	margin-block: 1.5rem;
}

@media (min-width: 1024px) {

	.fd-legal__body:has(.fd-cookie-lead):has(.fd-cookie-choice) {
		grid-template-columns: minmax(0, 49rem) minmax(16rem, 20rem);
		column-gap: var(--wp--preset--spacing--48, 3rem);
	}

	.fd-legal__body:has(.fd-cookie-lead) > .fd-legal__content > .fd-cookie-choice {
		position: sticky;
		inset-block-start: calc(var(--wp-admin--admin-bar--height, 0px) + 6rem);
		grid-column: 2;
		grid-row: 1 / span 80;
		align-self: start;
		width: auto;
		margin-block: 0;
	}
}

.fd-cookie-contact {
	padding: 1.25rem 1.5rem;
	border-radius: var(--wp--custom--radius--lg, 12px);
	background: var(--wp--preset--color--surface-sunken);
}

.fd-cookie-contact > p {
	margin: 0;
}

/*
 * The phone bottom bar (site-footer block, WO-55) is fixed over the page. Its height is the custom
 * property --flydoo-bottom-bar-h (0px from 761px and on the Book page's slim footer, undefined when
 * the block is absent). The clearance sits on body, not on .wp-site-blocks (review M4), so the bar
 * covers neither the footer end nor anything a plugin prints after the site blocks (the WPML
 * development-site notice). The bottom padding is exactly the bar height.
 */
body .wp-site-blocks {
	padding-block-end: var(--wp--style--root--padding-bottom, 0px);
}

body {
	padding-block-end: var(--flydoo-bottom-bar-h, 0px);
}

/*
 * New homepage (WO-56, FD-211). Phone first; min-width queries at 768, 1024 and 1440 only. Tokens only, no hex.
 * The block-internal styles (self-check, services selector, logo wall, process strip, faq) live in their
 * own blocks; this file lays the sections out.
 */
.fd-home-intro > * {
	margin-block: 0;
}

.fd-home-intro > * + * {
	margin-top: var(--wp--preset--spacing--8);
}

.fd-home-intro {
	margin-bottom: var(--wp--preset--spacing--32);
}

/* Hero: the chips, the buttons at natural width, the avatar line. */
.fd-home-hero__chips {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	margin: 0;
	padding: var(--wp--preset--spacing--4);
	border: 1px solid var(--flydoo-line);
	border-radius: var(--wp--custom--radius--pill);
	background: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 5%, transparent);
}

.fd-home-hero__chips .fd-claim-gate,
.fd-home-hero__chips .fd-chip-slot {
	display: contents;
}

.fd-chip {
	margin: 0;
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--12);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--flydoo-text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.4;
}

.fd-chip--cta {
	background: var(--wp--preset--color--cta-primary);
	color: var(--wp--preset--color--text-on-cta);
}

.fd-pattern-home-hero .wp-block-buttons .wp-block-button {
	flex: 0 0 auto;
}

.fd-pattern-home-hero .wp-block-buttons .wp-block-button__link {
	width: auto;
}

.fd-pattern-home-hero .fd-avatar-line {
	color: var(--flydoo-text);
}

.fd-pattern-home-hero .fd-avatar-line__text > * + *::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-inline-end: var(--wp--preset--spacing--8);
	border-radius: 50%;
	background: var(--wp--preset--color--status-included);
}

/* Orange call to action (core button with the cta-primary colours): its edge matches its fill. */
:root .wp-block-button__link.has-cta-primary-background-color {
	border-color: var(--wp--preset--color--cta-primary);
}

/* Stats band. */
.fd-stats.is-style-section-inverse {
	padding-block: var(--wp--preset--spacing--32);
	border-top: 1px solid var(--flydoo-line);
}

.fd-stats__grid {
	display: grid;
	gap: var(--wp--preset--spacing--24);
}

.fd-stat > * {
	margin: 0;
}

.fd-stat__num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--subheading);
	font-weight: 700;
	line-height: 1.2;
}

.fd-stat__label {
	color: var(--flydoo-text-muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Built for: the tint card and the four industry tiles. */
.fd-card.fd-card--tint {
	border-color: var(--wp--preset--color--brand-soft);
	background: var(--wp--preset--color--brand-soft);
}

.fd-industry-tiles {
	display: grid;
	gap: var(--wp--preset--spacing--12);
	margin-top: var(--wp--preset--spacing--20);
}

.fd-industry-tile {
	position: relative;
	box-sizing: border-box;
	min-height: 3rem;
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--48) var(--wp--preset--spacing--16) var(--wp--preset--spacing--20);
	border: 1px solid var(--flydoo-line);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface-raised);
}

.fd-industry-tile::after {
	content: "\2192";
	position: absolute;
	top: 50%;
	right: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--brand-primary);
	transform: translateY(-50%);
}

.fd-industry-tile > * {
	margin: 0;
}

.fd-industry-tile__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}

.fd-industry-tile__name a,
.fd-operation__name a {
	color: inherit;
	text-decoration: none;
}

.fd-industry-tile__name a::after,
.fd-operation__name a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.fd-industry-tile__name a:focus-visible::after,
.fd-operation__name a:focus-visible::after {
	outline: var(--wp--custom--focus--width) solid var(--flydoo-focus);
	outline-offset: var(--wp--custom--focus--offset);
}

.fd-industry-tile__desc {
	color: var(--flydoo-text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

/* Kaeron field case: the story card and the orange Demory box. */
.fd-case {
	display: grid;
	gap: var(--wp--preset--spacing--16);
}

.fd-case__story {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	align-content: start;
	padding: var(--wp--preset--spacing--24);
	border: 1px solid var(--flydoo-line);
	border-radius: var(--wp--custom--radius--lg);
	background: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 5%, transparent);
}

.fd-case__col > * {
	margin: 0;
}

.fd-case__col > * + * {
	margin-top: var(--wp--preset--spacing--8);
}

.fd-case__label {
	color: var(--flydoo-text-secondary);
	font-size: var(--wp--preset--font-size--micro);
	font-weight: 600;
	letter-spacing: 0.12em;
}

.fd-case__demory {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	padding: var(--wp--preset--spacing--24);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--cta-primary);
	color: var(--wp--preset--color--text-on-cta);
}

.fd-case__demory > * {
	margin: 0;
}

.fd-case__demory .fd-case__label {
	color: var(--wp--preset--color--text-on-cta);
}

.fd-case__big {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--subheading);
	font-weight: 800;
	line-height: 1.2;
}

.fd-case__link {
	margin-top: var(--wp--preset--spacing--24) !important;
	font-weight: 700;
}

.fd-case__link a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: inherit;
	text-underline-offset: 0.2em;
}

/* Four operations. */
.fd-operations {
	display: grid;
	gap: var(--wp--preset--spacing--16);
}

.fd-operation {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--24);
	border: 1px solid var(--flydoo-line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface-raised);
}

.fd-operation > * {
	margin: 0;
}

.fd-operation > p {
	color: var(--flydoo-text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

.fd-operation__proof {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	margin-top: auto !important;
	color: var(--flydoo-text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

.fd-operation__proof > p {
	margin: 0;
}

.fd-operation__route {
	margin-top: auto !important;
	color: var(--flydoo-link) !important;
	font-weight: 700;
}

/* Pricing teaser: three packages built from core blocks. The figures are paragraphs bound to flydoo/settings. */
.fd-pricing__head {
	display: grid;
	gap: var(--wp--preset--spacing--24);
	margin-bottom: var(--wp--preset--spacing--32);
}

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

.fd-pricing__intro > * + * {
	margin-top: var(--wp--preset--spacing--8);
}

.fd-pricing__call {
	position: relative;
	align-self: end;
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--brand-soft);
}

.fd-pricing__call > * {
	margin: 0;
}

.fd-pricing__call-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}

.fd-pricing__call-link a {
	color: var(--flydoo-text-secondary);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.fd-pricing__call-link a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.fd-pricing__call-link a:focus-visible::after {
	outline: var(--wp--custom--focus--width) solid var(--flydoo-focus);
	outline-offset: var(--wp--custom--focus--offset);
}

.fd-packs {
	display: grid;
	gap: var(--wp--preset--spacing--24);
}

.fd-pack {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--24);
	border: 1px solid var(--flydoo-line);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface-raised);
}

.fd-pack > * {
	margin: 0;
}

.fd-pack--featured {
	border: 2px solid var(--wp--preset--color--brand-primary);
}

.fd-pack--dark {
	border-color: var(--wp--preset--color--surface-inverse);
	background: var(--wp--preset--color--surface-inverse);
	color: var(--wp--preset--color--text-on-inverse);
}

.fd-pack__badge {
	position: absolute !important;
	top: calc(-1 * var(--wp--preset--spacing--12));
	left: 50%;
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--12);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--brand-primary);
	color: var(--wp--preset--color--text-on-brand);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	transform: translateX(-50%);
}

.fd-pack__eyebrow {
	font-size: var(--wp--preset--font-size--micro);
	font-weight: 600;
	letter-spacing: 0.12em;
}

.fd-pack__price {
	display: flex;
	align-items: baseline;
	gap: var(--wp--preset--spacing--8);
}

.fd-pack__price > * {
	margin: 0;
}

.fd-pack__figure {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--price-display);
	font-weight: 800;
	line-height: 1.1;
}

.fd-pack__unit {
	color: var(--flydoo-text-muted);
	font-size: var(--wp--preset--font-size--small);
}

.fd-pack__desc {
	color: var(--flydoo-text-secondary);
}

.fd-pack--dark .fd-pack__desc,
.fd-pack--dark .fd-pack__eyebrow {
	color: var(--wp--preset--color--text-on-inverse);
}

.fd-pack__list {
	display: grid;
	gap: var(--wp--preset--spacing--4);
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
	list-style: none;
}

.fd-pack__list li::before {
	content: "\2713";
	margin-inline-end: var(--wp--preset--spacing--8);
}

.fd-pack .wp-block-buttons {
	margin-top: auto;
}

.fd-pack .wp-block-button,
.fd-pack .wp-block-button__link {
	width: 100%;
}

.fd-pack--dark .wp-block-button .wp-block-button__link {
	border-color: var(--wp--preset--color--text-on-inverse);
	background-color: var(--wp--preset--color--text-on-inverse);
	color: var(--wp--preset--color--text-primary);
}

.fd-pricing__note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--12);
	margin-top: var(--wp--preset--spacing--20);
	color: var(--flydoo-text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

.fd-pricing__note > * {
	margin: 0;
}

.fd-pricing__chip {
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--8);
	border: 1px solid var(--flydoo-status-excluded);
	border-radius: var(--wp--custom--radius--xs);
	color: var(--flydoo-status-excluded);
	font-size: var(--wp--preset--font-size--micro);
	font-weight: 600;
	letter-spacing: 0.08em;
}

/* Who you work with: the button sits beside the heading from 1024. */
.fd-home-who {
	position: relative;
}

.fd-who__cta {
	margin-top: var(--wp--preset--spacing--24);
}

/* FAQ: the answers column, 900 px wide in Main.png at 1440 (WO-59 measured); no 900 px token exists. */
.fd-home.fd-home-faq .fd-faq {
	max-width: 56.25rem;
	margin-inline: auto;
}

/* Next step: the left column and the booking card (flydoo/booking-flow, WO-57; the card styles itself).
 * The bottom-bar clearance comes from the page rule (body .wp-site-blocks, WO-55), not from here. */
.fd-next__grid {
	display: grid;
	gap: var(--wp--preset--spacing--32);
}

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

.fd-next__copy > * + * {
	margin-top: var(--wp--preset--spacing--16);
}

.fd-next__ticks {
	display: grid;
	gap: var(--wp--preset--spacing--8);
	padding: 0;
	list-style: none;
}

.fd-next__ticks li::before {
	content: "\2713";
	margin-inline-end: var(--wp--preset--spacing--8);
	color: var(--flydoo-status-included);
}

.fd-next__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--24);
}

.fd-next__links > * {
	margin: 0;
}

.fd-next__links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--flydoo-link);
	font-weight: 600;
}

/* The booking card fills its column; it starts at the top of the section, as drawn. */
.fd-next__action {
	align-self: start;
	min-width: 0;
}

/* /book-a-call/ lands on #book (WO-57): the section starts below the top edge, like an anchored heading. */
.fd-home-next[id] {
	scroll-margin-top: clamp(3.5rem, calc(3rem + 1.5vw), 4.5rem);
}

@media (min-width: 768px) {
	.fd-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fd-industry-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fd-operations {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fd-case__story {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--24);
	}

	.fd-case__story > .fd-org-logos {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.fd-stats__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.fd-industry-tiles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.fd-operations {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.fd-case {
		grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	}

	.fd-pricing__head {
		grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
		align-items: end;
	}

	.fd-packs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: stretch;
	}

	.fd-who__cta {
		position: absolute;
		top: var(--wp--preset--spacing--section);
		right: max(var(--wp--preset--spacing--gutter), calc((100% - 1200px) / 2));
		margin-top: 0;
	}

	/* Main.png: the copy column is about 500 px and the card about 640 px of the 1200 px row. */
	.fd-next__grid {
		grid-template-columns: minmax(0, 25fr) minmax(0, 32fr);
		column-gap: var(--wp--preset--spacing--48);
	}
}

/* Home refinements after the first browser pass. */
.fd-home-intro > h2 {
	max-width: 36rem;
}

/* Built for: the two audience cards read as drawn (large heading, tinted second card). */
.fd-home-builtfor .fd-card-grid .fd-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
	padding: var(--wp--preset--spacing--24);
	border-radius: var(--wp--custom--radius--lg);
}

.fd-home-builtfor .fd-card-grid .fd-card__title {
	font-size: var(--wp--preset--font-size--subheading);
	line-height: 1.2;
}

.fd-home-builtfor .fd-card-grid .fd-card__link {
	margin-top: auto;
	font-weight: 700;
	text-decoration: none;
}

.fd-home-builtfor .fd-card--inverse .fd-card__link,
.fd-home-builtfor .fd-card--inverse .fd-card__tag {
	color: var(--wp--preset--color--cta-primary);
}

/* Section 10.1 (18 November): two large sector cards under the audience cards, then one small line to the other industries. */
.fd-home-builtfor .fd-card-grid.fd-home-sectors {
	margin-block-start: var(--wp--preset--spacing--16, 1rem);
}

.fd-home-builtfor .fd-home-sectors .fd-card {
	border: 1px solid var(--wp--preset--color--line-default);
	background: var(--wp--preset--color--surface-raised);
}

.fd-home-builtfor .fd-home-sectors__more {
	margin-block-start: var(--wp--preset--spacing--16, 1rem);
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

.fd-home-builtfor .fd-home-sectors__more a {
	color: var(--wp--preset--color--brand-primary);
	font-weight: 600;
}

/* The Kaeron marks are dark files on a navy card: show them in the light text colour. */
.fd-home-case .fd-org-logos .fd-logo-wall__logo {
	filter: brightness(0) invert(1);
}

/* Method: the six phases as cards (orange last), no connector; the five answers below. */
.fd-home-method .fd-method-phases__connector {
	display: none;
}

.fd-home-method .fd-method-phases--band .fd-method-phases__item {
	padding: var(--wp--preset--spacing--20);
	border-top: 3px solid var(--wp--preset--color--brand-primary);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface-sunken);
}

.fd-home-method .fd-method-phases--band .fd-method-phases__item::before {
	color: var(--wp--preset--color--brand-primary);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--subheading);
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
}

.fd-home-method .fd-method-phases--band .fd-method-phases__item:last-child {
	border-top-color: var(--wp--preset--color--cta-primary);
	background: color-mix(in srgb, var(--wp--preset--color--cta-primary) 14%, var(--wp--preset--color--surface-raised));
}

.fd-home-method .fd-method-phases--band .fd-method-phases__item:last-child::before {
	color: var(--flydoo-status-excluded);
}

.fd-home-method .fd-method-outcomes {
	margin-top: var(--wp--preset--spacing--48);
}

/* Who you work with: the design has no "Meet the team" link. */
.fd-home-who .fd-team__more {
	display: none;
}

/* Self-check and selector intros: tight heading rhythm. */
.fd-self-check__intro > *,
.fd-services-selector__intro > * {
	margin-block: 0;
}

.fd-self-check__intro > * + * {
	margin-top: var(--wp--preset--spacing--8);
}

/*
 * WO-58 (FD-211): the homepage as drawn in Main.png (desktop/mobile). Every rule is scoped by .fd-home so
 * no other page moves. Phone first; min-width queries at the token breakpoints only. Sizes are the
 * measured Main.png values (design-system presets where one fits, home-* presets where none does).
 */
.fd-home :is(.is-style-eyebrow, .fd-section-intro__eyebrow) {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fd-home :is(h2.wp-block-heading, .fd-section-intro__heading) {
	max-width: 45rem;
	font-size: var(--wp--preset--font-size--home-heading);
	line-height: 1.0714;
	letter-spacing: -0.02em;
}

/* Hero */
.fd-home .fd-home-hero__copy h1 {
	font-size: var(--wp--preset--font-size--home-display);
	line-height: 1.0645;
}

.fd-home .fd-home-hero__chips {
	padding: var(--wp--preset--spacing--4);
	border-color: color-mix(in srgb, var(--flydoo-link, var(--wp--preset--color--brand-on-dark)) 22%, transparent);
	background: transparent;
}

.fd-home .fd-chip {
	padding-block: 0.1875rem;
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	line-height: 1.3846;
}

@media (min-width: 768px) {
	.fd-home.fd-pattern-home-hero .wp-block-buttons {
		gap: var(--wp--preset--spacing--16);
	}
}

.fd-home.fd-pattern-home-hero .wp-block-button__link {
	min-height: 3.5rem;
	padding-inline: var(--wp--preset--spacing--24);
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--large-body);
	font-weight: 600;
}

@media (min-width: 1024px) {
	.fd-home .fd-home-hero__grid {
		grid-template-columns: minmax(0, 1fr) 33.625rem;
	}
}

.fd-home .fd-home-hero__copy > p.has-lead-font-size {
	margin-block-start: 1.6875rem;
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 80%, transparent);
	font-size: 1.1875rem !important;
	line-height: 1.6;
}

.fd-home .fd-home-hero__copy > h1 {
	margin-block-start: 1.6875rem;
	margin-bottom: 0;
}

/* Built for */
.fd-home.fd-home-builtfor .fd-card-grid .fd-card {
	padding: var(--wp--preset--spacing--32);
	gap: var(--wp--preset--spacing--12);
}

.fd-home.fd-home-builtfor .fd-card-grid .fd-card__title {
	font-size: var(--wp--preset--font-size--home-card-title);
	line-height: 1.1667;
}

@media (min-width: 768px) {
	.fd-home.fd-home-builtfor .fd-card-grid .fd-card {
		min-height: 19rem;
	}

	.fd-home.fd-home-builtfor .fd-card-grid {
		gap: var(--wp--preset--spacing--20);
	}
}

.fd-home.fd-home-builtfor .fd-card-grid .fd-card > p:not(.fd-card__tag) {
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.5;
	color: var(--wp--preset--color--text-body);
}

.fd-home.fd-home-builtfor .fd-card-grid .fd-card--inverse > p:not(.fd-card__tag) {
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 80%, transparent);
}

/* The tag lines are typed in capitals; no transform, so "SMEs" keeps its drawn lower-case s (Main.png). */
.fd-home.fd-home-builtfor .fd-card__tag {
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: none;
}

.fd-home.fd-home-builtfor .fd-industry-tiles {
	margin-top: 1.75rem;
}

.fd-home.fd-home-builtfor .fd-industry-tile {
	min-height: 5rem;
	padding-block: 1.125rem;
	border-radius: var(--wp--custom--radius--lg);
}

.fd-home.fd-home-builtfor .fd-industry-tile__name {
	font-size: var(--wp--preset--font-size--nav);
}

.fd-home.fd-home-builtfor .fd-industry-tile__desc {
	font-size: var(--wp--preset--font-size--caption);
}

/* Self-check */
@media (min-width: 1024px) {
	.fd-home .fd-self-check {
		grid-template-columns: 31.625rem minmax(0, 1fr);
		column-gap: var(--wp--preset--spacing--48);
	}

	.fd-home .fd-self-check__items {
		gap: 0.9375rem;
	}
}

.fd-home .fd-self-check__item {
	padding: 1.3125rem 1.25rem;
}

.fd-home .fd-self-check__item > h3 {
	font-size: var(--wp--preset--font-size--home-card-heading);
	margin-top: 0.375rem;
	line-height: 1.1429;
}

.fd-home .fd-self-check__item > p {
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.55;
}

.fd-home .fd-self-check__result p {
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.3;
}

.fd-home .fd-self-check__panel-text {
	font-size: var(--wp--preset--font-size--home-card-heading);
}

.fd-home .fd-self-check__cta .wp-block-button__link {
	min-height: 2.9375rem;
	padding-inline: 1.25rem;
	border-color: var(--wp--preset--color--text-primary);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--text-primary);
	color: var(--wp--preset--color--text-on-brand);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.fd-home .fd-self-check__intro > p {
	margin-top: 1rem;
}

.fd-home .fd-self-check {
	row-gap: 1.125rem;
}

/* Services selector */
@media (min-width: 1024px) {
	.fd-home .fd-services-selector.is-enhanced {
		grid-template-columns: 33.5rem minmax(0, 1fr);
		column-gap: var(--wp--preset--spacing--24);
	}
}

.fd-home .fd-services-selector__tab {
	padding-block: 1rem;
	padding-left: 1.1875rem;
}

.fd-home .fd-services-selector__name {
	font-size: var(--wp--preset--font-size--card-heading);
}

.fd-home .fd-services-selector__situation {
	font-size: var(--wp--preset--font-size--small);
}

.fd-home .fd-services-selector__eyebrow {
	color: var(--flydoo-eyebrow);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.1em;
}

.fd-home .fd-services-selector__panel {
	padding: var(--wp--preset--spacing--32);
	row-gap: var(--wp--preset--spacing--16);
}

.fd-home .fd-services-selector__aside {
	color: var(--flydoo-text-muted);
	font-size: var(--wp--preset--font-size--small);
}

.fd-home .fd-services-selector__panel > h3 {
	font-size: var(--wp--preset--font-size--home-card-title);
	line-height: 1.1667;
}

.fd-home .fd-services-option__fact {
	padding: 0.9375rem 0.875rem;
	border: 0;
}

.fd-home .fd-services-option__fact > :first-child {
	letter-spacing: 0.12em;
}

/* QA audit 2: the drawn values are the body face at 600 ("CRM, sales, invoicing," 74 px wide), not the heading face. */
.fd-home .fd-services-option__fact > :last-child {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
}

.fd-home .fd-services-selector__panel .wp-block-button__link {
	min-height: 3.1875rem;
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--body-emphasis);
	font-weight: 700;
}

.fd-home .fd-services-selector__panel .is-style-text-inverse .wp-block-button__link {
	color: var(--wp--preset--color--text-primary);
	font-weight: 700;
	text-decoration: underline;
}

/* Field case */
.fd-home.is-style-section-inverse .is-style-eyebrow {
	color: var(--wp--preset--color--cta-primary);
}

.fd-home .fd-case__story {
	padding: var(--wp--preset--spacing--32);
	border-color: color-mix(in srgb, var(--wp--preset--color--brand-on-dark) 22%, transparent);
	border-radius: 1.25rem;
	background: color-mix(in srgb, var(--wp--preset--color--brand-on-dark) 6%, transparent);
}

.fd-home .fd-case__col > p:not(.fd-case__label) {
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 82%, transparent);
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.6;
}

.fd-home .fd-case__demory .fd-case__label {
	color: var(--wp--preset--color--text-on-cta);
}

.fd-home .fd-case__label {
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 72%, transparent);
	font-weight: 700;
	letter-spacing: 0.1em;
}

.fd-home .fd-case__demory {
	padding: var(--wp--preset--spacing--32);
	border-radius: 1.25rem;
}

/* QA audit 2: "4 weeks" is 44 px at 390 too (mobile/Main.png, 178 px ink), the text 16 px at both widths. */
.fd-home .fd-case__big {
	font-size: 2.75rem;
	line-height: 1.0909;
}

.fd-home .fd-case__demory > p:not(.fd-case__label):not(.fd-case__big):not(.fd-case__link) {
	font-size: 1rem;
	line-height: 1.5;
}

/* The 44 px link box reaches 12 px into the padding, so the card keeps its drawn height (273 px at 390). */
.fd-home .fd-case__demory .fd-case__link {
	margin-bottom: -0.75rem;
}

.fd-home .fd-case__link {
	margin-top: auto !important;
}

.fd-home .fd-case__link a {
	font-weight: 700;
	text-decoration: underline;
}

@media (min-width: 1024px) {
	.fd-home .fd-case {
		grid-template-columns: minmax(0, 750fr) minmax(0, 426fr);
		gap: var(--wp--preset--spacing--24);
	}

	.fd-home .fd-case__story,
	.fd-home .fd-case__demory {
		padding: var(--wp--preset--spacing--32);
	}
}

/* Method: phases band and the five answers */
.fd-home .fd-method-phases .fd-section-intro__lead,
.fd-home .fd-home-intro + p {
	max-width: 51.25rem;
}

.fd-home .fd-method-phases--band .fd-method-phases__item {
	grid-template-columns: minmax(0, 1fr);
	padding: 1.625rem 1.375rem 1.375rem;
	border-radius: var(--wp--custom--radius--lg);
}

.fd-home .fd-method-phases--band .fd-method-phases__list {
	margin-top: 2.25rem;
}

.fd-home .fd-method-phases--band .fd-method-phases__title {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.2;
}

.fd-home .fd-method-phases--band .fd-method-phases__text {
	grid-column: 1;
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
}

.fd-home .fd-method-phases--band .fd-method-phases__item:last-child {
	background: var(--wp--preset--color--method-cream);
}

.fd-home .fd-method-phases--band .fd-method-phases__item:last-child::before {
	color: var(--wp--preset--color--method-ochre);
}

.fd-home .fd-method-outcomes .fd-section-intro__heading {
	max-width: none;
	font-size: var(--wp--preset--font-size--home-subhead);
	line-height: 1.2;
}

.fd-home .fd-method-outcomes .fd-section-intro {
	margin-bottom: var(--wp--preset--spacing--20);
}

/*
 * Four operations. The last row of every card (the proof or "See the route →") is one 20 px line of 13 px
 * text whose letters start 39 px above the card's bottom edge and about 17 px under the description, as
 * drawn at 1440 and 390 (Main.png). The description's negative bottom margin (-2 px on the phone, -4 px from
 * 1024, as measured) only shows in the tallest card; the auto margin above the row absorbs it in the others.
 */
.fd-home .fd-operation {
	padding: 1.625rem 1.625rem 1.4375rem;
}

.fd-home .fd-operation > p:not(.fd-operation__route) {
	margin-bottom: -0.125rem;
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.55;
}

.fd-home .fd-operation__proof {
	gap: 0.5625rem;
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.55;
}

.fd-home .fd-operation__proof .fd-logo-wall__logo {
	max-height: 0.5rem;
}

/* The Poortman mark stays a 44 px link; the negative margins keep it to the drawn 20 px row. */
.fd-home .fd-operation__proof .fd-logo-wall__tile {
	margin-block: -0.75rem;
}

.fd-home .fd-operation__route {
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.55;
}

/* Pricing */
.fd-home .fd-pricing__intro > p:not(.is-style-eyebrow) {
	max-width: 45.75rem;
}

.fd-home .fd-pricing__call {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	align-items: center;
	column-gap: var(--wp--preset--spacing--16);
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--lg);
}

.fd-home .fd-pricing__call::before {
	content: "";
	grid-row: 1 / span 2;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--brand-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='6' y='4' width='12' height='16' rx='2'/%3E%3Cpath d='M9 8h6M9 12h1M12 12h1M9 16h1M12 16h1'/%3E%3C/svg%3E") center / 1.5rem no-repeat;
}

.fd-home .fd-pack {
	padding: var(--wp--preset--spacing--32);
	gap: var(--wp--preset--spacing--16);
}

.fd-home .fd-pack__figure {
	font-size: var(--wp--preset--font-size--home-price);
}

/* Review V13: "Per phase" on the Home Scale card is a label, not a price (as on the Pricing page). */
.fd-home .fd-pack__figure--label {
	font-size: var(--wp--preset--font-size--subheading);
	line-height: 1.3;
}

/*
 * Package lists as drawn (Main.png): body-grey text and a thin 10 x 8 tick in the text colour, 3 px from the
 * text. The tick is a mask, so it takes the list colour on the light and the dark package alike.
 */
.fd-home .fd-pack:not(.fd-pack--dark) .fd-pack__list {
	color: var(--wp--preset--color--text-body);
}

.fd-home .fd-pack__list li::before {
	content: "";
	display: inline-block;
	width: 0.625rem;
	height: 0.5rem;
	margin-inline-end: 0.1875rem;
	background-color: currentcolor;
	vertical-align: 0.0625rem;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M.75 4.1 3.6 7.1 9.25.9'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M.75 4.1 3.6 7.1 9.25.9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "Start with Essentials": the drawn 1 px outline in the text colour (Main.png), not the light line. */
.fd-home .fd-pack:not(.fd-pack--dark) .is-style-outline-inverse .wp-block-button__link:not(:hover) {
	border-color: var(--wp--preset--color--text-primary);
}

@media (min-width: 1024px) {
	.fd-home .fd-operation > p:not(.fd-operation__route) {
		margin-bottom: -0.25rem;
	}

	.fd-home .fd-pricing__head {
		grid-template-columns: minmax(0, 1fr) 22.75rem;
	}

	.fd-home .fd-packs {
		column-gap: 1.375rem;
	}
}

/* Team */
.fd-home .fd-who__cta .wp-block-button__link {
	min-height: 3rem;
	background: var(--wp--preset--color--text-primary);
	border-color: var(--wp--preset--color--text-primary);
	color: var(--wp--preset--color--text-on-brand);
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

@media (min-width: 1024px) {
	.fd-home .fd-who__cta {
		top: 10.375rem;
	}
}

/* Next step: the left column (the form on the right is WO-57) */
.fd-home .fd-next__copy h2 {
	line-height: 1.0909;
}

.fd-home .fd-next__ticks {
	font-size: var(--wp--preset--font-size--nav);
}

/* QA audit 2: the drawn tick is a thin, symmetric check in the soft grey of the list, not the heavy text glyph. */
.fd-home .fd-next__ticks li::before {
	content: "";
	display: inline-block;
	box-sizing: border-box;
	width: 0.375em;
	height: 0.6875em;
	margin-inline: 0.125em 0.625em;
	border: solid currentcolor;
	border-width: 0 0.09375rem 0.09375rem 0;
	color: inherit;
	transform: translateY(-0.1875em) rotate(45deg);
}

.fd-home .fd-next__links {
	padding-top: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--flydoo-line);
}

.fd-home .fd-next__links a {
	color: var(--flydoo-text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	text-decoration: underline;
}

@media (min-width: 1024px) {
	.fd-home .fd-next__grid {
		grid-template-columns: minmax(0, 1fr) 40.125rem;
		column-gap: var(--wp--preset--spacing--48);
	}
}

.fd-home .fd-next__copy > p.has-lead-font-size {
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 80%, transparent);
	line-height: 1.6;
}

@media (min-width: 1024px) {
	.fd-home .fd-next__copy > p.has-lead-font-size {
		font-size: var(--wp--preset--font-size--home-lead) !important;
	}
}

/* Hero: the avatar line stacks on the phone as drawn, one row from 768 */
.fd-home.fd-pattern-home-hero .fd-avatar-line {
	flex-direction: column;
	align-items: flex-start;
}

@media (min-width: 768px) {
	.fd-home.fd-pattern-home-hero .fd-avatar-line {
		flex-direction: row;
		align-items: center;
	}
}

/* Method phases: the numeral sits above the title on every width, as drawn */
.fd-home .fd-method-phases--band .fd-method-phases__item::before {
	grid-row: auto;
	margin-bottom: 0.5rem;
}

.fd-home .fd-operation__name {
	font-size: var(--wp--preset--font-size--home-card-heading);
}

/* WO-59: brand links keep a 44 px hit box; where the brands sit in a row it overlaps no neighbour, so the drawn 24 px row stays. */
@media (min-width: 768px) {
	.fd-home .fd-logo-wall__brand-list .fd-logo-wall__tile--brand {
		margin-block: -0.625rem;
	}
}

/* WO-59: hero faces are 40 px inside a 2 px ring, overlapping by 7 px, at every width (Main.png, zoomed crops). */
.fd-home.fd-pattern-home-hero .fd-avatar-line__img {
	width: 2.75rem;
	height: 2.75rem;
}

.fd-home.fd-pattern-home-hero .fd-avatar-line__face + .fd-avatar-line__face {
	margin-inline-start: -0.6875rem;
}

/*
 * WO-59: the drawn buttons on Home use the body face (Plus Jakarta Sans), not the heading face (measured in
 * Main.png, zoomed crops of the hero buttons). The :root prefix outranks buttons.css, which loads later.
 * Every drawn core button carries .wp-block-button__link; bare .wp-element-button is left alone so the
 * booking card (WO-57) keeps its own face.
 */
:root .fd-home .wp-block-button__link {
	font-family: var(--wp--preset--font-family--body);
}

/*
 * QA audit 1 (S8): the inner pages draw their buttons and arrow links in the same body face, bold, with the
 * short arrow that face draws (Groups.png, Scale.png, AI.png, the four industry artboards, Method.png,
 * About.png, Cases.png, CaseKaeron.png). One rule for all of them; bare .wp-element-button (the booking
 * card) keeps its own face.
 */
:root :is(.fd-page, .fd-page--cases, .fd-page--about, .fd-page--method) :is(.wp-block-button__link, .fd-card__link, .fd-aud-proof__link, .fd-aud-close__mail) {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
}

/*
 * QA audit 1 (S9): on the light grounds of the inner pages the drawn body copy is the body grey (text-body),
 * not text-secondary: card bodies, FAQ answers, phase texts, section leads and notes (measured box by box
 * against the artboards). Tags, quotes and labels stay text-secondary, as drawn; dark cards keep their own colour.
 */
:root :is(.fd-page, .fd-page--cases, .fd-page--about, .fd-page--method):not(.is-style-section-inverse) :is(.fd-card:not(.fd-card--inverse, .fd-card--outcome) .fd-card__body, .fd-method-phases__text, .fd-aud-section-lead, .fd-aud-lead, .fd-aud-proof__text, .fd-aud-timeline__text, .fd-ai-lead, .fd-ai-level:not(.fd-ai-level--dark) .fd-ai-level__body, .fd-ind-note__text, .fd-ind-close__lead) {
	color: var(--wp--preset--color--text-body);
}

/* The drawn pill buttons there are 17 px (Groups.png close band: 244 px wide). */
:root :is(.fd-page, .fd-page--cases, .fd-page--about, .fd-page--method) .wp-block-button__link {
	font-size: 1.0625rem;
}

.fd-home.fd-pattern-home-hero .is-style-outline-inverse .wp-block-button__link {
	border-color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse-muted) 50%, transparent);
}

/*
 * WO-59 phone fidelity to mobile/Main.png at 390. Mobile first: the rules below are the phone values and
 * the min-width queries at the end put back what WO-58 matched at 768, 1024 and 1440 (restored values are
 * the WO-58 computed values, listed in the run's comp-before.txt).
 */

/* Hero */
.fd-home .fd-home-hero__copy h1 {
	line-height: 1.0323;
}

.fd-home .fd-home-hero__grid {
	row-gap: 3.4375rem;
}

.fd-home.fd-pattern-home-hero .wp-block-buttons,
.fd-home.fd-pattern-home-hero .fd-avatar-line {
	margin-block-start: 1.625rem;
}

.fd-home.fd-pattern-home-hero .fd-avatar-line {
	gap: 0.875rem;
}

.fd-home.fd-pattern-home-hero .fd-avatar-line__text > * {
	line-height: 1.46;
}

.fd-home.fd-pattern-home-hero .fd-avatar-line__text > * + * {
	margin-top: 0;
}

/* Built for: the 44 px link box stays, its extra height does not show (the card ends 41 px under the link text). */
.fd-home.fd-home-builtfor .fd-card-grid .fd-card__link {
	margin-block: 0 -0.75rem;
}

.fd-home.fd-home-builtfor .fd-card-grid {
	gap: var(--wp--preset--spacing--20);
}

.fd-home.fd-home-builtfor .fd-industry-tile {
	padding-block: 1rem;
}

/* Services: lead as drawn, option text wraps where the drawn rows wrap, facts 12 px apart */
.fd-home .fd-services-selector__intro > p:last-child {
	margin-block: 1.5rem 0.5625rem;
	font-size: 1.03125rem;
	line-height: 1.4;
}

.fd-home .fd-services-selector__name {
	font-size: 1.125rem;
}

.fd-home .fd-services-selector__tab {
	padding-right: 3.25rem;
}

.fd-home .fd-services-option__fact + .fd-services-option__fact {
	margin-top: -0.25rem;
}

/* Pricing: type sizes as drawn */
.fd-home .fd-pricing__intro > p:not(.is-style-eyebrow):last-child {
	margin-top: 0.75rem;
}

.fd-home .fd-pricing__call > :first-child {
	line-height: 1.5;
}

.fd-home .fd-pricing__call > :last-child {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.fd-home .fd-pack__eyebrow {
	font-size: 0.75rem;
}

.fd-home .fd-pack__desc {
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.55;
}

.fd-home .fd-pack {
	gap: 0.875rem;
}

.fd-home .fd-pack .wp-block-button__link {
	min-height: 3.125rem;
	padding-block: 0.6875rem;
}

/* Logos: the group heading is one line as drawn; brand rows 40 px apart with 44 px hit boxes */
.fd-home .fd-logo-wall h3 {
	font-size: 0.8125rem;
}

.fd-home .fd-logo-wall__brand-list .fd-logo-wall__item {
	margin-bottom: -0.25rem;
}

/* Method: phase numerals as drawn, cards 13 px apart */
.fd-home-method .fd-method-phases--band .fd-method-phases__item::before {
	font-size: 1.875rem;
}

.fd-home .fd-method-phases--band .fd-method-phases__list {
	gap: 0.8125rem;
}

/* Next step, left column only (the booking card is not touched) */
.fd-home .fd-next__copy h2 {
	font-size: 2.75rem !important;
	line-height: 1.1364;
}

.fd-home .fd-next__copy > p.has-lead-font-size {
	margin-top: 1.3125rem;
	font-size: 1.125rem !important;
	line-height: 1.58;
}

.fd-home .fd-next__ticks {
	gap: 0.75rem;
	margin-top: 1.375rem;
	color: var(--wp--preset--color--text-on-inverse-soft);
	line-height: 1.35;
}

.fd-home .fd-next__links {
	margin-top: 1.3125rem;
	padding-top: 0;
}

.fd-home .fd-next__grid {
	row-gap: var(--wp--preset--spacing--40);
}

/* Team: the button sits under the heading, above the portraits, as drawn on the phone */
.fd-home-who {
	display: flex;
	flex-direction: column;
}

.fd-home-who > .fd-team {
	display: contents;
}

.fd-home-who .fd-team__list {
	order: 2;
}

.fd-home-who .fd-team__role {
	line-height: 1.3;
}

/*
 * Phone rhythm as drawn in mobile/Main.png: the intro's own 24 px bottom margin is the whole gap to the
 * button (no second 24 px on the button), and the heading sits 11 px under the eyebrow. 768 restores both.
 */
.fd-home-who .fd-who__cta {
	order: 1;
	margin-block-start: 0;
}

.fd-home-who .fd-section-intro__eyebrow + .fd-section-intro__heading {
	margin-top: 0.6875rem;
}

/*
 * The button row is still the section's last child and a constrained child, so the section's last-child
 * reset (0,3,0) and the auto inline margins (!important) reach it; in the flex column those zero its
 * bottom gap and centre it. This selector outranks both and keeps it at the left gutter; 768 restores.
 */
.fd-home.fd-home-who.is-layout-constrained > .fd-who__cta {
	align-self: flex-start;
	margin-block-end: var(--wp--preset--spacing--32);
	margin-inline: 0 !important;
}

/* FAQ heading as drawn (about 40 px) */
.fd-home-faq .fd-section-intro__heading {
	font-size: 2.5rem !important;
	line-height: 1.1;
}

/* Self-check: cards taller and further from the panel, as drawn */
.fd-home .fd-self-check__items {
	row-gap: 0.875rem;
	margin-top: 1.875rem;
}

.fd-home .fd-self-check__item {
	padding: 1.5rem 1.25rem;
}

.fd-home .fd-self-check__item > h3 {
	line-height: 1.25;
}

.fd-home .fd-self-check__item > p {
	line-height: 1.7;
}

/* From 768 the WO-58 values are back. */
@media (min-width: 768px) {
	.fd-home .fd-home-hero__copy h1 {
		line-height: 1.0645;
	}

	.fd-home .fd-home-hero__copy > h1,
	.fd-home .fd-home-hero__copy > p.has-lead-font-size {
		margin-block-start: var(--wp--preset--spacing--24);
	}

	.fd-home .fd-home-hero__copy > p.has-lead-font-size {
		font-size: var(--wp--preset--font-size--lead) !important;
		line-height: 1.52;
	}

	.fd-home .fd-home-hero__grid {
		row-gap: var(--wp--preset--spacing--32);
	}

	.fd-home.fd-pattern-home-hero .wp-block-buttons,
	.fd-home.fd-pattern-home-hero .fd-avatar-line {
		margin-block-start: var(--wp--preset--spacing--24);
	}

	.fd-home.fd-pattern-home-hero .fd-avatar-line {
		gap: 0.75rem;
	}

	.fd-home.fd-pattern-home-hero .fd-avatar-line__text > * {
		line-height: 1.63;
	}

	.fd-home.fd-pattern-home-hero .fd-avatar-line__text > * + * {
		margin-top: 0.125rem;
	}

	.fd-home.fd-home-builtfor .fd-card-grid .fd-card__link {
		margin-block: auto 0;
	}

	.fd-home.fd-home-builtfor .fd-industry-tile {
		padding-block: 1.125rem;
	}

	.fd-home .fd-services-selector__intro > p:last-child {
		margin-block: var(--wp--preset--spacing--8) 0;
		font-size: var(--wp--preset--font-size--small);
		line-height: 1.63;
	}

	.fd-home .fd-services-selector__name {
		font-size: var(--wp--preset--font-size--card-heading);
	}

	.fd-home .fd-services-selector__tab {
		padding-right: 3rem;
	}

	.fd-home .fd-services-option__fact + .fd-services-option__fact {
		margin-top: 0;
	}

	.fd-home .fd-pricing__intro > p:not(.is-style-eyebrow):last-child {
		margin-top: var(--wp--preset--spacing--8);
	}

	.fd-home .fd-pricing__call > :first-child {
		line-height: 1.63;
	}

	.fd-home .fd-pricing__call > :last-child {
		font-size: var(--wp--preset--font-size--standard-body);
		line-height: 1.63;
	}

	.fd-home .fd-pack__eyebrow {
		font-size: var(--wp--preset--font-size--micro);
	}

	.fd-home .fd-pack__desc {
		font-size: var(--wp--preset--font-size--standard-body);
		line-height: 1.63;
	}

	.fd-home .fd-pack {
		gap: var(--wp--preset--spacing--16);
	}

	.fd-home .fd-pack .wp-block-button__link {
		min-height: 3rem;
		padding-block: var(--wp--preset--spacing--12);
	}

	.fd-home .fd-logo-wall h3 {
		font-size: var(--wp--preset--font-size--small);
	}

	.fd-home .fd-logo-wall__brand-list .fd-logo-wall__item {
		margin-bottom: 0;
	}

	.fd-home-method .fd-method-phases--band .fd-method-phases__item::before {
		font-size: var(--wp--preset--font-size--subheading);
	}

	.fd-home .fd-method-phases--band .fd-method-phases__list {
		gap: 1rem;
	}

	.fd-home .fd-next__copy h2 {
		font-size: var(--wp--preset--font-size--home-closing) !important;
		line-height: 1.0909;
	}

	.fd-home .fd-next__copy > p.has-lead-font-size {
		margin-top: var(--wp--preset--spacing--16);
		font-size: var(--wp--preset--font-size--lead) !important;
		line-height: 1.6;
	}

	.fd-home .fd-next__ticks {
		gap: var(--wp--preset--spacing--8);
		margin-top: var(--wp--preset--spacing--16);
		color: var(--wp--preset--color--text-on-inverse-soft);
		line-height: 1.63;
	}

	/* The links sit right under the rule, as drawn (QA audit 2: 19 px from the rule to the line centre). */
	.fd-home .fd-next__links {
		margin-top: var(--wp--preset--spacing--16);
		padding-top: 0;
	}

	.fd-home .fd-next__grid {
		row-gap: var(--wp--preset--spacing--32);
	}

	.fd-home-who {
		display: block;
		flex-direction: row;
	}

	.fd-home-who > .fd-team {
		display: block;
	}

	.fd-home-who .fd-team__list {
		order: 0;
	}

	.fd-home-who .fd-team__role {
		line-height: 1.5;
	}

	.fd-home-who .fd-who__cta {
		order: 0;
		margin-block: var(--wp--preset--spacing--24) 0;
	}

	.fd-home-who .fd-section-intro__eyebrow + .fd-section-intro__heading {
		margin-top: 0.875rem;
	}

	.fd-home.fd-home-who.is-layout-constrained > .fd-who__cta {
		align-self: auto;
		margin-block-end: 0;
		margin-inline: auto !important;
	}

	.fd-home-faq .fd-section-intro__heading {
		font-size: var(--wp--preset--font-size--home-heading) !important;
		line-height: 1.0714;
	}

	.fd-home .fd-self-check__items {
		row-gap: 1rem;
		margin-top: 0;
	}

	.fd-home .fd-self-check__item {
		padding: 1.3125rem 1.25rem;
	}

	.fd-home .fd-self-check__item > h3 {
		line-height: 1.1429;
	}

	.fd-home .fd-self-check__item > p {
		line-height: 1.55;
	}
}

@media (min-width: 1024px) {
	.fd-home-who .fd-who__cta {
		margin-block: 0;
	}

	.fd-home .fd-method-phases--band .fd-method-phases__list {
		gap: 0.75rem;
	}

	.fd-home .fd-next__copy > p.has-lead-font-size {
		font-size: var(--wp--preset--font-size--home-lead) !important;
	}

	.fd-home .fd-self-check__items {
		row-gap: 0.9375rem;
	}
}

/*
 * QA audit 1 (2026-11-13), Home items measured against desktop/Main.png and mobile/Main.png.
 */

/* Main 11: a full-width 1 px rule closes the logos section (Main.png y 1263, mobile y 2964). */
.fd-home-logos.is-style-section-page {
	border-bottom: 1px solid var(--wp--preset--color--line-default);
}

/* Main 13: the navy pills ("Talk it through in 30 minutes", "Talk to Nicolas or Peter") are 16 px semibold, 254 and 217 px wide. */
:root .fd-home :is(.fd-self-check__cta, .fd-who__cta) .wp-block-button__link {
	padding: 0.71875rem 1.375rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

/* Main 20 and Method 2: the role card titles are the body face, semibold 16 px (Main.png, Method.png). */
:root :is(.fd-home, .fd-page--method) .fd-method-outcomes__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
}

/* Main 8: the rules on navy are the drawn subtle navy line, not the bright line-strong. */
.fd-stats.is-style-section-inverse,
.fd-home .fd-next__links {
	border-top-color: var(--wp--preset--color--inverse-divider);
}

/* Main 10: the self-check and pricing leads are the body grey at 17 px on a 27 px line. */
.fd-home-selfcheck .fd-self-check__intro > p.has-home-lead-font-size,
.fd-home-pricing p.has-home-lead-font-size {
	color: var(--wp--preset--color--text-body);
	font-size: 1.0625rem !important;
	line-height: 1.5882;
}

@media (min-width: 1024px) {

	/* Main 17: the option list starts 7 px lower, the options are 74 px with a 14 px gap (pitch 88), as drawn. */
	.fd-home .fd-services-selector__tabs {
		row-gap: 0.75rem;
		margin-top: 0.4375rem;
	}

	.fd-home .fd-services-selector__tab {
		padding-block: 0.90625rem;
	}

	/* Main 3: the two audience cards are 590 px wide with a 20 px gap. */
	.fd-home.fd-home-builtfor .fd-card-grid__list {
		column-gap: 1.25rem;
	}

	/* Main 4: sign cards 210 px tall: 269 px text measure, title on a 26 px line, 36 px from title to body. */
	.fd-home .fd-self-check__item {
		padding: 1.625rem 1.40625rem 1.3125rem;
	}

	.fd-home .fd-self-check__item > h3 {
		line-height: 1.25;
	}

	.fd-home .fd-self-check__item > p {
		margin-top: 0.3125rem;
		color: var(--wp--preset--color--text-body);
	}

	/* Main 5: phase cards are top-aligned at the drawn 241 px height; title 46 px under the numeral, body 34 px under the title. */
	.fd-home .fd-method-phases--band .fd-method-phases__item {
		align-content: start;
		min-height: 15.0625rem;
	}

	.fd-home .fd-method-phases--band .fd-method-phases__item::before {
		margin-bottom: 0.8125rem;
	}

	.fd-home .fd-method-phases--band .fd-method-phases__text {
		margin-top: 0.5625rem;
		color: var(--wp--preset--color--text-body);
	}
}

/*
 * Review V8 (2026-11-16): every FAQ starts on the page grid's left edge like the sections around it,
 * instead of a 900 px column centred on the page. The block spans the wide size (core centres it with
 * !important, so the width is what moves it); the heading and the questions keep the 900 px reading width.
 */
body .wp-site-blocks .wp-block-flydoo-faq.fd-faq {
	max-width: var(--wp--style--global--wide-size) !important;
}

body .wp-site-blocks .wp-block-flydoo-faq.fd-faq > * {
	max-width: 56.25rem;
	margin-inline: 0;
}

/*
 * Review M1 (2026-11-16): on phones the hero headings ran to 6-8 lines and pushed the buttons below the
 * first screen. Below 768 px every page H1 is about 25% smaller (39 px at 390, 36 px at 360). The query is
 * written with min-width only (the project rule) as "not 768 and up"; !important is needed to beat the
 * preset size classes (has-*-font-size), which core prints with !important.
 */
@media not all and (min-width: 768px) {

	body .wp-site-blocks h1.wp-block-heading {
		font-size: clamp(2.25rem, 9vw + 0.25rem, 2.875rem) !important;
		line-height: 1.12;
	}
}

/*
 * Homepage hero v2 (handoff 15.1, 15.2, board "Homepage hero v2", 23 November): orange eyebrow, the
 * two-tone H1 ("AI" orange, the second sentence light grey), the subline, the call button, a text
 * link to /odoo-ai/ and a proof row of three. The owl photo of flydoo.eu fills the right half,
 * under a navy-to-transparent gradient so the copy stays readable; nothing covers its face.
 * Decorative, so a CSS background (no alt text).
 *
 * Round 7 (handoff 16.2, board "Mobile hero v3", 24 November): below 1024 the owl is no longer a
 * band under the copy but the background of the top of the hero, 360 px high right under the
 * header, its eye and face in view (78% 30%). The gradient is navy behind the header, clear in the
 * middle and solid navy at the bottom; the copy starts 260 px down, on the faded part, so nothing
 * covers the face. The H1 is 38 px and the subline 16 px below 768.
 */
.fd-home-hero--ai {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: 16.25rem !important;
}

.fd-home-hero--ai::before {
	position: absolute;
	inset: 0 0 auto;
	z-index: -1;
	block-size: 22.5rem;
	background:
		linear-gradient(
			180deg,
			rgb(11 22 40 / 85%) 0%,
			rgb(11 22 40 / 0%) 22%,
			rgb(11 22 40 / 0%) 62%,
			var(--wp--preset--color--surface-inverse) 100%
		),
		url("../images/home-owl.webp") 78% 30% / cover no-repeat;
	content: "";
}

@media not all and (min-width: 768px) {

	body .wp-site-blocks .fd-home-hero--ai h1.wp-block-heading {
		font-size: 2.375rem !important;
		line-height: 1.08;
	}

	body .fd-home.fd-home-hero--ai .fd-home-hero__copy > p.has-lead-font-size {
		font-size: 1rem !important;
	}
}

.fd-home-hero--ai .fd-home-hero__eyebrow {
	margin: 0;
	color: var(--wp--preset--color--cta-primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.fd-home-hero--ai .fd-home-hero__copy > .fd-claim-gate + h1,
.fd-home-hero--ai .fd-home-hero__copy > h1 {
	margin-block-start: var(--wp--preset--spacing--16);
}

.fd-home-hero--ai .fd-home-hero__textlink .wp-block-button__link {
	padding-inline: var(--wp--preset--spacing--8);
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--text-on-inverse);
	font-weight: 700;
}

.fd-home-hero--ai .fd-home-hero__textlink .wp-block-button__link:hover {
	color: var(--wp--preset--color--cta-primary);
}

.fd-home-hero--ai .fd-home-hero__proof {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, max-content));
	gap: var(--wp--preset--spacing--16) var(--wp--preset--spacing--32);
	margin-block-start: var(--wp--preset--spacing--40);
}

.fd-home-hero--ai .fd-home-hero__proof > .fd-claim-gate {
	display: contents;
}

.fd-home-hero--ai .fd-home-hero__proof-item:empty {
	display: none;
}

.fd-home-hero--ai .fd-home-hero__proof-item > p {
	margin: 0;
}

.fd-home-hero--ai .fd-home-hero__proof-value {
	color: var(--wp--preset--color--text-on-inverse);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 700;
	line-height: 1.3;
}

/* Handoff 18: "Silver" links to Flydoo's page on odoo.com; it keeps the stat's look, underlined. */
.fd-home-hero--ai .fd-home-hero__proof-value a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.fd-home-hero--ai .fd-home-hero__proof-value a:hover {
	text-decoration-thickness: 2px;
}

.fd-home-hero--ai .fd-home-hero__proof-value a:focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: 3px;
	border-radius: 2px;
}

.fd-home-hero--ai .fd-home-hero__proof-label {
	color: var(--wp--preset--color--text-on-inverse-muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.4;
}

/*
 * The first section under the hero (15.1): the service request with AI inside Odoo, five cards in
 * one row on a light ground (stacked on a phone), a role chip on each, the line under them and the
 * link to /odoo-ai/.
 */
.fd-home-flow__head {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--12) var(--wp--preset--spacing--32);
	align-items: flex-end;
	justify-content: space-between;
}

.fd-home-flow__head > * {
	margin: 0;
}

.fd-home.fd-home-flow h2.fd-home-flow__heading {
	margin: var(--wp--preset--spacing--8) 0 0;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
	line-height: 1.2;
}

.fd-home-flow__link a {
	color: var(--wp--preset--color--brand-primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}

.fd-home-flow__link a:hover {
	text-decoration: underline;
}

.fd-home-flow__body {
	margin-block-start: var(--wp--preset--spacing--32) !important;
}

.fd-home-flow__steps {
	display: grid;
	gap: var(--wp--preset--spacing--16);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fd-home-flow__step {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
	align-items: flex-start;
	padding: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--line-default);
	border-radius: var(--wp--custom--radius--md, 14px);
	background-color: var(--wp--preset--color--surface-page);
	color: var(--wp--preset--color--text-primary);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.fd-home-flow__who {
	padding: 0.25rem 0.625rem;
	border-radius: var(--wp--custom--radius--pill);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.fd-home-flow__step.is-agent .fd-home-flow__who {
	background-color: color-mix(in srgb, var(--wp--preset--color--badge-agent) 14%, var(--wp--preset--color--surface-page));
	color: var(--wp--preset--color--badge-agent);
}

.fd-home-flow__step.is-odoo .fd-home-flow__who {
	background-color: var(--wp--preset--color--method-cream);
	color: var(--wp--preset--color--method-ochre);
}

.fd-home-flow__step.is-person .fd-home-flow__who {
	background-color: var(--wp--preset--color--brand-soft);
	color: var(--wp--preset--color--brand-primary);
}

.fd-home-flow__step.is-automation .fd-home-flow__who {
	background-color: var(--wp--preset--color--chip-standard-fill);
	color: var(--wp--preset--color--chip-standard-text);
}

.fd-home-flow__note {
	margin: var(--wp--preset--spacing--20) 0 0;
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--caption);
}

@media (min-width: 768px) {

	.fd-home-flow__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {

	.fd-home-hero--ai {
		padding-top: clamp(5.5rem, calc(5.5rem + 0vw), 5.5rem) !important;
	}

	.fd-home-hero--ai::before {
		inset: 0 0 0 auto;
		inline-size: 56%;
		block-size: auto;
		background:
			linear-gradient(90deg, var(--wp--preset--color--surface-inverse) 0%, transparent 38%),
			url("../images/home-owl.webp") 68% 30% / cover no-repeat;
	}

	.fd-home.fd-home-hero--ai .fd-home-hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fd-home.fd-home-hero--ai .fd-home-hero__copy {
		max-inline-size: min(46rem, 52%);
	}

	.fd-home-flow__steps {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/*
 * E17 inner pages (WO-60): rules shared by For groups, For growing SMEs, AI & agents and the four
 * industry pages (Groups.png, Scale.png, AI.png, FieldServices.png, Construction.png, Logistics.png,
 * Manufacturing.png; desktop 1440, mobile 390). Every section group of those pages carries .fd-page
 * plus its page group class (.fd-page--audiences, .fd-page--ai or .fd-page--industry), and every
 * selector below starts with .fd-page, so no other page (Home included) can match. Page-only rules
 * live in page-audiences.css, page-ai.css and page-industries.css. Phone first; min-width queries at
 * the token breakpoints only. Measured values: the panel box 539 x 308 at x 781 in desktop/Groups.png
 * (radius 20, 24 px inside), the AI panel rows 42 px high every 52 px, the right column 538 px
 * (the same width as the Home hero panel), the FAQ column 900 px (x 270-1170 in FieldServices.png).
 */

/* Split hero: copy, then the panel on the phone; copy left and a 538 px panel column from 1024. */
.fd-page .fd-page-split {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.fd-page .fd-page-split__copy > * {
	margin-block: 0;
}

.fd-page .fd-page-split__copy > * + * {
	margin-block-start: var(--wp--preset--spacing--24);
}

.fd-page .fd-page-split .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--12);
}

.fd-page .fd-page-split__aside {
	min-width: 0;
}

@media (min-width: 1024px) {
	.fd-page .fd-page-split {
		grid-template-columns: minmax(0, 1fr) 33.625rem;
		column-gap: var(--wp--preset--spacing--48);
		align-items: center;
	}
}

/* Panel: the dark rounded box of the heroes (label, rows or cells, footnote). */
.fd-page .fd-panel {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
	padding: var(--wp--preset--spacing--24);
	border: 1px solid var(--wp--preset--color--inverse-line);
	border-radius: var(--wp--custom--radius--xl);
	background: var(--wp--preset--color--inverse-raised);
	color: var(--wp--preset--color--text-on-inverse);
}

.fd-page .fd-panel > * {
	margin-block: 0;
}

.fd-page .fd-panel__label {
	color: var(--wp--preset--color--text-on-inverse-muted);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	line-height: 1.3333;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fd-page .fd-panel__rows {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fd-page .fd-panel__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--12);
	box-sizing: border-box;
	min-height: 2.625rem;
	margin: 0;
	padding: var(--wp--preset--spacing--8) 0.875rem;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--inverse-row);
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.4;
}

/* Rows on the page ground instead of the row fill (AI.png). */
.fd-page .fd-panel__rows--ground .fd-panel__row {
	background: var(--wp--preset--color--surface-inverse);
}

.fd-page .fd-panel__tag {
	flex: 0 0 auto;
	color: var(--wp--preset--color--cta-primary);
	font-weight: 600;
	white-space: nowrap;
}

.fd-page .fd-panel__tag--soft {
	color: var(--wp--preset--color--brand-on-dark-soft);
}

.fd-page .fd-panel__tag--plain {
	color: var(--wp--preset--color--text-on-inverse);
}

.fd-page .fd-panel__tag--muted {
	color: var(--wp--preset--color--text-on-inverse-muted);
	font-weight: 400;
}

.fd-page .fd-panel__row--highlight,
.fd-page .fd-panel__cell--highlight {
	background: var(--wp--preset--color--cta-primary);
	color: var(--wp--preset--color--text-on-cta);
}

.fd-page .fd-panel__row--highlight .fd-panel__tag,
.fd-page .fd-panel__cell--highlight .fd-panel__status {
	color: inherit;
}

/* Cells: the entity grid (Groups.png) and the depot cards (Logistics.png). */
.fd-page .fd-panel__cells {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--8);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.fd-page .fd-panel__cells--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.fd-page .fd-panel__cell {
	box-sizing: border-box;
	margin: 0;
	padding: var(--wp--preset--spacing--12);
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--inverse-row);
}

.fd-page .fd-panel__cell > * {
	margin-block: 0;
}

.fd-page .fd-panel__cell--dashed {
	border: 1px dashed var(--wp--preset--color--inverse-outline);
	background: transparent;
}

.fd-page .fd-panel__status {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.fd-page .fd-panel__status::before {
	content: "";
	flex: 0 0 auto;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: currentcolor;
}

.fd-page .fd-panel__status--live {
	color: var(--wp--preset--color--status-live);
}

.fd-page .fd-panel__status--pending {
	color: var(--wp--preset--color--cta-primary);
}

.fd-page .fd-panel__note {
	color: var(--wp--preset--color--text-on-inverse-muted);
	font-size: var(--wp--preset--font-size--label);
	line-height: 1.5;
}

/* Light card section: white cards with a hairline edge (FieldServices.png "What we build"). */
.fd-page.fd-page-cards .fd-card {
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--24);
	border: 1px solid var(--wp--preset--color--line-default);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface-raised);
}

/* FAQ: the 900 px reading column, centred. */
.fd-page.fd-page-faq .fd-faq {
	max-width: 56.25rem;
	margin-inline: auto;
}

/* Close band: centred heading, lead and buttons. */
.fd-page.fd-page-close {
	text-align: center;
}

.fd-page.fd-page-close > :where(:not(.alignfull)) {
	max-width: 45rem;
	margin-inline: auto;
}

.fd-page.fd-page-close .wp-block-buttons {
	justify-content: center;
}

