/**
 * Pricing page (patterns/page-pricing.php). Loaded only on pages that contain
 * the .fh-pricing group. Values from the FoundHint Pricing design: its orange,
 * its 1240px page width and its spacing, scoped to this page.
 */

.fh-pricing {
	--wp--preset--color--accent: #FF6B35;
	--wp--preset--color--accent-hover: #F25A22;
	--wp--preset--color--accent-dark: #C2410C;
	--wp--preset--color--accent-text: #C2410C;
	--wp--preset--color--mist: #FAFAFB;
	color: var(--wp--preset--color--body);
	font-size: 16px;
	line-height: normal;
}

.fh-pricing :where(h1, h2, h3) {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	line-height: normal;
	letter-spacing: -0.02em;
}

.fh-pricing p { text-wrap: pretty; }

.fh-pricing a:where(:not(.wp-element-button, .fhb-plan__button, .fhb-buy-bar__button)) {
	color: var(--wp--preset--color--accent-dark);
	text-decoration: none;
}

.fh-pricing a:where(:not(.wp-element-button, .fhb-plan__button, .fhb-buy-bar__button)):hover {
	color: #9A3412;
	text-decoration: underline;
}

/* Sections: 1240px wide pages with 24px sides; each sets its own spacing. */
.fh-pricing .fhb-section > .fhb-section__inner { max-width: 1192px; }
.fh-pricing .fhb-section.has-border-top { border-top-color: var(--wp--preset--color--border); }
.fh-pricing .fhb-section.has-border-bottom { border-bottom-color: var(--wp--preset--color--border); }
.fh-pricing .fhb-section.is-bg-cream.has-border-top { border-top-color: #F0E7E1; }
.fh-pricing .fhb-section.is-bg-cream.has-border-bottom { border-bottom-color: #F0E7E1; }

.fh-pricing .fhb-section__inner > *,
.fh-pricing .fhb-section__inner > * + * { margin-block: 0; }
.fh-pricing .fhb-section__inner > p:not([class*="is-style-"]),
.fh-pricing .fhb-section__inner > h2 { max-width: none; }

.fh-pricing .fhb-section h2.wp-block-heading {
	font-size: clamp(28px, 3.4vw, 36px);
	font-weight: 800;
}

.fh-pricing .fhb-section__inner > h2 + p {
	margin-top: 10px;
	font-size: 17px;
}

/* Small print and section labels. */
.fh-pricing p.fh-pr-small {
	line-height: normal;
	color: var(--wp--preset--color--muted);
	font-size: 13.5px;
}

.fh-pricing p.fh-pr-eyebrow {
	line-height: normal;
	color: var(--wp--preset--color--accent-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.fh-pricing p.fh-pr-label {
	line-height: normal;
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

/* Buttons. */
.fh-pricing .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.fh-pricing .wp-block-button {
	display: flex;
	margin: 0;
}

.fh-pricing .wp-block-button > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 20px;
	background: var(--wp--preset--color--accent);
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 15px;
	font-weight: 700;
	line-height: normal;
	text-decoration: none;
}

.fh-pricing .wp-block-button > .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-hover);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.fh-pricing .wp-block-button.fh-btn-arrow > .wp-block-button__link::after { margin-left: 0; }

.fh-pricing .wp-block-button.is-style-dark > .wp-block-button__link {
	background: var(--wp--preset--color--ink);
	color: #fff;
}

.fh-pricing .wp-block-button.is-style-dark > .wp-block-button__link:hover {
	background: #2A2F3A;
	color: #fff;
}

.fh-pricing .wp-block-button.is-style-outline-dark > .wp-block-button__link {
	padding: 0 22px;
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
}

.fh-pricing .wp-block-button.is-style-outline-dark > .wp-block-button__link:hover { background: rgba(20, 23, 31, 0.08); }

.fh-pricing .wp-block-button.is-style-link > .wp-block-button__link {
	min-height: 0;
	padding: 0;
	background: none;
	color: var(--wp--preset--color--accent-dark);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
}

.fh-pricing .wp-block-button.is-style-link > .wp-block-button__link:hover {
	background: none;
	color: #9A3412;
	text-decoration: underline;
}

/* Lists with green ticks. */
.fh-pricing ul:is(.fh-pr-trust, .fh-pr-ticks, .fh-pr-lines) {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--ink);
}

.fh-pricing ul:is(.fh-pr-trust, .fh-pr-ticks, .fh-pr-lines) > li {
	display: flex;
	margin: 0;
}

.fh-pricing ul:is(.fh-pr-trust, .fh-pr-ticks, .fh-pr-lines) > li::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: url("../icons/ui/check.svg") center / contain no-repeat;
}

/* 1. Opening: title, introduction and the billing switch. */
.fh-pricing .fh-pr-hero { padding-block: 72px 48px; }

.fh-pricing .fh-pr-hero > .fhb-section__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.fh-pricing .fh-pr-hero p.fh-pr-eyebrow { letter-spacing: 0.12em; }

.fh-pricing .fh-pr-hero h1.wp-block-heading {
	max-width: 760px;
	margin-top: 14px;
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 800;
	line-height: 1.08;
	text-wrap: balance;
}

.fh-pricing .fh-pr-hero p.fh-pr-lead {
	max-width: 620px;
	margin-top: 18px;
	font-size: 18px;
	line-height: 1.65;
	text-wrap: balance;
}

.fh-pricing .fh-pr-hero .fhb-billing { margin-top: 36px; }

/* 2. Plans, the reassurance bar and the currency note. */
.fh-pricing .fh-pr-plans {
	padding-block: 48px;
	scroll-margin-top: 80px;
}

.fh-pricing .fh-pr-plans .fhb-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important; }

