/*
 * Pricing page (WO-63, FD-217; Pricing.png desktop 1440 and mobile 390). The sections carry .fd-home, so
 * the drawn Home rules (package cards, FAQ, eyebrows, body-face buttons) apply as they do on Home; this
 * file adds what only the Pricing page draws. Every rule is scoped under .fd-pr (the page's sections),
 * because this sheet loads with core/group on every page. Phone first: the base rules are the 390 layout
 * and min-width queries at the token breakpoints (768, 1024) add the wider layouts. Colours are tokens.
 */

/* Billing swap without JavaScript: the server renders both sets; the checked radio picks one. Without
   :has() support both sets stay visible, each with its own label. */
@supports selector(:has(*)) {
	.fd-pr .fd-billing-monthly {
		display: none;
	}

	body:has(.fd-billing-toggle input[value="monthly"]:checked) .fd-pr .fd-billing-monthly {
		display: revert;
	}

	body:has(.fd-billing-toggle input[value="monthly"]:checked) .fd-pr .fd-billing-annual {
		display: none;
	}
}

/* Section rhythm: 88 px above and below at 390 and at 1440 (Pricing.png). */
.wp-block-group.fd-pr {
	padding-top: 5.5rem;
	padding-bottom: 5.5rem;
}

.wp-block-group.fd-pr.fd-pr-hero {
	padding-top: 4.9375rem;
}

.fd-pr.is-layout-constrained > * {
	margin-block: 0;
}

/* Numbered section headings ("1 · Implementation by Flydoo"): 22 px heading face, not the Home H2. */
.fd-home.fd-pr :is(h2.wp-block-heading.fd-pr__h2) {
	max-width: var(--wp--style--global--wide-size);
	font-size: 1.375rem;
	line-height: 1.27;
	letter-spacing: -0.01em;
}

.fd-pr .fd-pr__intro {
	margin: 0.625rem 0 0;
	color: var(--wp--preset--color--text-body);
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.6;
}

/* Hero: copy, then the calculator teaser card; side by side from 1024. */
.fd-pr-hero__grid {
	display: grid;
	gap: 2rem;
}

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

.fd-pr-hero__copy > * + * {
	margin-top: 1rem;
}

.fd-home.fd-pr .fd-pr-hero__title {
	font-size: 3.375rem;
	line-height: 1.06;
	letter-spacing: -0.03em;
}

.fd-pr .fd-pr-hero__copy > .fd-pr-hero__lead {
	margin-top: 1.125rem;
}

.fd-pr .fd-pr-hero__lead {
	max-width: 35rem;
	color: var(--wp--preset--color--text-body);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.53;
}

.fd-pr-teaser {
	position: relative;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	align-items: center;
	column-gap: 0.875rem;
	box-sizing: border-box;
	padding: 1.125rem 1.375rem;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface-inverse);
	color: var(--wp--preset--color--text-on-inverse);
}

.fd-pr-teaser > * {
	grid-column: 2;
	margin: 0;
}

.fd-pr-teaser::before {
	content: "";
	grid-row: 1 / span 2;
	grid-column: 1;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--cta-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' 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 12h1M15 12h0M9 16h1M12 16h1M15 16h0'/%3E%3C/svg%3E") center / 1.375rem no-repeat;
}

.fd-pr-teaser__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--standard-body);
	font-weight: 700;
	line-height: 1.4;
}

.fd-pr-teaser__title a {
	color: inherit;
	text-decoration: none;
}

/* The whole card is the link; the focus ring draws on the card. */
.fd-pr-teaser__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.fd-pr-teaser__title a:focus-visible {
	outline: 0;
}

.fd-pr-teaser__title a:focus-visible::after {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--brand-primary);
	outline-offset: var(--wp--custom--focus--offset);
}

.fd-pr-teaser__sub {
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 82%, transparent);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.fd-pr.is-layout-constrained > .fd-pr__h2 {
	margin-top: 4rem;
}

.fd-pr.is-layout-constrained > .fd-pr-packs {
	margin-top: 1.25rem;
}

