/* ==========================================================================
   PharmaAudit design system
   Tokens are taken from the PharmaAudit dashboard (app.pharmaaudit.co.uk):
   mint page background, white cards, slate text, teal accent.
   ========================================================================== */

:root {
	/* Colour */
	--pa-background: #eef6f3;
	--pa-surface: #ffffff;
	--pa-surface-muted: #f8fafc;
	--pa-heading: #020617;
	--pa-text: #0f172a;
	--pa-text-body: #475569;
	--pa-text-muted: #64748b;
	--pa-teal: #0f766e;
	--pa-teal-hover: #115e59;
	--pa-teal-soft: #f0fdfa;
	--pa-teal-ring: #ccfbf1;
	--pa-teal-border: #99f6e4;
	--pa-on-teal: #ffffff;
	--pa-on-teal-muted: rgba(236, 253, 245, 0.85);
	--pa-blue: #0369a1;
	--pa-blue-soft: #f0f9ff;
	--pa-border: #e2e8f0;
	--pa-border-strong: #cbd5e1;

	/* Shape */
	--pa-radius-panel: 28px;
	--pa-radius-bar: 24px;
	--pa-radius-tile: 22px;
	--pa-radius-control: 16px;
	--pa-radius-pill: 999px;

	/* Elevation (tinted with emerald-950, as in the dashboard) */
	--pa-shadow: 0 1px 3px rgba(2, 44, 34, 0.05), 0 1px 2px -1px rgba(2, 44, 34, 0.05);
	--pa-shadow-hover: 0 10px 15px -3px rgba(2, 44, 34, 0.1), 0 4px 6px -4px rgba(2, 44, 34, 0.1);
	--pa-shadow-hero: 0 25px 50px -12px rgba(2, 44, 34, 0.18);
	--pa-shadow-button: 0 10px 15px -3px rgba(19, 78, 74, 0.15), 0 4px 6px -4px rgba(19, 78, 74, 0.15);

	/* Type */
	--pa-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
	--pa-tracking-eyebrow: 0.14em;

	/* Layout */
	--pa-container: 1280px;
	--pa-gutter: 16px;
	--pa-section-space: 56px;
	--pa-header-height: 68px;
	--pa-focus: 0 0 0 4px var(--pa-teal-ring), 0 0 0 1px var(--pa-teal);

	/* Blocksy palette, mapped onto the tokens so parent-theme components match. */
	--theme-palette-color-1: var(--pa-teal);
	--theme-palette-color-2: var(--pa-teal-hover);
	--theme-palette-color-3: var(--pa-text-body);
	--theme-palette-color-4: var(--pa-text);
	--theme-palette-color-5: var(--pa-border);
	--theme-palette-color-6: var(--pa-surface-muted);
	--theme-palette-color-7: var(--pa-background);
	--theme-palette-color-8: var(--pa-surface);
	--theme-font-stack-default: var(--pa-font);
}

@media (min-width: 640px) {
	:root {
		--pa-gutter: 32px;
		--pa-section-space: 72px;
	}
}

@media (min-width: 1024px) {
	:root {
		--pa-gutter: 40px;
		--pa-section-space: 88px;
		--pa-header-height: 72px;
	}
}

/* ==========================================================================
   Base
   ========================================================================== */

body.pa-site {
	background: var(--pa-background);
	color: var(--pa-text-body);
	font-family: var(--pa-font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	--theme-font-family: var(--pa-font);
	--theme-text-color: var(--pa-text-body);
	--theme-headings-color: var(--pa-heading);
	--theme-link-initial-color: var(--pa-teal);
	--theme-link-hover-color: var(--pa-teal-hover);
	--theme-button-background-initial-color: var(--pa-teal);
	--theme-button-background-hover-color: var(--pa-teal-hover);
	--theme-button-border-radius: var(--pa-radius-control);
	--theme-button-min-height: 44px;
	--theme-button-font-weight: 600;
	--theme-content-spacing: 1.25em;
}

.pa-site h1,
.pa-site h2,
.pa-site h3,
.pa-site h4,
.pa-site h5,
.pa-site h6 {
	color: var(--pa-heading);
	font-family: var(--pa-font);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-wrap: balance;
}

.pa-site h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; }
.pa-site h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.pa-site h3 { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem); }
.pa-site h4 { font-size: 1.0625rem; }

.pa-site a {
	color: var(--pa-teal);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.pa-site a:hover {
	color: var(--pa-teal-hover);
}

.pa-site :focus-visible {
	outline: none;
	box-shadow: var(--pa-focus);
	border-radius: 8px;
}

.pa-site img {
	max-width: 100%;
	height: auto;
}

.pa-site .skip-link:focus {
	background: var(--pa-surface);
	color: var(--pa-teal);
	border-radius: var(--pa-radius-control);
	box-shadow: var(--pa-shadow-hover);
	font-weight: 600;
	z-index: 1000;
}

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

/* ==========================================================================
   Buttons (theme UI and Gutenberg buttons share one look)
   ========================================================================== */

.pa-site .pa-button,
.pa-site .wp-block-button__link {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--pa-radius-control);
	background: var(--pa-teal);
	color: var(--pa-on-teal);
	font-family: var(--pa-font);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: var(--pa-shadow-button);
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pa-site .pa-button:hover,
.pa-site .wp-block-button__link:hover {
	background: var(--pa-teal-hover);
	color: var(--pa-on-teal);
}

.pa-button:focus-visible,
.pa-site .wp-block-button__link:focus-visible {
	box-shadow: var(--pa-focus);
	border-radius: var(--pa-radius-control);
}

.pa-site .pa-button--secondary,
.pa-site .is-style-pa-secondary .wp-block-button__link {
	background: var(--pa-surface);
	border-color: var(--pa-border);
	color: #334155;
	box-shadow: none;
}

.pa-site .pa-button--secondary:hover,
.pa-site .is-style-pa-secondary .wp-block-button__link:hover {
	background: var(--pa-surface-muted);
	border-color: var(--pa-border-strong);
	color: var(--pa-text);
}

.pa-site .is-style-pa-soft .wp-block-button__link {
	background: var(--pa-teal-soft);
	border-color: var(--pa-teal-ring);
	color: var(--pa-teal);
	box-shadow: none;
}

.pa-site .is-style-pa-soft .wp-block-button__link:hover {
	background: var(--pa-teal-ring);
	color: var(--pa-teal-hover);
}

.pa-site .wp-block-buttons {
	gap: 12px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.pa-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--pa-surface);
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.admin-bar .pa-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .pa-header {
		top: 0;
	}
}