.fh-pricing ul.fh-pr-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin-top: 32px;
	padding: 18px 22px;
	background: #FAFAFB;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	font-size: 15px;
	font-weight: 500;
}

.fh-pricing ul.fh-pr-trust > li {
	align-items: center;
	gap: 8px;
}

.fh-pricing .fh-pr-plans p.fh-pr-small { margin-top: 10px; }

/* 3. Money-back guarantee and support. */
.fh-pricing .fh-pr-assure { padding-block: 56px; }

.fh-pricing .fh-pr-assure .fhb-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)) !important; }

.fh-pricing .fh-pr-assure .fhb-card {
	gap: 14px;
	padding: 32px;
	border-color: var(--wp--preset--color--border);
	box-shadow: none;
}

.fh-pricing .fh-pr-assure .fhb-card.is-variant-cream {
	background: #FFF8F4;
	border-color: #F0E7E1;
}

.fh-pricing .fh-pr-assure .fhb-card__icon img {
	width: 40px;
	height: 40px;
}

.fh-pricing .fh-pr-assure .fhb-card__body { gap: 14px; }

.fh-pricing .fh-pr-assure .fhb-card__body > * { margin: 0; }

.fh-pricing .fh-pr-assure .fhb-card__body > h2.wp-block-heading {
	font-size: 28px;
	line-height: 1.2;
}

.fh-pricing .fh-pr-assure .fhb-card__body > p:not([class*="fh-pr-"], .is-style-more-link) {
	font-size: 16.5px;
	line-height: 1.7;
}

.fh-pricing .fhb-card .wp-block-button,
.fh-pricing .fhb-card .wp-block-button__link {
	width: auto;
	justify-content: flex-start;
	text-align: left;
}

.fh-pricing .fh-pr-assure .fhb-card .wp-block-buttons {
	gap: 12px 20px;
	margin-top: 6px;
	padding-top: 0;
}

.fh-pricing ul.fh-pr-ticks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px 20px;
	font-size: 15px;
}

.fh-pricing ul.fh-pr-ticks > li { gap: 9px; }
.fh-pricing ul.fh-pr-ticks > li::before { margin-top: 3px; }

