/*
 * WP Mobile App Manager child theme: site styles.
 *
 * Tokens come from theme.json (settings.color.palette "wpmam-*" and
 * settings.custom.wpmam, exposed as --wp--custom--wpmam--*). Change values there.
 * Sections: base, layout helpers, buttons, header, home sections, support page, footer, responsive.
 */

/* ---------- Base ---------- */

:root {
	--wpmam-bg: var(--wp--preset--color--wpmam-page-bg, #faf9f5);
	--wpmam-text: var(--wp--preset--color--wpmam-text, #505050);
	--wpmam-heading: var(--wp--preset--color--wpmam-heading, #2b2926);
	--wpmam-accent: var(--wp--preset--color--wpmam-button-bg, #dd665a);
	--wpmam-accent-hover: var(--wp--preset--color--wpmam-button-hover, #c85549);
	--wpmam-accent-soft: var(--wp--preset--color--wpmam-accent-soft, #fbebe8);
	--wpmam-surface: var(--wp--preset--color--wpmam-surface, #ffffff);
	--wpmam-muted-bg: var(--wp--preset--color--wpmam-muted-bg, #f3f0e8);
	--wpmam-border: var(--wp--preset--color--wpmam-border, #e7e2d8);
	--wpmam-width: var(--wp--custom--wpmam--content-width, 1140px);
	--wpmam-gutter: var(--wp--custom--wpmam--gutter, clamp(16px, 4vw, 32px));
	--wpmam-section: var(--wp--custom--wpmam--section-space, clamp(64px, 8vw, 104px));
	--wpmam-radius: var(--wp--custom--wpmam--radius, 16px);
	--wpmam-radius-sm: var(--wp--custom--wpmam--radius-small, 10px);
	--wpmam-shadow: var(--wp--custom--wpmam--shadow, 0 8px 24px rgba(43, 41, 38, 0.06));
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: clip;
}

/* Anchored sections land below the sticky header. */
.wpmam-home [id] {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 88px);
}

/* ---------- Layout helpers ---------- */

.wpmam-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--wpmam-width) + 2 * var(--wpmam-gutter));
	margin-inline: auto !important;
	padding-inline: var(--wpmam-gutter);
}

.wpmam-container--narrow {
	max-width: calc(820px + 2 * var(--wpmam-gutter));
}

.wpmam-home {
	margin: 0;
	padding: 0;
}

/* Full-bleed bands: the parent gives .alignfull side padding; .wpmam-container sets the gutters. */
.wp-site-blocks .wpmam-home.alignfull,
.wp-site-blocks .wpmam-header.alignfull,
.wp-site-blocks .wpmam-footer.alignfull {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.wpmam-home > *,
.wpmam-home .wpmam-section {
	margin-block: 0;
}

.wpmam-section {
	padding-block: var(--wpmam-section);
}

.wpmam-section--tight {
	padding-block: calc(var(--wpmam-section) * 0.5);
}

.wpmam-section--muted {
	background: var(--wpmam-muted-bg);
}

.wpmam-center {
	text-align: center;
}

.wpmam-home h2.wpmam-section__title {
	max-width: 760px;
	margin: 0 auto clamp(32px, 4vw, 48px);
	font-size: var(--wp--custom--wpmam--title-size, 2.25rem);
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-align: center;
	text-wrap: balance;
}

.wpmam-home .wpmam-lead {
	font-size: var(--wp--custom--wpmam--text-lead, 1.1875rem);
	line-height: 1.65;
}

.wpmam-home .wpmam-note {
	max-width: 760px;
	margin: clamp(28px, 3vw, 40px) auto 0;
	font-size: var(--wp--custom--wpmam--text-small, 0.9375rem);
	text-align: center;
	text-wrap: pretty;
}

.wpmam-home .wpmam-eyebrow {
	margin: 0 0 6px;
	color: var(--wpmam-accent-hover);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Grids: 4 up on desktop, 2 up on tablet, 1 up on phone (see Responsive). */
.wpmam-home .wp-block-group.wpmam-grid {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
	margin-top: 0;
}

.wpmam-home .wp-block-group.wpmam-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wpmam-home .wp-block-group.wpmam-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wpmam-home .wpmam-grid > * {
	margin: 0;
}

/* Cards */
.wpmam-home .wpmam-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: clamp(22px, 2.4vw, 28px);
	border: 1px solid var(--wpmam-border);
	border-radius: var(--wpmam-radius);
	background: var(--wpmam-surface);
	box-shadow: var(--wpmam-shadow);
}

.wpmam-home .wpmam-card > * {
	margin-block: 0;
}

.wpmam-home h3.wpmam-card__title {
	margin: 0 0 8px;
	font-size: var(--wp--custom--wpmam--card-title-size, 1.25rem);
	line-height: 1.3;
}

/* ---------- Buttons ---------- */

.wp-block-button.wpmam-btn-primary .wp-block-button__link,
.wp-block-button.wpmam-btn-secondary .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid var(--wpmam-accent);
	border-radius: var(--wpmam-radius-sm);
	font-family: var(--wp--custom--wpmam--font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wp-block-button.wpmam-btn-primary .wp-block-button__link {
	background: var(--wpmam-accent);
	color: #ffffff;
}

.wp-block-button.wpmam-btn-primary .wp-block-button__link:hover,
.wp-block-button.wpmam-btn-primary .wp-block-button__link:focus-visible {
	border-color: var(--wpmam-accent-hover);
	background: var(--wpmam-accent-hover);
	color: #ffffff;
}

.wp-block-button.wpmam-btn-secondary .wp-block-button__link {
	border-color: var(--wpmam-border);
	background: var(--wpmam-surface);
	color: var(--wpmam-heading);
}

.wp-block-button.wpmam-btn-secondary .wp-block-button__link:hover,
.wp-block-button.wpmam-btn-secondary .wp-block-button__link:focus-visible {
	border-color: var(--wpmam-accent);
	color: var(--wpmam-heading);
}

.wp-block-button.wpmam-btn-small .wp-block-button__link {
	min-height: 40px;
	padding: 8px 18px;
	font-size: 0.9375rem;
}

/* ---------- Header ---------- */

header.wp-block-template-part:has(.wpmam-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.wpmam-header {
	border-bottom: 1px solid var(--wpmam-border);
	/* Solid, no backdrop-filter: a filter would trap the fixed mobile overlay inside the header. */
	background: var(--wpmam-bg);
}

.wpmam-header .wpmam-header__inner {
	gap: 24px;
	min-height: 72px;
}

.wpmam-header .wpmam-header__logo {
	flex: 0 0 auto;
	line-height: 0;
}

.wpmam-header .wpmam-header__logo img {
	width: 132px;
	height: auto;
}

.wpmam-header .wpmam-header__actions {
	gap: clamp(12px, 2.2vw, 32px);
}

.wpmam-header .wpmam-nav {
	gap: clamp(16px, 2vw, 28px);
	font-family: var(--wp--custom--wpmam--font-body);
	font-size: 0.9375rem;
	font-weight: 500;
}

.wpmam-header .wpmam-nav .wp-block-navigation__container {
	gap: clamp(16px, 2vw, 28px);
}

.wpmam-header .wpmam-nav a {
	color: var(--wpmam-heading);
	text-decoration: none;
}

.wpmam-header .wpmam-nav a:hover,
.wpmam-header .wpmam-nav a:focus-visible {
	color: var(--wpmam-accent-hover);
}

.wpmam-header .wpmam-header__cta {
	flex: 0 0 auto;
	margin: 0;
}

.wpmam-header .wpmam-header__cta .wp-block-button__link {
	white-space: nowrap;
}

/* Mobile overlay menu */
.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	padding: 24px var(--wpmam-gutter);
	background: var(--wpmam-bg);
	color: var(--wpmam-heading);
}

.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px;
}

.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
}

.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 20px;
	font-size: 1.375rem;
}

.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container-open,
.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container-close {
	color: var(--wpmam-heading);
}

/* ---------- Hero ---------- */

.wpmam-hero {
	padding-block: clamp(40px, 6vw, 88px) clamp(16px, 2vw, 24px);
}

.wpmam-hero .wpmam-hero__columns {
	gap: clamp(32px, 5vw, 64px);
	margin-block: 0;
}

.wpmam-home h1.wpmam-hero__title {
	margin: 0 0 20px;
	font-size: var(--wp--custom--wpmam--display-size, 3.25rem);
	line-height: 1.1;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.wpmam-hero .wpmam-lead {
	max-width: 560px;
	margin: 0 0 32px;
}

.wpmam-hero .wpmam-hero__buttons {
	gap: 12px;
	margin: 0 0 16px;
}

.wpmam-hero .wpmam-hero__note {
	margin: 0;
	font-size: var(--wp--custom--wpmam--text-small, 0.9375rem);
}

.wpmam-hero .wpmam-hero__note::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--wpmam-accent);
	vertical-align: 0.1em;
}

.wpmam-hero .wpmam-hero__image {
	margin: 0;
}

.wpmam-hero .wpmam-hero__image img {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	/* The source image ends in a white strip; crop it off. */
	aspect-ratio: 800 / 764;
	object-fit: cover;
	object-position: top;
	margin-inline: auto;
	border: 1px solid var(--wpmam-border);
	border-radius: 24px;
	box-shadow: var(--wpmam-shadow);
}

/* ---------- Platform tiles ---------- */

.wpmam-tile .wpmam-tile__plugins {
	margin-bottom: 14px;
	color: var(--wpmam-accent-hover);
	font-size: 0.875rem;
	font-weight: 600;
}

.wpmam-tile .wpmam-tile__text {
	flex: 1 1 auto;
	margin-bottom: 20px;
	font-size: var(--wp--custom--wpmam--text-small, 0.9375rem);
	line-height: 1.6;
}

.wpmam-tile .wpmam-tile__price {
	box-sizing: border-box;
	/* Two lines reserved so the dividers line up across tiles. */
	min-height: calc(2.9em + 17px);
	padding-top: 16px;
	border-top: 1px solid var(--wpmam-border);
	color: var(--wpmam-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
}

.wpmam-tile .wpmam-tile__price--pending {
	color: var(--wpmam-text);
	font-style: italic;
	font-weight: 500;
}

.wpmam-tile .wpmam-tile__link,
.wpmam-home .wpmam-arrow-link {
	margin-top: 14px;
	font-size: 0.9375rem;
	font-weight: 600;
}

.wpmam-tile .wpmam-tile__link a,
.wpmam-home .wpmam-arrow-link a {
	color: var(--wpmam-accent-hover);
	text-decoration: none;
}

.wpmam-tile .wpmam-tile__link a::after,
.wpmam-home .wpmam-arrow-link a::after {
	content: "\2192";
	display: inline-block;
	margin-left: 6px;
	transition: transform 0.15s ease;
}

.wpmam-tile .wpmam-tile__link a:hover::after,
.wpmam-home .wpmam-arrow-link a:hover::after {
	transform: translateX(3px);
}

/* Make the whole tile clickable through its Learn more link. */
.wpmam-home .wpmam-tile {
	position: relative;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.wpmam-tile .wpmam-tile__link a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wpmam-home .wpmam-tile:hover {
	border-color: var(--wpmam-accent);
	transform: translateY(-2px);
}

/* ---------- How it works ---------- */

.wpmam-steps .wpmam-step {
	margin: 0;
}

.wpmam-steps .wpmam-step > * {
	margin-block: 0;
}

.wpmam-steps .wpmam-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 18px !important;
	border: 1px solid var(--wpmam-accent);
	border-radius: 50%;
	background: var(--wpmam-surface);
	color: var(--wpmam-accent-hover);
	font-family: var(--wp--custom--wpmam--font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1;
}

.wpmam-steps .wpmam-step p:not(.wpmam-step__number) {
	font-size: var(--wp--custom--wpmam--text-small, 0.9375rem);
	line-height: 1.6;
}

/* ---------- Sync ---------- */

.wpmam-sync .wpmam-lead {
	margin: 0 auto 32px;
}

.wpmam-home ul.wpmam-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wpmam-home ul.wpmam-pills li {
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--wpmam-border);
	border-radius: 999px;
	background: var(--wpmam-surface);
	color: var(--wpmam-heading);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
}

/* ---------- Proof ---------- */

.wpmam-proof .wpmam-apps {
	margin: 0 0 clamp(24px, 3vw, 32px);
}

.wpmam-proof .wpmam-app-card {
	min-width: 240px;
	align-items: center;
	text-align: center;
}

.wpmam-proof .wpmam-app-card h3.wpmam-card__title {
	margin: 0;
}

.wpmam-proof .wpmam-quote__text {
	flex: 1 1 auto;
	margin-bottom: 18px;
	color: var(--wpmam-heading);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.wpmam-proof .wpmam-quote__cite {
	font-size: 0.875rem;
	font-weight: 600;
}

.wpmam-proof .wpmam-quote__cite::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 2px;
	margin-right: 10px;
	background: var(--wpmam-accent);
	vertical-align: middle;
}

/* ---------- Pricing table ---------- */

.wpmam-home .wpmam-pricing-table {
	margin: 0;
	overflow-x: auto;
	border: 1px solid var(--wpmam-border);
	border-radius: var(--wpmam-radius);
	background: var(--wpmam-surface);
	box-shadow: var(--wpmam-shadow);
}

.wpmam-home .wpmam-pricing-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.wpmam-home .wpmam-pricing-table thead {
	border-bottom: 1px solid var(--wpmam-border);
}

.wpmam-home .wpmam-pricing-table th,
.wpmam-home .wpmam-pricing-table td {
	padding: 16px 20px;
	border: 0;
	text-align: left;
	vertical-align: top;
}

.wpmam-home .wpmam-pricing-table th {
	background: var(--wpmam-muted-bg);
	color: var(--wpmam-heading);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wpmam-home .wpmam-pricing-table tbody tr + tr {
	border-top: 1px solid var(--wpmam-border);
}

.wpmam-home .wpmam-pricing-table td:first-child {
	color: var(--wpmam-heading);
	font-weight: 600;
}

.wpmam-home .wpmam-pricing-table td:nth-child(2),
.wpmam-home .wpmam-pricing-table td:nth-child(3) {
	color: var(--wpmam-heading);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wpmam-home .wpmam-pricing-table td:first-child {
	width: 26%;
}

.wpmam-home .wpmam-pricing-table td:nth-child(2),
.wpmam-home .wpmam-pricing-table td:nth-child(3) {
	width: 13%;
}

.wpmam-pricing .wpmam-note {
	margin-top: 24px;
}

.wpmam-pricing .wpmam-arrow-link {
	margin-top: 12px;
}

/* ---------- Done for you band ---------- */

.wpmam-custom .wpmam-band {
	padding: clamp(32px, 5vw, 56px);
	border-radius: var(--wpmam-radius);
	background: var(--wp--preset--color--ti-bg-inv, #1d1a1a);
	color: #e9e6df;
	text-align: center;
}

.wpmam-custom .wpmam-band > * {
	margin-block: 0;
}

.wpmam-home h2.wpmam-band__title {
	margin: 0 0 14px;
	color: #ffffff;
	font-size: var(--wp--custom--wpmam--title-size, 2.25rem);
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.wpmam-custom .wpmam-band__text {
	max-width: 680px;
	margin: 0 auto 28px !important;
	color: #e9e6df;
	text-wrap: pretty;
}

.wpmam-custom .wpmam-band__buttons {
	justify-content: center;
}

/* ---------- FAQ ---------- */

.wpmam-faq .wpmam-faq__item {
	margin: 0;
	border-bottom: 1px solid var(--wpmam-border);
}

.wpmam-faq .wpmam-faq__item:first-of-type {
	border-top: 1px solid var(--wpmam-border);
}

.wpmam-faq .wpmam-faq__item summary {
	position: relative;
	padding: 20px 40px 20px 0;
	color: var(--wpmam-heading);
	font-family: var(--wp--custom--wpmam--font-heading);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.wpmam-faq .wpmam-faq__item summary::-webkit-details-marker {
	display: none;
}

.wpmam-faq .wpmam-faq__item summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 4px;
	color: var(--wpmam-accent-hover);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-50%);
}

.wpmam-faq .wpmam-faq__item[open] summary::after {
	content: "\2212";
}

.wpmam-faq .wpmam-faq__item summary:focus-visible {
	outline: 2px solid var(--wpmam-accent);
	outline-offset: 4px;
}

.wpmam-faq .wpmam-faq__item > p {
	margin: 0;
	padding: 0 40px 22px 0;
}

/* ---------- Closing ---------- */

.wpmam-closing .wpmam-section__title {
	margin-bottom: 28px;
}

.wpmam-closing .wpmam-closing__buttons {
	gap: 12px;
}

/* ---------- Support page (templates/page-supportcandy.html) ---------- */

.wpmam-home .wp-block-group.wpmam-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpmam-landing .wpmam-hero .wpmam-eyebrow {
	margin-bottom: 14px;
}

/* Phone frames: a real app screenshot, or a labelled placeholder until one exists. */
.wpmam-landing .wpmam-phones {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: clamp(14px, 2.4vw, 28px);
}

.wpmam-landing .wpmam-phone {
	box-sizing: border-box;
	flex: 0 1 236px;
	min-width: 0;
	margin: 0;
	padding: 8px;
	border-radius: 40px;
	background: var(--wpmam-heading);
	box-shadow: 0 1px 2px rgba(43, 41, 38, 0.08), 0 18px 40px rgba(43, 41, 38, 0.16);
}

.wpmam-landing .wpmam-phones > .wpmam-phone + .wpmam-phone {
	margin-top: 48px;
}

.wpmam-landing .wpmam-phone img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 32px;
}

/* Same proportions as the screenshots (519 x 1130), so frames line up. */
.wpmam-landing .wpmam-phone--placeholder .wpmam-phone__label {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 519 / 1130;
	margin: 0;
	padding: 16px;
	border-radius: 32px;
	background: var(--wpmam-muted-bg);
	color: var(--wpmam-text);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	text-wrap: balance;
}

.wpmam-landing .wpmam-phone--small {
	flex: 0 0 150px;
	padding: 6px;
	border-radius: 28px;
}

.wpmam-landing .wpmam-phone--small .wpmam-phone__label {
	padding: 12px;
	border-radius: 22px;
	font-size: 0.8125rem;
}

/* Customers / agents cards: text beside a phone slot. */
.wpmam-landing .wpmam-role {
	flex-direction: row;
	align-items: flex-start;
	gap: clamp(20px, 3vw, 32px);
}

.wpmam-landing .wpmam-role__text {
	flex: 1 1 auto;
	min-width: 0;
}

.wpmam-landing .wpmam-role__text > * {
	margin-block: 0;
}

.wpmam-home ul.wpmam-checklist {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.wpmam-home ul.wpmam-checklist li {
	position: relative;
	margin: 0;
	padding-left: 30px;
	font-size: var(--wp--custom--wpmam--text-small, 0.9375rem);
	line-height: 1.6;
}

.wpmam-home ul.wpmam-checklist li + li {
	margin-top: 10px;
}

.wpmam-home ul.wpmam-checklist li::before {
	content: "";
	position: absolute;
	top: 0.25em;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wpmam-accent-soft);
}

.wpmam-home ul.wpmam-checklist li::after {
	content: "";
	position: absolute;
	top: calc(0.25em + 4px);
	left: 7px;
	width: 4px;
	height: 8px;
	border: solid var(--wpmam-accent-hover);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Built for how help desks work */
.wpmam-features .wpmam-feature p {
	font-size: var(--wp--custom--wpmam--text-small, 0.9375rem);
	line-height: 1.6;
}

/* Single price card */
.wpmam-landing .wpmam-price-card {
	max-width: 460px;
	margin: 0 auto;
	padding: clamp(28px, 4vw, 40px);
	align-items: center;
	text-align: center;
}

.wpmam-landing .wpmam-price-card__amount {
	margin-bottom: 14px !important;
	color: var(--wpmam-heading);
	font-family: var(--wp--custom--wpmam--font-heading);
	font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.wpmam-landing .wpmam-price-card__amount span {
	color: var(--wpmam-text);
	font-family: var(--wp--custom--wpmam--font-body);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0;
}

.wpmam-landing .wpmam-price-card__trial {
	margin-bottom: 6px !important;
	color: var(--wpmam-heading);
	font-weight: 600;
}

.wpmam-landing .wpmam-price-card__text {
	margin-bottom: 26px !important;
	font-size: var(--wp--custom--wpmam--text-small, 0.9375rem);
	text-wrap: pretty;
}

.wpmam-landing .wpmam-price-card__buttons {
	justify-content: center;
}

.wpmam-custom .wpmam-band__eyebrow {
	margin: 0 0 10px !important;
	color: var(--wpmam-accent);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Footer ---------- */

.wpmam-footer {
	padding-block: clamp(48px, 6vw, 72px) 32px;
	border-top: 1px solid var(--wpmam-border);
	background: var(--wpmam-surface);
	font-size: 0.9375rem;
}

.wpmam-footer .wpmam-footer__columns {
	gap: clamp(24px, 4vw, 48px);
	margin: 0;
}

.wpmam-footer .wp-block-site-logo img {
	width: 132px;
	height: auto;
}

.wpmam-footer .wpmam-footer__social {
	margin-top: 16px;
	gap: 8px;
}

.wpmam-footer .wpmam-footer__social .wp-social-link {
	color: var(--wpmam-heading);
}

.wpmam-footer h2.wpmam-footer__title {
	margin: 0 0 14px;
	color: var(--wpmam-heading);
	font-family: var(--wp--custom--wpmam--font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.wpmam-footer .wpmam-footer__link {
	margin: 0 0 10px;
	line-height: 1.5;
}

.wpmam-footer .wpmam-footer__link a {
	color: var(--wpmam-text);
	text-decoration: none;
}

.wpmam-footer .wpmam-footer__link a:hover,
.wpmam-footer .wpmam-footer__link a:focus-visible {
	color: var(--wpmam-accent-hover);
	text-decoration: underline;
}

.wpmam-footer .wpmam-footer__rule {
	margin: clamp(32px, 4vw, 48px) 0 24px;
	border: 0;
	border-top: 1px solid var(--wpmam-border);
	opacity: 1;
}

.wpmam-footer .wpmam-footer__fine {
	margin: 0 0 6px;
	font-size: 0.8125rem;
	line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.wpmam-header .wpmam-nav,
	.wpmam-header .wpmam-nav .wp-block-navigation__container {
		gap: 16px;
	}
}

@media (min-width: 600px) and (max-width: 1023px) {
	.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container-close {
		display: flex;
	}

	.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed;
		inset: 0;
		display: flex;
	}

	.wpmam-header .wpmam-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 1024px) {
	.wpmam-home .wp-block-group.wpmam-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wpmam-home .wp-block-group.wpmam-grid-2 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 781px) {
	.wpmam-hero .wpmam-hero__columns {
		gap: 40px;
	}

	.wpmam-hero .wpmam-hero__image img {
		max-width: 420px;
	}

	.wpmam-home .wp-block-group.wpmam-grid-3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.wpmam-footer .wpmam-footer__columns {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wpmam-footer .wpmam-footer__brand {
		grid-column: 1 / -1;
	}

	/* Pricing table becomes a stack of cards: each row a card, cells labelled. */
	.wpmam-home .wpmam-pricing-table {
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.wpmam-home .wpmam-pricing-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.wpmam-home .wpmam-pricing-table table,
	.wpmam-home .wpmam-pricing-table tbody,
	.wpmam-home .wpmam-pricing-table tr,
	.wpmam-home .wpmam-pricing-table td {
		display: block;
		width: auto !important;
	}

	.wpmam-home .wpmam-pricing-table tbody tr {
		margin-bottom: 14px;
		padding: 18px 20px;
		border: 1px solid var(--wpmam-border);
		border-radius: var(--wpmam-radius);
		background: var(--wpmam-surface);
		box-shadow: var(--wpmam-shadow);
	}

	.wpmam-home .wpmam-pricing-table tbody tr + tr {
		border-top: 1px solid var(--wpmam-border);
	}

	.wpmam-home .wpmam-pricing-table td {
		padding: 0;
	}

	.wpmam-home .wpmam-pricing-table td:first-child {
		margin-bottom: 10px;
		font-family: var(--wp--custom--wpmam--font-heading);
		font-size: 1.125rem;
		font-weight: 500;
	}

	.wpmam-home .wpmam-pricing-table td:nth-child(2),
	.wpmam-home .wpmam-pricing-table td:nth-child(3) {
		display: flex;
		justify-content: space-between;
		padding: 6px 0;
		border-bottom: 1px dashed var(--wpmam-border);
		font-weight: 600;
	}

	.wpmam-home .wpmam-pricing-table td:nth-child(4) {
		padding-top: 12px;
	}

	.wpmam-home .wpmam-pricing-table td:nth-child(2)::before,
	.wpmam-home .wpmam-pricing-table td:nth-child(3)::before {
		color: var(--wpmam-text);
		font-weight: 400;
	}

	/* Labels mirror the table's column headings. */
	.wpmam-home .wpmam-pricing-table td:nth-child(2)::before {
		content: "One time";
	}

	.wpmam-home .wpmam-pricing-table td:nth-child(3)::before {
		content: "Every year";
	}
}

@media (max-width: 600px) {
	.wpmam-home .wp-block-group.wpmam-grid-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.wpmam-header .wpmam-header__inner {
		gap: 12px;
		min-height: 64px;
	}

	.wpmam-header .wpmam-header__logo img {
		width: 112px;
	}

	.wpmam-header .wpmam-header__actions {
		gap: 8px;
	}

	.wpmam-hero .wpmam-hero__buttons .wp-block-button {
		flex: 1 1 100%;
	}

	.wpmam-hero .wpmam-hero__buttons .wp-block-button__link,
	.wpmam-closing .wpmam-closing__buttons .wp-block-button__link {
		width: 100%;
	}

	.wpmam-closing .wpmam-closing__buttons .wp-block-button {
		flex: 1 1 100%;
	}

	.wpmam-landing .wpmam-role {
		flex-direction: column;
		align-items: stretch;
	}

	.wpmam-landing .wpmam-role .wpmam-phone--small {
		flex: 0 0 auto;
		width: 120px;
		align-self: center;
	}

	.wpmam-landing .wpmam-phone--placeholder .wpmam-phone__label {
		padding: 8px;
		font-size: 0.8125rem;
	}

	.wpmam-landing .wpmam-price-card__buttons .wp-block-button,
	.wpmam-landing .wpmam-price-card__buttons .wp-block-button__link {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.wpmam-home .wpmam-tile,
	.wpmam-tile .wpmam-tile__link a::after {
		transition: none;
	}
}

/* Homepage hero without an image (Fred 10/20): one centered text column. */
.wpmam-hero .wpmam-hero__columns:has(> .wpmam-hero__text--solo) {
	justify-content: center;
}
.wpmam-hero .wpmam-hero__columns > .wpmam-hero__text--solo {
	flex: 0 1 52rem !important;
	max-width: 52rem;
	margin-inline: auto !important;
	text-align: center;
}
.wpmam-hero__text--solo .wpmam-hero__buttons {
	justify-content: center;
}
.wpmam-hero__text--solo .wpmam-lead {
	margin-inline: auto;
}

/* Pricing page (/plugins/, templates/page-plugins.html). */
.wpmam-plans .wpmam-center-buttons {
	justify-content: center;
	margin-top: 32px;
}
.wpmam-plans .wpmam-pricing-table td a {
	color: inherit;
	text-decoration-color: var(--wpmam-accent);
	text-underline-offset: 3px;
}
.wpmam-catalog ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}
.wpmam-catalog ul.products::before,
.wpmam-catalog ul.products::after {
	display: none;
}
.wpmam-catalog ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	padding: 16px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	text-align: center;
}
.wpmam-catalog .woocommerce ul.products li.product a img,
.wpmam-catalog ul.products li.product img {
	display: block;
	width: 100% !important; /* beats the Customizer's 60% !important on catalog images */
	height: auto;
	aspect-ratio: 1;
	border-radius: 12px;
	margin: 0 0 12px;
}
.wpmam-catalog ul.products li.product .woocommerce-loop-product__title {
	font-size: 1rem;
	margin: 0 0 6px;
}
.wpmam-catalog ul.products li.product .price {
	display: block;
	font-size: 0.9375rem;
}
@media (max-width: 960px) {
	.wpmam-catalog ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.wpmam-catalog ul.products { gap: 12px; }
	.wpmam-catalog ul.products li.product { padding: 10px; }
}
@media (max-width: 600px) {
	.wpmam-plans .wpmam-pricing-table th:nth-child(2),
	.wpmam-plans .wpmam-pricing-table td:nth-child(2) {
		display: none;
	}
}