.pa-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--pa-header-height);
}

.pa-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	text-decoration: none;
	border-radius: 10px;
}

.pa-site .pa-brand .pa-brand__logo {
	display: block;
	width: auto;
	height: 36px;
	/* The logo PNG has an off-white background; multiply blends it into white surfaces. */
	mix-blend-mode: multiply;
}

.pa-brand__mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--pa-radius-control);
	background: var(--pa-teal);
	color: #fff;
	font-weight: 700;
	font-size: 0.875rem;
}

.pa-brand__name {
	color: var(--pa-heading);
	font-weight: 600;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
}

.pa-header__panel {
	display: flex;
	align-items: center;
	flex: 1;
	gap: 24px;
}

.pa-nav {
	flex: 1;
}

.pa-nav__list,
.pa-nav__submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.pa-nav__item {
	position: relative;
	margin: 0;
}

.pa-nav__link,
.pa-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--pa-radius-control);
	background: transparent;
	color: #334155;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pa-site .pa-nav__link {
	color: #334155;
}

.pa-site .pa-nav__link:hover,
.pa-nav__toggle:hover,
.pa-nav__toggle[aria-expanded="true"] {
	background: var(--pa-surface-muted);
	color: var(--pa-text);
}

.pa-site .pa-nav__item.is-current > .pa-nav__link,
.pa-nav__item.is-current > .pa-nav__toggle {
	background: var(--pa-teal-soft);
	color: var(--pa-teal);
}

.pa-nav__chevron {
	transition: transform 0.15s ease;
}

.pa-nav__toggle[aria-expanded="true"] .pa-nav__chevron {
	transform: rotate(180deg);
}

.pa-nav__submenu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 240px;
	padding: 8px;
	border: 1px solid var(--pa-border);
	border-radius: 20px;
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow-hover);
}

/* No-JS fallback: open on hover/focus. With JS, the [hidden] attribute controls it. */
html:not(.pa-js) .pa-nav__item--parent:is(:hover, :focus-within) > .pa-nav__submenu[hidden] {
	display: block;
}