/* 4. Comparison table. */
.fh-pricing .fh-pr-compare { padding-block: 64px; }
.fh-pricing .fh-pr-compare > .fhb-section__inner { max-width: 912px; }

.fh-pricing .fh-pr-compare .wp-block-table { margin-top: 28px; }
.fh-pricing .fh-pr-compare p.fh-pr-small { margin-top: 12px; }

/* 5. Reviews. */
.fh-pricing .fh-pr-reviews { padding-block: 72px; }

.fh-pricing .fh-pr-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}

.fh-pricing .fh-pr-head > * { margin: 0; }
.fh-pricing .fh-pr-head > .wp-block-group > * { margin: 0; }

.fh-pricing .fh-pr-head > .wp-block-group > h2 + p {
	margin-top: 10px;
	font-size: 17px;
}

.fh-pricing p.fh-pr-rating {
	line-height: normal;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	font-weight: 600;
}

.fh-pricing p.fh-pr-rating::before {
	content: "";
	flex: none;
	width: 83px;
	height: 15px;
	background: url("../icons/ui/star-rating.svg") left center / 17px 15px repeat-x;
}

.fh-pricing .fh-pr-reviews .fhb-grid { margin-top: 32px; }
.fh-pricing .fh-pr-reviews p.fh-pr-small { margin-top: 14px; }

/* 6. Pro features in a ruled grid. */
.fh-pricing .fh-pr-pro { padding-block: 72px; }

.fh-pricing .fh-pr-pro .fhb-section__inner > h2.wp-block-heading {
	max-width: 720px;
	line-height: 1.15;
}

.fh-pricing .fh-pr-pro .fhb-section__inner > h2 + p {
	max-width: 680px;
	margin-top: 12px;
	line-height: 1.65;
}

.fh-pricing .fhb-grid.fh-pr-cells {
	gap: 0;
	margin-top: 32px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
	border-top: 1px solid var(--wp--preset--color--border);
	border-left: 1px solid var(--wp--preset--color--border);
}

.fh-pricing .fh-pr-cells > .fhb-card {
	gap: 16px;
	padding: 26px;
	border: 0;
	border-right: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
}

.fh-pricing .fh-pr-cells .fhb-card__icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
}

.fh-pricing .fh-pr-cells .fhb-card__body > h3.wp-block-heading {
	font-size: 19px;
	font-weight: 700;
	line-height: normal;
}

.fh-pricing .fh-pr-cells .fhb-card__body > p {
	margin-top: 8px;
	font-size: 15.5px;
	line-height: 1.6;
}

/* 7. Which plan fits. */
.fh-pricing .fh-pr-fit { padding-block: 72px; }

.fh-pricing .fh-pr-fit .fhb-grid {
	margin-top: 28px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
}

.fh-pricing .fh-pr-fit .fhb-card {
	gap: 10px;
	padding: 26px;
	border-color: #EDE3DD;
	box-shadow: none;
}

.fh-pricing .fh-pr-fit .fhb-card__body { gap: 10px; }
.fh-pricing .fh-pr-fit .fhb-card__body > * { margin: 0; }

.fh-pricing .fh-pr-fit p.fh-pr-who {
	line-height: normal;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	font-weight: 600;
}

.fh-pricing .fh-pr-fit .fhb-card__body > h3.wp-block-heading {
	font-size: 22px;
	font-weight: 800;
	line-height: normal;
}

.fh-pricing .fh-pr-fit .fhb-card__body > p:not([class*="fh-pr-"], .is-style-more-link) {
	font-size: 15.5px;
	line-height: 1.6;
}

.fh-pricing .fh-pr-fit .fhb-card__body > p.is-style-more-link {
	margin-top: auto;
	padding-top: 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: normal;
}

.fh-pricing .fh-pr-fit .fhb-card__body > p.is-style-more-link a { color: var(--wp--preset--color--accent-dark); }