/* Package cards: Home's .fd-home .fd-pack rules, plus the drawn Pricing details. */
.fd-pr .fd-pack__desc {
	margin-top: 0.25rem;
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.6;
}

.fd-home.fd-pr .fd-pack {
	padding: 1.875rem;
}

.fd-pr .fd-pack__list {
	gap: 0.5rem;
	line-height: 1.3;
}

.fd-home.fd-pr .fd-pack .wp-block-button__link {
	line-height: 1.5625;
}

.fd-pr .fd-pack--dark .wp-block-button .wp-block-button__link {
	border-color: var(--wp--preset--color--surface-raised);
	background-color: var(--wp--preset--color--surface-raised);
}

.fd-pr .fd-pack__badge {
	white-space: nowrap;
}

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

.fd-pr .fd-pack--dark .fd-pack__figure {
	color: var(--wp--preset--color--text-on-inverse);
}

/* Review V13: "Per phase" is a label, not a price: smaller than the two package prices. */
.fd-home.fd-pr .fd-pack__figure--label {
	font-size: var(--wp--preset--font-size--subheading);
	line-height: 1.3;
}

/* Licences */
.fd-pr-licences__head {
	display: grid;
	gap: 1.25rem;
	align-items: end;
}

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

.fd-pr .fd-pr-licences__copy .fd-pr__intro {
	max-width: 41rem;
}

.fd-pr-plans {
	display: grid;
	gap: 1rem;
}

.fd-pr.is-layout-constrained > .fd-pr-plans {
	margin-top: 1.5rem;
}

.fd-pr-plan {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 1.625rem;
	border: 1px solid var(--wp--preset--color--line-default);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface-raised);
}

.fd-pr-plan > *,
.fd-pr-plan__head > *,
.fd-pr-plan__price > * {
	margin: 0;
}

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

.fd-pr-plan--light {
	border-color: color-mix(in srgb, var(--wp--preset--color--method-ochre) 17%, var(--wp--preset--color--method-cream));
	background: color-mix(in srgb, var(--wp--preset--color--method-cream) 60%, var(--wp--preset--color--surface-raised));
}

.fd-pr-plan__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.fd-pr-plan__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.3125rem;
	font-weight: 700;
	line-height: 1.3;
}

.fd-pr-plan__badge {
	padding: 0.125rem 0.625rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--brand-soft);
	color: var(--wp--preset--color--brand-primary);
	font-size: var(--wp--preset--font-size--micro);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.6;
}

.fd-pr-plan__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.625rem;
	margin-top: 0.75rem !important;
}

.fd-pr-plan__figure {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.5625rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.fd-pr-plan__unit {
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
}

.fd-pr-plan__then {
	margin-top: 0.75rem !important;
	padding-bottom: 0.625rem;
	border-bottom: 1px solid var(--wp--preset--color--line-default);
	color: var(--wp--preset--color--text-body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.fd-pr-plan--light .fd-pr-plan__then {
	border-bottom-color: color-mix(in srgb, var(--wp--preset--color--method-ochre) 17%, var(--wp--preset--color--method-cream));
}

.fd-pr-plan__desc {
	margin-top: 0.75rem !important;
	color: var(--wp--preset--color--text-body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.57;
}

.fd-pr.is-layout-constrained > .fd-pr__notes {
	margin-top: 1.25rem;
}

.fd-pr .fd-pr__note {
	margin: 0;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.25;
}

/* Odoo.sh table and after go-live */
.fd-pr-hosting__grid {
	display: grid;
	gap: 2rem;
}

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

.fd-pr-sh {
	margin-top: 1rem !important;
	overflow-x: auto;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface-raised);
}

.fd-pr-sh__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1.25rem;
	border-top: 1px solid var(--wp--preset--color--line-default);
}

.fd-pr-sh__row > * {
	margin: 0;
	font-size: var(--wp--preset--font-size--standard-body);
	line-height: 1.3125;
}

.fd-pr-hosting .fd-pr__intro {
	margin-top: 1rem;
}

.fd-pr-sh__row--head {
	padding-block: 0.75rem;
	border-top: 0;
}

.fd-pr-sh__row--head > * {
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	line-height: 1.25;
}

.fd-pr-sh__amount {
	flex: none;
	font-weight: 700;
	text-align: end;
}

.fd-pr-sh__row--head .fd-pr-sh__amount {
	flex: 0 1 auto;
	max-width: 8rem;
}

/* Row 49 under the table, Q-110: small grey text, the range filled from the register (fd-priced). */
.fd-pr-hosting__col > .fd-pr-sh__note {
	margin-top: 1rem;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.35;
}

.fd-pr-hosting__after > .fd-pr-after {
	margin-top: 1rem;
}

.fd-pr-after {
	box-sizing: border-box;
	padding: 1.5rem;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface-raised);
}

.fd-pr-after > *,
.fd-pr-after__price > * {
	margin: 0;
}

.fd-pr-after__title {
	font-size: var(--wp--preset--font-size--standard-body);
	font-weight: 700;
	line-height: 1.5;
}

.fd-pr-after__figure,
.fd-pr-after__price {
	margin-top: 0.375rem !important;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--standard-body);
}