.pa-site .pa-nav__sublink {
	display: block;
	padding: 10px 14px;
	border-radius: 12px;
	color: #334155;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.pa-site .pa-nav__sublink:hover,
.pa-site .pa-nav__sublink[aria-current="page"] {
	background: var(--pa-teal-soft);
	color: var(--pa-teal);
}

.pa-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.pa-header__actions .pa-button {
	min-height: 42px;
	padding: 0 18px;
	font-size: 0.9375rem;
}

.pa-menu-button {
	display: none;
}

/* Mobile / tablet header */
@media (max-width: 1099px) {
	.pa-header__inner {
		justify-content: space-between;
		gap: 12px;
	}

	.pa-site .pa-brand .pa-brand__logo {
		height: 32px;
	}

	.pa-menu-button {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		padding: 0 16px;
		border: 1px solid var(--pa-border);
		border-radius: var(--pa-radius-control);
		background: var(--pa-surface);
		color: #334155;
		font: inherit;
		font-size: 0.9375rem;
		font-weight: 600;
		cursor: pointer;
	}

	.pa-menu-button__icon,
	.pa-menu-button__icon::before,
	.pa-menu-button__icon::after,
	.pa-menu-button__icon span {
		display: block;
		width: 18px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.pa-menu-button__icon {
		position: relative;
		background: transparent;
	}

	.pa-menu-button__icon::before,
	.pa-menu-button__icon::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.pa-menu-button__icon::before { top: -6px; }
	.pa-menu-button__icon::after { top: 6px; }

	.is-open .pa-menu-button__icon span { opacity: 0; }
	.is-open .pa-menu-button__icon::before { transform: translateY(6px) rotate(45deg); }
	.is-open .pa-menu-button__icon::after { transform: translateY(-6px) rotate(-45deg); }

	.pa-js .pa-header__panel {
		display: none;
	}

	.pa-header__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		max-height: calc(100vh - var(--pa-header-height));
		max-height: calc(100dvh - var(--pa-header-height));
		overflow-y: auto;
		padding: 16px var(--pa-gutter) 24px;
		border-bottom: 1px solid var(--pa-border);
		background: var(--pa-surface);
		box-shadow: var(--pa-shadow-hover);
	}

	.pa-js .pa-header.is-open .pa-header__panel {
		display: flex;
	}

	html:not(.pa-js) .pa-header__panel {
		position: static;
		box-shadow: none;
		border: 0;
		padding-inline: 0;
	}

	.pa-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.pa-nav__link,
	.pa-nav__toggle {
		width: 100%;
		min-height: 48px;
		justify-content: space-between;
		font-size: 1rem;
	}

	.pa-nav__submenu {
		position: static;
		min-width: 0;
		margin: 2px 0 6px;
		padding: 6px;
		border: 0;
		border-radius: var(--pa-radius-control);
		background: var(--pa-surface-muted);
		box-shadow: none;
	}

	.pa-header__actions {
		flex-direction: column;
		align-items: stretch;
		padding-top: 16px;
		border-top: 1px solid var(--pa-border);
	}

	.pa-header__actions .pa-button {
		min-height: 48px;
		font-size: 1rem;
	}
}

@media (min-width: 1100px) and (max-width: 1239px) {
	.pa-nav__link,
	.pa-nav__toggle {
		padding: 0 10px;
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.pa-footer {
	margin-top: var(--pa-section-space);
	padding: 56px 0 28px;
	background: var(--pa-surface);
	border-top: 1px solid var(--pa-border);
	font-size: 0.9375rem;
}

.pa-is-landing .pa-footer {
	margin-top: 0;
}

.pa-footer__grid {
	display: grid;
	gap: 36px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.pa-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pa-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.pa-footer__grid {
		grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
		gap: 48px;
	}

	.pa-footer__brand {
		grid-column: auto;
	}
}

.pa-footer__text {
	max-width: 36ch;
	margin: 16px 0 0;
	color: var(--pa-text-body);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.pa-site .pa-footer__play {
	display: inline-block;
	margin-top: 14px;
	font-weight: 600;
	font-size: 0.875rem;
}

.pa-footer__heading.pa-footer__heading {
	margin: 4px 0 14px;
	color: var(--pa-text-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pa-footer__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pa-footer__list li {
	margin: 0;
}

.pa-site .pa-footer__list a {
	color: #334155;
	font-weight: 500;
	text-decoration: none;
}

.pa-site .pa-footer__list a:hover {
	color: var(--pa-teal);
	text-decoration: underline;
}

.pa-footer__bottom {
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid var(--pa-border);
	color: var(--pa-text-muted);
	font-size: 0.875rem;
}

.pa-footer__bottom p {
	margin: 0;
}

/* ==========================================================================
   Standard pages (Blocksy templates): title, content card, sidebar
   ========================================================================== */

.pa-site:not(.pa-is-landing) .hero-section[data-type="type-1"] {
	margin-bottom: 0;
}

.pa-site:not(.pa-is-landing) .page-title {
	margin: 0;
}

.pa-site:not(.pa-is-landing) .site-main > .ct-container,
.pa-site:not(.pa-is-landing) .site-main > div > .ct-container {
	--theme-content-vertical-spacing: 48px;
}

.pa-site:not(.pa-is-landing) article.page > .entry-content,
.pa-site:not(.pa-is-landing) article.post > .entry-content {
	box-sizing: border-box;
	padding: clamp(24px, 4vw, 44px);
	border-radius: var(--pa-radius-panel);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
}

.pa-site:not(.pa-is-landing) .entry-content > :first-child {
	margin-top: 0;
}

.pa-site .entry-content h2 {
	margin-top: 1.6em;
}

.pa-site .entry-content h3 {
	margin-top: 1.4em;
}

/* Sidebar becomes one dashboard-style card */
.pa-site .ct-sidebar {
	--theme-sidebar-widgets-spacing: 14px;
	box-sizing: border-box;
	padding: 26px;
	border-radius: var(--pa-radius-panel);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.pa-site .ct-sidebar .ct-widget {
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
}

.pa-site .ct-sidebar .ct-widget p {
	margin: 0;
}

.pa-site .ct-sidebar .wp-block-image {
	margin: 4px 0 0;
}

.pa-site .ct-sidebar .wp-block-image img {
	width: 180px !important;
}

.pa-site .ct-sidebar h3 {
	margin: 0 0 8px;
	font-size: 1.125rem;
}

.pa-site .ct-sidebar ul {
	margin: 12px 0;
	padding: 0;
	list-style: none;
}

.pa-site .ct-sidebar li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 26px;
}

.pa-site .ct-sidebar li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 16px;
	height: 16px;
	border-radius: 6px;
	background: var(--pa-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pa-site .ct-sidebar .trial-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 8px;
	border-radius: var(--pa-radius-control);
	background: var(--pa-teal);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--pa-shadow-button);
}

.pa-site .ct-sidebar .trial-button:hover {
	background: var(--pa-teal-hover);
	color: #fff;
}

/* ==========================================================================
   Plugins: WPForms, Helpie FAQ, cookie banner
   ========================================================================== */

.pa-site .wpforms-container .wpforms-field-label {
	color: #334155;
	font-size: 0.875rem;
	font-weight: 600;
}

.pa-site .wpforms-container input[type="text"],
.pa-site .wpforms-container input[type="email"],
.pa-site .wpforms-container input[type="tel"],
.pa-site .wpforms-container input[type="url"],
.pa-site .wpforms-container select,
.pa-site .wpforms-container textarea {
	min-height: 48px;
	border: 1px solid var(--pa-border);
	border-radius: var(--pa-radius-control);
	background: var(--pa-surface-muted);
	color: var(--pa-text);
	font-size: 1rem;
	box-shadow: none;
}

.pa-site .wpforms-container input:focus,
.pa-site .wpforms-container select:focus,
.pa-site .wpforms-container textarea:focus {
	border-color: var(--pa-teal);
	background: var(--pa-surface);
	box-shadow: 0 0 0 4px var(--pa-teal-ring);
	outline: none;
}

.pa-site .wpforms-container button[type="submit"],
.pa-site .wpforms-container .wpforms-submit {
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--pa-radius-control);
	background: var(--pa-teal);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	box-shadow: var(--pa-shadow-button);
}

.pa-site .wpforms-container button[type="submit"]:hover {
	background: var(--pa-teal-hover);
}

.pa-site .helpie-faq.accordions .accordion__item,
.pa-site .helpie-faq .accordion__item {
	margin-bottom: 10px;
	border: 1px solid var(--pa-border);
	border-radius: var(--pa-radius-control);
	background: var(--pa-surface);
	overflow: hidden;
}

.pa-site .helpie-faq .accordion__header {
	padding: 16px 20px;
	background: var(--pa-surface);
}

.pa-site .helpie-faq .accordion__header:hover,
.pa-site .helpie-faq .accordion__header.active {
	background: var(--pa-teal-soft);
}

.pa-site .helpie-faq .accordion__title {
	color: var(--pa-heading);
	font-size: 1rem;
	font-weight: 600;
}

.pa-site .helpie-faq .accordion__body {
	padding: 4px 20px 18px;
	color: var(--pa-text-body);
}

.pa-site .cookie-notification {
	border: 1px solid var(--pa-border);
	border-radius: var(--pa-radius-tile);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow-hero);
	font-family: var(--pa-font);
	overflow: hidden;
}

.pa-site .cookie-notification .container {
	background: transparent;
	box-shadow: none;
}

.pa-site .cookie-notification .ct-button {
	border-radius: var(--pa-radius-control);
}

/* ==========================================================================
   Landing pages: section scaffolding
   ========================================================================== */

.pa-landing {
	overflow-x: clip;
}

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

.pa-section {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--pa-container) + 2 * var(--pa-gutter));
	margin-inline: auto;
	padding: var(--pa-section-space) var(--pa-gutter) 0;
}

.pa-section:last-child {
	padding-bottom: var(--pa-section-space);
}

.pa-section > * + * {
	margin-top: 0;
}

.pa-section__head {
	max-width: 760px;
	margin: 0 0 32px;
}

.pa-section__head--center {
	margin-inline: auto;
	text-align: center;
}

.pa-section__head > * {
	margin: 0;
}

.pa-section__head > * + * {
	margin-top: 12px;
}

.pa-site .is-style-pa-eyebrow,
.pa-site .pa-eyebrow {
	margin: 0;
	color: var(--pa-teal);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: var(--pa-tracking-eyebrow);
	line-height: 1.4;
	text-transform: uppercase;
}

.pa-site .is-style-pa-lead {
	color: var(--pa-text-body);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.7;
}

/* Cards */
.pa-site .is-style-pa-card,
.pa-card {
	box-sizing: border-box;
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--pa-radius-panel);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
}