/* 8. Agencies. */
.fh-pricing .fh-pr-agency { padding-block: 72px; }

.fh-pricing .fh-pr-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 32px 56px;
	align-items: start;
}

.fh-pricing .fh-pr-split > *,
.fh-pricing .fh-pr-split > .wp-block-group > * { margin: 0; }

.fh-pricing .fh-pr-split > .wp-block-group > h2.wp-block-heading {
	margin-top: 10px;
	line-height: 1.15;
}

.fh-pricing .fh-pr-split > .wp-block-group > h2 + p {
	margin-top: 14px;
	font-size: 17px;
	line-height: 1.65;
}

.fh-pricing .fh-pr-split > .wp-block-group > .wp-block-buttons { margin-top: 24px; }

.fh-pricing ul.fh-pr-lines {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	border-top: 1px solid var(--wp--preset--color--border);
}

.fh-pricing ul.fh-pr-lines > li {
	align-items: center;
	gap: 10px;
	padding: 16px 4px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: 16px;
	font-weight: 500;
}

.fh-pricing ul.fh-pr-lines > li::before {
	width: 17px;
	height: 17px;
}

/* 9. How billing works. */
.fh-pricing .fh-pr-billing { padding-block: 64px; }

.fh-pricing .fh-pr-billing .fhb-section__inner > h2.wp-block-heading { font-size: clamp(26px, 3vw, 32px); }

.fh-pricing .fh-pr-billing .fhb-grid {
	margin-top: 24px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)) !important;
}

.fh-pricing .fh-pr-billing .fhb-card {
	padding: 28px;
	border-color: var(--wp--preset--color--border);
	box-shadow: none;
}

.fh-pricing .fh-pr-billing .fhb-card__body > * { margin: 0; }

.fh-pricing .fh-pr-billing .fhb-card__body > h3.wp-block-heading {
	margin-top: 8px;
	font-size: 21px;
	font-weight: 800;
	line-height: normal;
}

.fh-pricing .fh-pr-billing .fhb-card__body > p:not([class*="fh-pr-"], .is-style-more-link) {
	margin-top: 10px;
	font-size: 15.5px;
	line-height: 1.65;
}

/* 10. Questions. */
.fh-pricing .fh-pr-faq { padding-block: 72px; }
.fh-pricing .fh-pr-faq > .fhb-section__inner { max-width: 812px; }
.fh-pricing .fh-pr-faq .fhb-faq { margin-top: 24px; }

.fh-pricing .fh-pr-faq .fhb-faq > .wp-block-details > :not(summary) {
	font-size: 16px;
	line-height: 1.7;
}

/* 11. Closing call to action. */
.fh-pricing .fh-pr-cta { padding-block: 64px; }

.fh-pricing .fh-pr-cta .fhb-section__inner > h2.wp-block-heading { font-size: clamp(28px, 3.6vw, 40px); }

.fh-pricing .fh-pr-cta .fhb-section__inner > h2 + p {
	max-width: 560px;
	margin-top: 12px;
	color: var(--wp--preset--color--ink);
	font-size: 17.5px;
	line-height: 1.6;
}

.fh-pricing .fh-pr-cta .wp-block-buttons { margin-top: 26px; }
.fh-pricing .fh-pr-cta .wp-block-button > .wp-block-button__link { padding-inline: 22px; }

.fh-pricing .fhb-grid.fh-pr-assurances {
	gap: 10px 28px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid rgba(20, 23, 31, 0.25);
}

.fh-pricing .fh-pr-assurances > .fhb-card {
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	font-weight: 600;
}

.fh-pricing .fh-pr-assurances .fhb-card__icon img {
	width: 17px;
	height: 17px;
}

.fh-pricing .fh-pr-assurances .fhb-card__body > p {
	font-size: 15px;
	line-height: normal;
}

/* Phones: the plan grid and the cards keep the design's own breakpoints. */
@media (max-width: 781px) {
	.fh-pricing .fhb-section { padding-inline: 24px; }
}