.fd-pr-after__price {
	display: flex;
	align-items: baseline;
	gap: 0.625rem;
}

.fd-pr-after__figure strong,
.fd-pr-after__amount {
	margin-inline-end: 0.375rem;
	color: var(--wp--preset--color--text-primary);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.25;
}

.fd-pr-after__amount {
	margin-inline-end: 0;
}

.fd-pr-after__desc {
	margin-top: 0.5rem !important;
	color: var(--wp--preset--color--text-body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.57;
}

/* Close band: centred heading, text and two buttons (Pricing.png). */
.fd-pr-close.is-layout-constrained > * {
	text-align: center;
}

.fd-home.fd-pr .fd-pr-close__title {
	max-width: none;
	font-size: clamp(2.5rem, 11vw, 2.6875rem);
	line-height: 1.12;
}

/* FAQ heading: 38 px in three lines at 390, two lines at 1440 as drawn ("… Frequently asked / questions"). */
.fd-home.fd-pr.fd-home-faq .fd-section-intro__heading {
	max-width: 47rem;
	margin-top: 1.375rem;
	font-size: 2.375rem !important;
	line-height: 1.066;
}

.fd-pr .fd-pr-close__text {
	max-width: 40rem;
	margin: 1.25rem auto 0 !important;
	color: color-mix(in srgb, var(--wp--preset--color--text-on-inverse) 82%, transparent);
	font-size: 1.125rem;
	line-height: 1.57;
}

.fd-pr .fd-pr-close__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.3125rem !important;
}

.fd-pr .fd-pr-close__actions .wp-block-button__link {
	min-height: 3.5rem;
	padding-inline: 1.625rem;
	font-size: 1.0625rem;
	font-weight: 700;
}

.fd-pr .fd-pr-close__light .wp-block-button__link {
	border-color: var(--wp--preset--color--surface-raised);
	background-color: var(--wp--preset--color--surface-raised);
	color: var(--wp--preset--color--text-primary);
}

@media (min-width: 768px) {
	.fd-home.fd-pr.fd-home-faq .fd-section-intro__heading {
		margin-top: 0.875rem;
		font-size: var(--wp--preset--font-size--home-heading) !important;
		line-height: 1.0714;
	}

	.fd-pr .fd-pr-close__actions {
		flex-direction: row;
		justify-content: center;
	}

	.fd-pr-licences__head {
		grid-template-columns: minmax(0, 1fr) auto;
	}


	.fd-pr-sh__row--head .fd-pr-sh__amount {
		max-width: none;
	}
}

@media (min-width: 1024px) {
	.fd-pr-hero__grid {
		grid-template-columns: minmax(0, 1fr) 22.75rem;
		align-items: end;
	}

	.fd-pr-plans {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.125rem;
	}

	.fd-home.fd-pr .fd-pack {
		padding: 1.75rem 1.875rem;
	}

	/* Pricing.png: the table column is 654 px and the after-go-live column 514 px of the 1200 px row. */
	.fd-pr-hosting__grid {
		grid-template-columns: minmax(0, 654fr) minmax(0, 514fr);
		gap: 2rem;
	}
}