.pa-site .is-style-pa-card > :first-child,
.pa-card > :first-child {
	margin-top: 0;
}

.pa-site .is-style-pa-card > :last-child,
.pa-card > :last-child {
	margin-bottom: 0;
}

/* Lists */
.pa-site ul.is-style-pa-checklist {
	display: grid;
	gap: 10px;
	margin: 16px 0;
	padding: 0;
	list-style: none;
}

.pa-site ul.is-style-pa-checklist li {
	position: relative;
	margin: 0;
	padding-left: 30px;
	color: var(--pa-text-body);
	line-height: 1.55;
}

.pa-site ul.is-style-pa-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	border-radius: 7px;
	background: var(--pa-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.pa-site ul.is-style-pa-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pa-site ul.is-style-pa-chips li {
	margin: 0;
	padding: 6px 14px 6px 32px;
	border: 1px solid var(--pa-teal-ring);
	border-radius: var(--pa-radius-pill);
	background: var(--pa-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 12px center / 14px no-repeat;
	color: var(--pa-teal);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

/* ==========================================================================
   Screenshot frames
   ========================================================================== */

.pa-site .wp-block-image.is-style-pa-browser {
	position: relative;
	margin: 0;
	padding: 34px 0 0;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: var(--pa-radius-tile);
	background:
		radial-gradient(circle at 18px 17px, #fda4af 0 5px, transparent 5.5px),
		radial-gradient(circle at 36px 17px, #fcd34d 0 5px, transparent 5.5px),
		radial-gradient(circle at 54px 17px, #6ee7b7 0 5px, transparent 5.5px),
		linear-gradient(var(--pa-surface-muted), var(--pa-surface-muted)) top / 100% 34px no-repeat,
		var(--pa-surface);
	box-shadow: var(--pa-shadow-hero);
	overflow: hidden;
}

.pa-site .wp-block-image.is-style-pa-browser::before {
	content: "";
	position: absolute;
	top: 34px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--pa-border);
}

.pa-site .wp-block-image.is-style-pa-browser img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.pa-site .wp-block-image.is-style-pa-phone {
	box-sizing: border-box;
	margin: 0;
	padding: 7px;
	border-radius: 30px;
	background: #0f172a;
	box-shadow: var(--pa-shadow-hero);
}

.pa-site .wp-block-image.is-style-pa-phone img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 23px;
}

.pa-site .wp-block-image.is-style-pa-browser figcaption,
.pa-site .wp-block-image.is-style-pa-phone figcaption {
	display: none;
}

/* Dashboard + phone composition */
.pa-device-pair {
	position: relative;
	padding-bottom: 6%;
	padding-right: 9%;
}

.pa-device-pair > .wp-block-image.is-style-pa-phone {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 25%;
	max-width: 220px;
}

.pa-device-pair--left {
	padding-right: 0;
	padding-left: 9%;
}

.pa-device-pair--left > .wp-block-image.is-style-pa-phone {
	right: auto;
	left: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.pa-hero {
	display: grid;
	gap: 40px;
	align-items: center;
	padding-top: clamp(36px, 6vw, 72px);
}

@media (min-width: 1024px) {
	.pa-hero {
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
		gap: 56px;
	}
}

.pa-hero__content > * {
	margin: 0;
}

.pa-hero__content > * + * {
	margin-top: 20px;
}

.pa-hero__content h1 {
	max-width: 15ch;
}

.pa-hero__content .wp-block-buttons {
	margin-top: 28px;
}

.pa-site .pa-hero__content ul.is-style-pa-chips {
	margin-top: 24px;
}

/* ==========================================================================
   App + dashboard split
   ========================================================================== */

.pa-split {
	display: grid;
	gap: 20px;
}

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

.pa-split > .is-style-pa-card {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.pa-split .is-style-pa-card h3 {
	margin: 16px 0 8px;
	font-size: 1.375rem;
}

.pa-split .is-style-pa-card p {
	margin: 0 0 4px;
}

.pa-split .wp-block-image.pa-badge-play {
	margin: auto 0 0;
	padding-top: 16px;
}

.pa-split .wp-block-image.pa-badge-play img {
	width: 170px;
}

.pa-split-badge {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0;
	border-radius: var(--pa-radius-control);
	background: var(--pa-teal-soft);
	color: var(--pa-teal);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.pa-split-badge--blue {
	background: var(--pa-blue-soft);
	color: var(--pa-blue);
}

/* ==========================================================================
   Feature tiles (dashboard module tiles)
   ========================================================================== */

.pa-tiles {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.pa-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
	.pa-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
	.pa-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pa-tile {
	--pa-accent: var(--pa-teal);
	--pa-accent-soft: var(--pa-teal-soft);
	--pa-accent-text: var(--pa-teal);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 20px;
	border: 1px solid #fff;
	border-left: 4px solid var(--pa-accent);
	border-radius: var(--pa-radius-tile);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pa-tile:has(a:hover) {
	transform: translateY(-2px);
	box-shadow: var(--pa-shadow-hover);
}

.pa-tile > * {
	margin: 0;
}

.pa-tile__badge.pa-tile__badge {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 16px;
	border-radius: var(--pa-radius-control);
	background: var(--pa-accent-soft);
	color: var(--pa-accent-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.pa-tile h3 {
	margin: 0 0 8px;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
}

.pa-tile p:not(.pa-tile__badge):not(.pa-tile__link) {
	color: var(--pa-text-body);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.pa-site .pa-tile__link {
	margin-top: auto;
	padding-top: 14px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pa-site .pa-tile__link a {
	color: var(--pa-text-muted);
	text-decoration: none;
}

.pa-site .pa-tile__link a:hover {
	color: var(--pa-teal);
}

/* Accent colours, matching the dashboard module tiles */
.pa-tile--rose    { --pa-accent: #f43f5e; --pa-accent-soft: #fff1f2; --pa-accent-text: #be123c; }
.pa-tile--amber   { --pa-accent: #f59e0b; --pa-accent-soft: #fffbeb; --pa-accent-text: #b45309; }
.pa-tile--sky     { --pa-accent: #0ea5e9; --pa-accent-soft: #f0f9ff; --pa-accent-text: #0369a1; }
.pa-tile--violet  { --pa-accent: #8b5cf6; --pa-accent-soft: #f5f3ff; --pa-accent-text: #6d28d9; }
.pa-tile--emerald { --pa-accent: #10b981; --pa-accent-soft: #ecfdf5; --pa-accent-text: #047857; }
.pa-tile--red     { --pa-accent: #ef4444; --pa-accent-soft: #fef2f2; --pa-accent-text: #b91c1c; }
.pa-tile--cyan    { --pa-accent: #06b6d4; --pa-accent-soft: #ecfeff; --pa-accent-text: #0e7490; }
.pa-tile--orange  { --pa-accent: #f97316; --pa-accent-soft: #fff7ed; --pa-accent-text: #c2410c; }
.pa-tile--slate   { --pa-accent: #94a3b8; --pa-accent-soft: #f8fafc; --pa-accent-text: #475569; }
.pa-tile--indigo  { --pa-accent: #6366f1; --pa-accent-soft: #eef2ff; --pa-accent-text: #4338ca; }
.pa-tile--teal    { --pa-accent: #14b8a6; --pa-accent-soft: #f0fdfa; --pa-accent-text: #0f766e; }

/* ==========================================================================
   Screenshot showcase rows
   ========================================================================== */

.pa-showcase {
	display: grid;
	gap: 20px;
}

.pa-showcase__row {
	display: grid;
	gap: 28px;
	align-items: center;
	padding: clamp(22px, 3.5vw, 44px);
	border-radius: var(--pa-radius-panel);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
}

@media (min-width: 900px) {
	.pa-showcase__row {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 48px;
	}

	.pa-showcase__row--reverse {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	}

	.pa-showcase__row--reverse > .pa-showcase__text {
		order: 2;
	}
}

.pa-showcase__text > * {
	margin: 0;
}

.pa-showcase__text > * + * {
	margin-top: 12px;
}

.pa-showcase__text h3 {
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
}

.pa-showcase .wp-block-image.is-style-pa-browser {
	box-shadow: var(--pa-shadow-hover);
}

/* ==========================================================================
   Plan comparison table
   ========================================================================== */

.pa-plans {
	display: grid;
	gap: 24px;
	align-items: start;
}

@media (min-width: 1024px) {
	.pa-plans {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: 48px;
	}
}

.pa-plans__intro > * {
	margin: 0;
}

.pa-plans__intro > * + * {
	margin-top: 14px;
}

.pa-plans__intro .wp-block-buttons {
	margin-top: 24px;
}

.pa-site figure.wp-block-table.is-style-pa-compare {
	margin: 0;
	padding: 8px;
	border-radius: var(--pa-radius-panel);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
	overflow-x: auto;
}

.pa-site .is-style-pa-compare table {
	width: 100%;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.9375rem;
}

.pa-site .is-style-pa-compare th,
.pa-site .is-style-pa-compare td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--pa-border);
	text-align: center;
	vertical-align: middle;
}

.pa-site .is-style-pa-compare tr:last-child td {
	border-bottom: 0;
}

.pa-site .is-style-pa-compare th:first-child,
.pa-site .is-style-pa-compare td:first-child {
	text-align: left;
	color: #334155;
	font-weight: 500;
}

.pa-site .is-style-pa-compare thead th {
	border-bottom: 1px solid var(--pa-border);
	color: var(--pa-heading);
	font-weight: 700;
	line-height: 1.35;
}

.pa-site .is-style-pa-compare thead th:nth-child(2),
.pa-site .is-style-pa-compare td:nth-child(2) {
	background: var(--pa-teal-soft);
}

.pa-site .is-style-pa-compare thead th:nth-child(2) {
	border-radius: 18px 18px 0 0;
	color: var(--pa-teal);
}

.pa-site .is-style-pa-compare tr:last-child td:nth-child(2) {
	border-radius: 0 0 18px 18px;
}

.pa-site .is-style-pa-compare thead th {
	color: var(--pa-text-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.pa-site .is-style-pa-compare thead th:first-child {
	vertical-align: bottom;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
}

.pa-site .is-style-pa-compare thead th strong {
	color: var(--pa-heading);
	font-size: 1.0625rem;
}

.pa-site .is-style-pa-compare thead th:nth-child(2),
.pa-site .is-style-pa-compare thead th:nth-child(2) strong {
	color: var(--pa-teal);
}

.pa-site .is-style-pa-compare td {
	color: var(--pa-text-muted);
	font-size: 0.875rem;
}

.pa-site .is-style-pa-compare td strong {
	color: var(--pa-teal);
	font-size: 1.0625rem;
}

/* ==========================================================================
   Numbered steps (Quick Guide, getting started)
   ========================================================================== */

.pa-steps {
	display: grid;
	gap: 16px;
	counter-reset: pa-step;
}

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

@media (min-width: 1024px) {
	.pa-steps--three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.pa-step {
	position: relative;
	box-sizing: border-box;
	margin: 0;
	padding: 24px 24px 24px 84px;
	border-radius: var(--pa-radius-tile);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
	counter-increment: pa-step;
}

.pa-step::before {
	content: counter(pa-step);
	position: absolute;
	top: 22px;
	left: 24px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--pa-radius-control);
	background: var(--pa-teal);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
}

.pa-step > * {
	margin: 0;
}

.pa-step > * + * {
	margin-top: 10px;
}

.pa-step h3 {
	font-size: 1.1875rem;
	line-height: 1.35;
	padding-top: 7px;
}

@media (max-width: 479px) {
	.pa-step {
		padding: 76px 20px 22px;
	}

	.pa-step::before {
		top: 20px;
		left: 20px;
	}
}

.pa-step .is-style-pa-checklist {
	margin: 14px 0 0;
}

@media (min-width: 640px) {
	.pa-step ul.is-style-pa-checklist {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
	}
}

/* ==========================================================================
   Module sections (How PharmaAudit Works)
   ========================================================================== */

.pa-module {
	display: grid;
	gap: 28px;
	align-items: center;
	padding: clamp(22px, 3.5vw, 44px);
	border-radius: var(--pa-radius-panel);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
}

.pa-module + .pa-module {
	margin-top: 20px;
}

@media (min-width: 960px) {
	.pa-module--media {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: 48px;
	}

	.pa-module--media.pa-module--reverse {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	}

	.pa-module--reverse > .pa-module__text {
		order: 2;
	}
}

.pa-module__text > * {
	margin: 0;
}

.pa-module__text > * + * {
	margin-top: 12px;
}

.pa-module__text h2 {
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
}

.pa-module__num.pa-module__num {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: var(--pa-radius-control);
	background: var(--pa-teal-soft);
	color: var(--pa-teal);
	font-size: 0.875rem;
	font-weight: 700;
}

.pa-module__tag.pa-module__tag {
	display: inline-block;
	margin-left: 0;
	padding: 4px 12px;
	border-radius: var(--pa-radius-pill);
	background: var(--pa-blue-soft);
	color: var(--pa-blue);
	font-size: 0.75rem;
	font-weight: 700;
	vertical-align: middle;
}

.pa-module__media {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	justify-content: center;
}

.pa-module__media > .wp-block-image.is-style-pa-browser {
	flex: 1 1 auto;
	min-width: 0;
}

.pa-module__media > .wp-block-image.is-style-pa-phone {
	flex: 0 0 24%;
	max-width: 200px;
}

.pa-module__media--phones > .wp-block-image.is-style-pa-phone {
	flex: 0 1 200px;
}

.pa-module__media--pair > .wp-block-image.is-style-pa-browser {
	flex: 1 1 0;
}

@media (max-width: 599px) {
	.pa-module__media--pair {
		flex-direction: column;
	}

	.pa-module__media--pair > .wp-block-image.is-style-pa-browser {
		width: 100%;
	}
}

/* Benefits grid */
.pa-benefits {
	display: grid;
	gap: 16px;
}

@media (min-width: 640px) {
	.pa-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
	.pa-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pa-benefit {
	box-sizing: border-box;
	margin: 0;
	padding: 22px;
	border-radius: var(--pa-radius-tile);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
}

.pa-benefit > * {
	margin: 0;
}

.pa-benefit h3 {
	font-size: 1.0625rem;
}

.pa-benefit ul.is-style-pa-checklist {
	margin: 14px 0 0;
	gap: 8px;
	font-size: 0.9375rem;
}

/* ==========================================================================
   Page intro (non-home landing pages)
   ========================================================================== */

.pa-intro {
	padding-top: clamp(36px, 6vw, 64px);
}

.pa-intro__card {
	display: grid;
	gap: 28px;
	align-items: center;
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--pa-radius-panel);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
}

@media (min-width: 1024px) {
	.pa-intro__card--media {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 48px;
	}
}

.pa-intro__text > * {
	margin: 0;
}

.pa-intro__text > * + * {
	margin-top: 16px;
}

.pa-intro__text h1 {
	font-size: clamp(2rem, 1.5rem + 2vw, 2.875rem);
}

.pa-intro__text .wp-block-buttons {
	margin-top: 24px;
}

/* ==========================================================================
   Teal CTA panel (styled after the dashboard sign-in panel)
   ========================================================================== */

.pa-site .is-style-pa-panel,
.pa-cta {
	box-sizing: border-box;
	padding: clamp(28px, 5vw, 56px);
	border-radius: var(--pa-radius-panel);
	background: var(--pa-teal);
	color: var(--pa-on-teal-muted);
	box-shadow: var(--pa-shadow-hero);
}

.pa-cta {
	display: grid;
	gap: 28px;
	align-items: center;
}

@media (min-width: 900px) {
	.pa-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 48px;
	}
}

.pa-cta > div > * {
	margin: 0;
}

.pa-cta > div > * + * {
	margin-top: 12px;
}

.pa-site .pa-cta h2,
.pa-site .is-style-pa-panel h2,
.pa-site .is-style-pa-panel h3 {
	color: #fff;
}

.pa-site .pa-cta .is-style-pa-eyebrow {
	color: rgba(236, 253, 245, 0.8);
	letter-spacing: 0.18em;
}

.pa-site .pa-cta p {
	color: var(--pa-on-teal-muted);
	font-size: 1.0625rem;
}

.pa-site .pa-cta .wp-block-button__link {
	min-height: 52px;
	padding: 0 28px;
	background: #fff;
	color: var(--pa-teal);
	box-shadow: 0 10px 25px -10px rgba(4, 47, 46, 0.45);
}

.pa-site .pa-cta .wp-block-button__link:hover {
	background: var(--pa-teal-soft);
	color: var(--pa-teal-hover);
}

.pa-site .pa-cta .wp-block-button__link:focus-visible {
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}

.pa-site .pa-cta ul.is-style-pa-chips li {
	border-color: rgba(255, 255, 255, 0.2);
	background-color: rgba(255, 255, 255, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	color: #fff;
}

.pa-site .pa-cta a:not(.wp-block-button__link) {
	color: #fff;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.pa-muted {
	color: var(--pa-text-muted);
}

.pa-site .pa-note {
	color: var(--pa-text-body);
	font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
	.pa-site *,
	.pa-site *::before,
	.pa-site *::after {
		transition: none !important;
	}
}

/* Text-only modules shown side by side */
.pa-module-pair {
	display: grid;
	gap: 20px;
	margin-top: 20px;
}

@media (min-width: 900px) {
	.pa-module-pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.pa-module-pair > .pa-module {
	margin: 0;
	align-items: start;
}

.pa-module:not(.pa-module--media) .pa-module__text {
	max-width: 760px;
}

/* Deep links (#recalls etc.) land below the sticky header */
.pa-landing [id] {
	scroll-margin-top: calc(var(--pa-header-height) + 24px);
}

.admin-bar .pa-landing [id] {
	scroll-margin-top: calc(var(--pa-header-height) + 56px);
}

/* Module with two dashboard screenshots: text on top, screenshots two-up below */
@media (min-width: 960px) {
	.pa-module--media.pa-module--stacked {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

.pa-module--stacked .pa-module__text {
	max-width: 760px;
}

.pa-module--stacked .pa-module__media--pair {
	align-items: flex-start;
	gap: 20px;
}

/* Quick Guide steps: full-width cards with optional screenshot */
.pa-steps--guide .pa-step {
	padding-right: clamp(24px, 4vw, 40px);
}

.pa-steps--guide .pa-step > * {
	max-width: 820px;
}

.pa-step .wp-block-buttons {
	margin-top: 18px;
}

.pa-site .pa-step .wp-block-image.is-style-pa-browser {
	margin-top: 22px;
	box-shadow: var(--pa-shadow-hover);
}

.pa-step .pa-note {
	margin-top: 14px;
}

.pa-split h2 {
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	margin: 0 0 10px;
}

.pa-guide-app .wp-block-image.pa-badge-play {
	margin: auto 0 0;
	padding-top: 16px;
}

.pa-guide-app .wp-block-image.pa-badge-play img {
	width: 170px;
}

.pa-site .pa-intro__text > ul.is-style-pa-chips {
	margin-top: 20px;
}

/* WPForms "modern" markup reads its colours from these variables */
.pa-site .wpforms-container {
	--wpforms-button-background-color: var(--pa-teal);
	--wpforms-button-background-color-alt: var(--pa-teal-hover);
	--wpforms-button-text-color: #ffffff;
	--wpforms-button-border-radius: var(--pa-radius-control);
	--wpforms-field-border-radius: var(--pa-radius-control);
	--wpforms-field-border-color: var(--pa-border);
	--wpforms-field-background-color: var(--pa-surface-muted);
	--wpforms-label-color: #334155;
	--wpforms-label-sublabel-color: var(--pa-text-muted);
	--wpforms-page-break-color: var(--pa-teal);
}

.pa-site div.wpforms-container-full button[type="submit"]:not(:hover):not(:active) {
	background-color: var(--pa-teal);
	color: #fff;
}

.pa-site div.wpforms-container-full button[type="submit"]:hover {
	background-color: var(--pa-teal-hover);
}

/* ==========================================================================
   Final polish
   ========================================================================== */

/* Homepage feature tiles: 8 cards → 1 / 2 / 4 columns (no orphaned row at 3) */
@media (min-width: 900px) and (max-width: 1099px) {
	.pa-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
	.pa-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pa-tiles__more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 24px;
}

.pa-site .pa-tiles__more .pa-note {
	max-width: 62ch;
	margin: 0;
}

.pa-tiles__more .wp-block-buttons {
	margin: 0;
}

/* Compact tiles on phones: badge beside the title */
@media (max-width: 599px) {
	.pa-tile {
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 14px;
		align-items: center;
		padding: 18px;
	}

	.pa-tile__badge.pa-tile__badge {
		margin: 0;
	}

	.pa-tile h3 {
		margin: 0;
	}

	.pa-tile > p:not(.pa-tile__badge) {
		grid-column: 1 / -1;
	}

	.pa-site .pa-tile p:not(.pa-tile__badge):not(.pa-tile__link) {
		margin-top: 10px;
	}

	.pa-site .pa-tile__link {
		padding-top: 10px;
	}

	.pa-tiles__more {
		flex-direction: column;
		align-items: stretch;
	}

	.pa-tiles__more .wp-block-button,
	.pa-tiles__more .wp-block-button__link {
		width: 100%;
	}
}

/* Plan comparison: table from 640px, stacked plan cards below */
.pa-plan-cards {
	display: none;
}

@media (max-width: 639px) {
	.pa-site figure.wp-block-table.is-style-pa-compare {
		display: none;
	}

	.pa-plan-cards {
		display: grid;
		gap: 14px;
	}
}

.pa-plan-card {
	padding: 22px;
	border: 1px solid var(--pa-border);
	border-radius: var(--pa-radius-tile);
	background: var(--pa-surface);
	box-shadow: var(--pa-shadow);
}

.pa-plan-card.is-featured {
	border: 2px solid var(--pa-teal);
}

.pa-site .pa-plan-card__title {
	margin: 0 0 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--pa-border);
	color: var(--pa-text-muted);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
}

.pa-plan-card__title strong {
	color: var(--pa-heading);
	font-size: 1.25rem;
}

.pa-plan-card.is-featured .pa-plan-card__title,
.pa-plan-card.is-featured .pa-plan-card__title strong {
	color: var(--pa-teal);
}

.pa-plan-card__list {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

.pa-plan-card__list li {
	position: relative;
	margin: 0;
	padding-left: 28px;
	color: var(--pa-text-body);
	line-height: 1.5;
}

.pa-plan-card__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 19px;
	height: 19px;
	border-radius: 7px;
}

.pa-plan-card__list li.is-included::before {
	background: var(--pa-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.pa-plan-card__list li.is-excluded {
	color: var(--pa-text-muted);
	text-decoration: line-through;
	text-decoration-color: var(--pa-border-strong);
}

.pa-plan-card__list li.is-excluded::before {
	background: var(--pa-surface-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.pa-plan-card__list strong {
	color: var(--pa-text);
}

/* Mobile rhythm: modestly tighter, still spacious */
@media (max-width: 639px) {
	:root {
		--pa-section-space: 48px;
	}

	.pa-section__head {
		margin-bottom: 22px;
	}

	.pa-hero {
		gap: 32px;
		padding-top: 28px;
	}

	.pa-hero__content > * + * {
		margin-top: 16px;
	}

	.pa-site .pa-hero__content ul.is-style-pa-chips {
		margin-top: 18px;
	}

	.pa-showcase,
	.pa-split,
	.pa-tiles,
	.pa-steps {
		gap: 14px;
	}

	.pa-showcase__row {
		gap: 22px;
		padding: 20px;
	}

	.pa-site .is-style-pa-card {
		padding: 22px;
	}

	.pa-plans {
		gap: 20px;
	}

	.pa-cta {
		gap: 22px;
		padding: 26px 22px;
	}

	.pa-step {
		padding-top: 20px;
		padding-bottom: 20px;
	}
}

/* SiteLeads contact button: teal (set in SiteLeads), icon only, compact on phones */
.pa-site .siteleads-greeting {
	display: none !important;
}

.pa-site .siteleads-root {
	--sl-default-fab-size: 52px;
	bottom: 24px;
}

.pa-site .siteleads-root.--siteleads-root-alignment-right {
	right: 24px;
}

@media (max-width: 639px) {
	.pa-site .siteleads-root {
		--sl-default-fab-size: 44px;
		bottom: 16px;
	}

	.pa-site .siteleads-root.--siteleads-root-alignment-right {
		right: 16px;
	}

	/* Room below the last footer line so the button never sits on top of it */
	.pa-footer {
		padding-bottom: 84px;
	}
}

/* Keep it out of the way while the mobile menu is open */
.pa-menu-open .siteleads-root {
	display: none !important;
}

.pa-module-pair + .pa-module {
	margin-top: 20px;
}

.pa-module--highlight {
	border-left: 4px solid #94a3b8;
}
