/*
 * PCE Estimator — site styles.
 * Loaded on the front end and (scoped automatically) in the block editor.
 * Colours, fonts and sizes come from theme.json presets where possible.
 */

:root {
	--pce-navy: var(--wp--preset--color--navy, #0A173B);
	--pce-crimson: var(--wp--preset--color--crimson, #B82833);
	--pce-crimson-hover: var(--wp--preset--color--crimson-hover, #D12F3C);
	--pce-blue: var(--wp--preset--color--blue, #2563EB);
	--pce-ink: var(--wp--preset--color--ink, #334155);
	--pce-muted: var(--wp--preset--color--muted, #475569);
	--pce-subtle: var(--wp--preset--color--subtle, #64748B);
	--pce-radius-card: 32px;
	--pce-radius-panel: 36px;
	--pce-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--pce-mono: var(--wp--preset--font-family--mono, ui-monospace, monospace);
}

/* ---------- Page canvas ---------- */

body {
	background-color: #F3F4F8;
	background-image:
		radial-gradient(at 10% 15%, rgba(129, 140, 248, 0.28) 0, transparent 55%),
		radial-gradient(at 90% 20%, rgba(56, 189, 248, 0.25) 0, transparent 50%),
		radial-gradient(at 35% 45%, rgba(244, 63, 94, 0.18) 0, transparent 50%),
		radial-gradient(at 80% 65%, rgba(52, 211, 153, 0.22) 0, transparent 50%),
		radial-gradient(at 15% 85%, rgba(192, 132, 252, 0.25) 0, transparent 50%),
		radial-gradient(at 75% 95%, rgba(251, 146, 60, 0.2) 0, transparent 50%);
	background-attachment: fixed;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: #E0E7FF;
	color: var(--pce-navy);
}

/* Two slow-drifting colour fields behind the glass (gradients, not blur filters, to stay cheap). */
.wp-site-blocks {
	position: relative;
	isolation: isolate;
}

.wp-site-blocks::before,
.wp-site-blocks::after {
	content: "";
	position: fixed;
	z-index: -1;
	width: 70vmax;
	height: 70vmax;
	border-radius: 50%;
	pointer-events: none;
	will-change: transform;
}

.wp-site-blocks::before {
	top: -20vmax;
	left: -15vmax;
	background: radial-gradient(circle, rgba(129, 140, 248, 0.32) 0, rgba(192, 132, 252, 0.18) 35%, transparent 65%);
	animation: pce-orb-a 18s ease-in-out infinite;
}

.wp-site-blocks::after {
	right: -20vmax;
	bottom: -25vmax;
	background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0, rgba(45, 212, 191, 0.18) 35%, transparent 65%);
	animation: pce-orb-b 22s ease-in-out infinite;
}

.wp-site-blocks > * {
	margin-block: 0;
}

.pce-main .wp-block-post-content > * {
	margin-block: 0;
}

.pce-mono,
.pce-mono * {
	font-family: var(--pce-mono);
}

/* ---------- Glass surfaces (block style variations) ---------- */

.is-style-pce-glass-panel {
	position: relative;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 4rem);
	border-radius: var(--pce-radius-panel);
	background: rgba(255, 255, 255, 0.52);
	-webkit-backdrop-filter: blur(28px) saturate(200%);
	backdrop-filter: blur(28px) saturate(200%);
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	box-shadow:
		0 24px 60px -15px rgba(10, 23, 59, 0.12),
		0 4px 16px -2px rgba(10, 23, 59, 0.05),
		inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 1px 0 rgba(255, 255, 255, 0.25);
}

/* Specular highlight inside panels. */
.is-style-pce-glass-panel::before {
	content: "";
	position: absolute;
	top: -6rem;
	left: 20%;
	width: 22rem;
	height: 22rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.is-style-pce-glass-panel > * {
	position: relative;
	z-index: 1;
}

[class*="is-style-pce-glass-card"] {
	padding: 2rem;
	border-radius: var(--pce-radius-card);
	background: rgba(255, 255, 255, 0.48);
	-webkit-backdrop-filter: blur(22px) saturate(190%);
	backdrop-filter: blur(22px) saturate(190%);
	border: 1.5px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 16px 40px -10px rgba(10, 23, 59, 0.08), inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.9);
	transition: background 0.35s var(--pce-ease), transform 0.35s var(--pce-ease), box-shadow 0.35s var(--pce-ease), border-color 0.35s var(--pce-ease);
}

[class*="is-style-pce-glass-card"]:hover {
	background: rgba(255, 255, 255, 0.72);
	transform: translateY(-5px);
	border-color: #fff;
	box-shadow: 0 24px 50px -12px rgba(10, 23, 59, 0.16), 0 0 0 1px rgba(99, 102, 241, 0.25), inset 0 2px 2px 0 #fff;
}

.is-style-pce-glass-card-indigo { background: rgba(238, 242, 255, 0.55); }
.is-style-pce-glass-card-cyan { background: rgba(224, 242, 254, 0.55); }
.is-style-pce-glass-card-rose { background: rgba(255, 241, 242, 0.55); }
.is-style-pce-glass-card-emerald { background: rgba(236, 253, 245, 0.55); }
.is-style-pce-glass-card-purple { background: rgba(250, 245, 255, 0.55); }

.pce-well {
	background: rgba(255, 255, 255, 0.4);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: inset 0 2px 4px 0 rgba(10, 23, 59, 0.04);
	border-radius: 1rem;
}

.pce-panel-center {
	text-align: center;
}

.pce-panel-cta {
	padding-block: clamp(2.5rem, 7vw, 5rem);
}

/* ---------- Typography helpers ---------- */

.pce-lead {
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
	line-height: 1.55;
	color: var(--pce-ink);
	max-width: 36em;
}

.pce-lead--left {
	margin-left: 0;
}

.pce-measure-14 { max-width: 14ch; }
.pce-measure-15 { max-width: 15ch; }
.pce-measure-16 { max-width: 16ch; }

.pce-h2-md {
	font-size: clamp(2.125rem, 1.6rem + 2vw, 2.875rem);
}

.pce-h2-xl {
	font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.5rem);
	line-height: 1;
	letter-spacing: -0.035em;
}

.pce-h1-page {
	font-size: clamp(2.5rem, 1.75rem + 3.5vw, 4rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
}

.is-style-pce-eyebrow {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pce-crimson);
	margin-bottom: 0;
}

.pce-eyebrow--emerald { color: #059669; }

.pce-eyebrow--pulse::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 0.45rem;
	border-radius: 50%;
	background: var(--pce-crimson);
	box-shadow: 0 0 8px var(--pce-crimson);
	vertical-align: 0.05em;
	animation: pce-pulse 2s ease-in-out infinite;
}

.pce-note {
	font-size: 0.9375rem;
	color: var(--pce-muted);
}

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

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	box-shadow: 0 8px 25px rgba(184, 40, 51, 0.32);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(184, 40, 51, 0.45);
}

.wp-block-button__link:focus-visible {
	outline: 3px solid var(--pce-blue);
	outline-offset: 3px;
}

.is-style-pce-glass .wp-block-button__link {
	background: rgba(255, 255, 255, 0.68);
	color: var(--pce-navy);
	-webkit-backdrop-filter: blur(18px) saturate(190%);
	backdrop-filter: blur(18px) saturate(190%);
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 12px 28px -6px rgba(10, 23, 59, 0.1), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
}

.is-style-pce-glass .wp-block-button__link:hover,
.is-style-pce-glass .wp-block-button__link:focus {
	background: #fff;
	color: var(--pce-navy);
	box-shadow: 0 14px 30px -6px rgba(10, 23, 59, 0.16);
}

.is-style-pce-dark .wp-block-button__link {
	background: var(--pce-navy);
	box-shadow: 0 8px 25px rgba(10, 23, 59, 0.2);
}

.is-style-pce-dark .wp-block-button__link:hover,
.is-style-pce-dark .wp-block-button__link:focus {
	background: #1E293B;
	box-shadow: 0 12px 30px rgba(10, 23, 59, 0.3);
}

.pce-btn-sm .wp-block-button__link {
	min-height: 42px;
	padding: 0.55rem 1.25rem;
	font-size: 0.875rem;
	box-shadow: 0 4px 16px rgba(184, 40, 51, 0.28);
}

.pce-cta-row {
	gap: 1rem;
	margin-top: 2.25rem !important;
}

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

.pce-site-header {
	position: sticky;
	top: 0;
	z-index: 40;
}

body.admin-bar .pce-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .pce-site-header {
		top: 46px;
	}
}

.pce-header {
	background: rgba(255, 255, 255, 0.65);
	-webkit-backdrop-filter: blur(24px) saturate(190%);
	backdrop-filter: blur(24px) saturate(190%);
	border-bottom: 1.5px solid rgba(255, 255, 255, 0.75);
	box-shadow: 0 10px 30px -10px rgba(10, 23, 59, 0.07);
	transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* backdrop-filter makes the header the containing block for the fixed mobile overlay,
   which would clip the open menu to the header's height. */
.pce-header:has(.is-menu-open) {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.pce-header.is-scrolled {
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 12px 32px -12px rgba(10, 23, 59, 0.16);
}

.pce-header__inner {
	min-height: 74px;
	gap: 1.5rem;
}

.pce-header__inner > .pce-nav {
	margin-left: auto;
}

.pce-nav {
	gap: 2rem;
	color: var(--pce-ink);
}

.pce-nav .wp-block-navigation-item__content {
	padding-block: 0.25rem;
	transition: color 0.2s ease;
}

.pce-nav .wp-block-navigation-item__content:hover,
.pce-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--pce-navy);
}

.pce-nav .pce-nav__signin .wp-block-navigation-item__content {
	color: var(--pce-navy);
}

.pce-nav .pce-nav__signin .wp-block-navigation-item__content:hover {
	color: var(--pce-crimson);
}

/* "Get started" lives in the header button on desktop and inside the mobile menu. */
.pce-nav .pce-nav__cta {
	display: none;
}

.pce-nav .is-menu-open .pce-nav__cta {
	display: block;
	margin-top: 0.75rem;
}

.pce-nav .is-menu-open .pce-nav__cta .wp-block-navigation-item__content {
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	background: var(--pce-crimson);
	color: #fff;
}

.pce-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(30px);
	backdrop-filter: blur(30px);
	padding: 1.5rem;
}

.pce-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	font-size: 1.0625rem;
	gap: 1rem;
}

.pce-btn-sm .wp-block-button__link {
	white-space: nowrap;
}

@media (max-width: 599px) {
	/* Beats core's `.wp-block-buttons.is-layout-flex { display: flex }`. */
	.pce-header .pce-header__cta {
		display: none !important;
	}
}

/* ---------- Logo ---------- */

.pce-logo {
	display: inline-flex;
	line-height: 0;
}

.pce-logo.aligncenter {
	display: flex;
	justify-content: center;
}

.pce-logo__link,
.pce-logo > .pce-logo__mark {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.pce-logo__mark {
	flex-shrink: 0;
	width: auto;
	transition: transform 0.2s ease;
}

.pce-logo__link:hover .pce-logo__mark {
	transform: scale(1.05);
}

.pce-logo__text {
	font-weight: 700;
	font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);
	line-height: 1;
	letter-spacing: -0.025em;
	color: var(--pce-navy);
	white-space: nowrap;
}

/* ---------- Sections and grids ---------- */

.pce-section {
	padding-block: clamp(4.5rem, 3rem + 6vw, 8rem);
}

.pce-section--flush-top {
	padding-top: 0;
}

.pce-page-intro {
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.pce-grid {
	display: grid;
	gap: 1.5rem;
	margin-top: 3.5rem;
	padding: 0;
	list-style: none;
}

.pce-grid > * {
	margin-block: 0;
}

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

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

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

.pce-panel-center .pce-grid {
	text-align: left;
}

.pce-card {
	display: flex;
	flex-direction: column;
}

.pce-card h3,
.pce-tile h3 {
	margin-top: 1.25rem;
}

.pce-card--compact {
	padding: 1.75rem;
}

.pce-card__title-sm {
	font-size: 1.25rem;
	line-height: 1.25;
}

.pce-card p,
.pce-tile p:not(.is-style-pce-eyebrow):not(.pce-badge-dark) {
	font-size: 0.9375rem;
	line-height: 1.65;
}

.pce-card-foot {
	margin-top: auto !important;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.6);
	font-size: 0.75rem !important;
	font-weight: 700;
	color: var(--pce-subtle);
	transition: color 0.2s ease;
}

.pce-card:hover .pce-card-foot {
	color: var(--pce-crimson);
}

.pce-step-head {
	gap: 1rem;
}

.pce-step-head > * {
	margin: 0 !important;
}

.pce-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	background: linear-gradient(135deg, #0A173B, #2563EB);
	color: #fff;
	font-size: 1.25rem !important;
	font-weight: 700;
	box-shadow: 0 10px 20px -6px rgba(37, 99, 235, 0.45);
	transition: transform 0.2s ease;
}

.pce-card:hover .pce-step-num {
	transform: scale(1.05);
}

.pce-code-badge {
	font-family: var(--pce-mono);
	font-size: 0.6875rem !important;
	font-weight: 700;
	color: var(--pce-subtle);
}

.pce-section-head {
	gap: 1.25rem;
}

.pce-section-head > * {
	margin: 0 !important;
}

/* ---------- Icons ---------- */

.pce-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	border: 1px solid #fff;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 2px rgba(10, 23, 59, 0.06);
	transition: transform 0.2s ease;
}

.pce-icon .pce-svg-icon {
	width: 22px;
	height: 22px;
}

.pce-icon--sm {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	border-color: rgba(255, 255, 255, 0.8);
}

.pce-icon--sm .pce-svg-icon {
	width: 14px;
	height: 14px;
}

.pce-card:hover .pce-icon {
	transform: scale(1.05);
}

.pce-tone--slate { background: rgba(255, 255, 255, 0.7); color: #334155; }
.pce-tone--navy { background: linear-gradient(135deg, #0A173B, #2563EB); color: #fff; }
.pce-tone--indigo { background: rgba(224, 231, 255, 0.7); color: #4338CA; }
.pce-tone--cyan { background: rgba(207, 250, 254, 0.7); color: #0E7490; }
.pce-tone--emerald { background: rgba(209, 250, 229, 0.7); color: #047857; }
.pce-tone--rose { background: rgba(255, 228, 230, 0.7); color: #BE123C; }
.pce-tone--purple { background: rgba(243, 232, 255, 0.7); color: #7E22CE; }
.pce-tone--crimson { background: rgba(255, 228, 230, 0.7); color: var(--pce-crimson); }

.pce-svg-icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

.pce-c-blue { color: #2563EB; }
.pce-c-slate { color: #334155; }
.pce-c-mint { color: #10B981; }

.pce-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.pce-dot--mint { background: #10B981; box-shadow: 0 0 8px #10B981; }
.pce-dot--amber { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }

/* ---------- Trust strip ---------- */

.pce-trust {
	position: relative;
	z-index: 2;
	padding-block: 1.25rem;
	background: rgba(255, 255, 255, 0.4);
	-webkit-backdrop-filter: blur(40px);
	backdrop-filter: blur(40px);
	border-block: 1px solid rgba(255, 255, 255, 0.6);
}

.pce-trust__row {
	gap: 0.75rem 3rem;
}

.pce-trust__item {
	gap: 0.625rem;
}

.pce-trust__item p {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	color: #1E293B;
}

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

.pce-hero {
	padding-top: clamp(3rem, 5vw, 4rem);
}

.pce-hero__pill a {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.375rem 1rem 0.375rem 0.375rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.68);
	-webkit-backdrop-filter: blur(18px) saturate(190%);
	backdrop-filter: blur(18px) saturate(190%);
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 12px 28px -6px rgba(10, 23, 59, 0.1), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
	color: #1E293B;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.pce-hero__pill a:hover {
	transform: scale(1.02);
	color: #1E293B;
}

.pce-hero__pill strong {
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: linear-gradient(90deg, #B82833, #7C3AED, #2563EB);
	color: #fff;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pce-hero__title {
	max-width: 14ch;
	margin-top: 1.75rem !important;
	text-shadow: 0 1px 2px rgba(10, 23, 59, 0.06);
}

/* ---------- Hero cost console ---------- */

.is-layout-constrained > .pce-console-wrap.alignwide,
.pce-console-wrap {
	position: relative;
	max-width: 960px;
	margin-top: clamp(3.5rem, 6vw, 5rem) !important;
	text-align: left;
}

.pce-console {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	font-size: 0.75rem;
	color: #1E293B;
}

.pce-console__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.pce-console__title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #334155;
}

.pce-traffic {
	display: inline-flex;
	gap: 6px;
	padding-right: 0.75rem;
	border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.pce-traffic i {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #EF4444;
	box-shadow: 0 0 8px #EF4444;
}

.pce-traffic i:nth-child(2) { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }
.pce-traffic i:nth-child(3) { background: #10B981; box-shadow: 0 0 8px #10B981; }

.pce-console__status {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.875rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.8);
	color: #065F46;
	font-weight: 700;
}

.pce-console__picker {
	margin-top: 1.25rem;
}

.pce-console__label {
	margin-bottom: 0.5rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #334155;
}

.pce-console__codes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.625rem;
}

@media (min-width: 600px) {
	.pce-console__codes {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.pce-code-btn {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.875rem;
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.45);
	color: #1E293B;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: all 0.2s ease;
}

.pce-code-btn:hover {
	background: rgba(255, 255, 255, 0.7);
}

.pce-code-btn:focus-visible,
.pce-cpt-tag:focus-visible,
.pce-action:focus-visible {
	outline: 2px solid var(--pce-blue);
	outline-offset: 2px;
}

.pce-code-btn__code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--pce-mono);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--pce-navy);
}

.pce-code-btn__check {
	width: 14px;
	height: 14px;
	visibility: hidden;
}

.pce-code-btn__name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: 500;
	color: #475569;
}

.pce-code-btn.is-active {
	background: var(--pce-navy);
	border-color: var(--pce-navy);
	color: #fff;
	transform: scale(1.02);
	box-shadow: 0 10px 20px -6px rgba(10, 23, 59, 0.4);
}

.pce-code-btn.is-active .pce-code-btn__code { color: #38BDF8; }
.pce-code-btn.is-active .pce-code-btn__check { visibility: visible; color: #fff; }
.pce-code-btn.is-active .pce-code-btn__name { color: #CBD5E1; }

.pce-console__body {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.6);
}

@media (min-width: 782px) {
	.pce-console__body {
		grid-template-columns: 5fr 7fr;
	}
}

.pce-console__gauge {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	border-radius: 1.5rem;
}

.pce-console__gauge svg {
	display: block;
	width: 100%;
	max-width: 340px;
	overflow: visible;
	filter: drop-shadow(0 4px 6px rgba(10, 23, 59, 0.1));
}

.pce-console__policy {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-weight: 600;
	color: #334155;
}

.pce-console__policy strong { color: #0F172A; }

.pce-console__policy .pce-mono {
	font-weight: 700;
	color: var(--pce-navy);
}

.pce-console__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.625rem;
	padding: 1rem;
	border-radius: 1rem;
	background: linear-gradient(90deg, rgba(10, 23, 59, 0.95), rgba(30, 41, 59, 0.9), rgba(10, 23, 59, 0.95));
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 20px 25px -5px rgba(10, 23, 59, 0.25);
	color: #fff;
}

.pce-console__total-label {
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #CBD5E1;
}

.pce-console__total-value {
	margin-top: 0.25rem;
	font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
}

.pce-console__contracted {
	padding-left: 1rem;
	border-left: 1px solid #334155;
	text-align: right;
	color: #CBD5E1;
}

.pce-console__contracted-value {
	font-size: 1.125rem;
	font-weight: 600;
	color: #38BDF8;
}

.pce-console__split {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	margin-top: 0.75rem;
	text-align: center;
}

.pce-console__split > div {
	display: flex;
	flex-direction: column;
	padding: 0.625rem;
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.8);
}

.pce-console__split span {
	font-size: 0.6875rem;
	font-weight: 500;
	color: #475569;
}

.pce-console__split strong {
	margin-top: 0.125rem;
	font-size: 0.875rem;
	color: #0F172A;
}

.pce-console__ai {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	margin-top: 0.75rem;
	padding: 0.75rem;
	border-radius: 0.75rem;
	background: rgba(236, 253, 245, 0.7);
	border: 1px solid rgba(167, 243, 208, 0.8);
	color: #166534;
	line-height: 1.5;
}

.pce-console__ai .pce-svg-icon {
	width: 16px;
	height: 16px;
	margin-top: 1px;
	color: #059669;
}

.pce-console__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.pce-action {
	display: inline-flex;
	flex: 1 1 120px;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	padding: 0.625rem 0.75rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.7);
	color: #1E293B;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.pce-action:hover { background: #fff; }

.pce-action .pce-svg-icon {
	width: 14px;
	height: 14px;
}

.pce-action--dark {
	background: var(--pce-navy);
	border-color: var(--pce-navy);
	color: #fff;
}

.pce-action--dark:hover { background: #1E293B; }

.pce-console__notice {
	margin-top: 0.5rem;
	padding: 0.375rem 0.75rem;
	border-radius: 0.5rem;
	background: rgba(209, 250, 229, 0.9);
	border: 1px solid #6EE7B7;
	color: #065F46;
	font-weight: 700;
	text-align: center;
	animation: pce-fade-up 0.25s ease;
}

.pce-console__notice[hidden] {
	display: none;
}

.pce-float {
	position: absolute;
	z-index: 3;
	display: none;
	align-items: center;
	gap: 0.625rem;
	padding: 0.625rem 1rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.68);
	-webkit-backdrop-filter: blur(18px) saturate(190%);
	backdrop-filter: blur(18px) saturate(190%);
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 12px 28px -6px rgba(10, 23, 59, 0.1);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--pce-navy);
	white-space: nowrap;
}

@media (min-width: 900px) {
	.pce-float { display: inline-flex; }
}

.pce-float--1 { left: -4%; top: 46%; animation: pce-bob 5s ease-in-out infinite; }
.pce-float--2 { right: -4%; top: 18%; animation: pce-bob 6s ease-in-out 0.8s infinite; }
.pce-float--3 { left: -2%; bottom: 12%; animation: pce-bob 5.5s ease-in-out 1.6s infinite; }
.pce-float--4 { right: -2%; bottom: 14%; animation: pce-bob 6.5s ease-in-out 2.4s infinite; }

.pce-needle {
	transform-origin: 300px 330px;
	animation: pce-needle 6s cubic-bezier(0.5, 0.05, 0.2, 1) infinite;
}

.pce-spin {
	transform-origin: 300px 330px;
	animation: pce-spin 40s linear infinite;
}

.pce-spin--rev {
	animation-direction: reverse;
	animation-duration: 55s;
}

.pce-ring-pulse {
	transform-box: fill-box;
	transform-origin: center;
	animation: pce-ring 2.8s ease-out infinite;
}

.pce-ring-pulse--late {
	animation-delay: 1.4s;
}

.pce-ping {
	animation: pce-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ---------- Feature bento ---------- */

.pce-bento {
	display: grid;
	gap: 1.5rem;
}

.pce-bento > * {
	margin-block: 0;
}

@media (min-width: 782px) {
	.pce-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pce-span-4 { grid-column: span 2; }
}

@media (min-width: 1024px) {
	.pce-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.pce-span-4 { grid-column: span 4; }
	.pce-span-3 { grid-column: span 3; }
	.pce-span-2 { grid-column: span 2; }
}

.pce-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 300px;
	padding: clamp(1.75rem, 3vw, 2.5rem);
}

.pce-tile.pce-span-4,
.pce-tile.pce-span-4 + .pce-span-2 {
	min-height: 360px;
}

.pce-tile h3 {
	margin-top: 0.625rem;
}

.pce-tile__title-lg {
	font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.125rem);
	line-height: 1.12;
}

.pce-tile > .pce-visual {
	margin-top: auto !important;
	padding-top: 1.5rem;
}

.pce-badge-dark {
	display: none;
	position: absolute;
	top: clamp(1.75rem, 3vw, 2.5rem);
	right: clamp(1.75rem, 3vw, 2.5rem);
	margin: 0 !important;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: var(--pce-navy);
	color: #fff;
	font-family: var(--pce-mono);
	font-size: 0.75rem !important;
}

.pce-badge-dark strong { color: #34D399; }

@media (min-width: 640px) {
	.pce-badge-dark { display: inline-block; }
}

.pce-viz-eligibility {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.pce-telemetry {
	padding: 0.875rem;
}

.pce-telemetry__label {
	font-family: var(--pce-mono);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #475569;
}

.pce-telemetry__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-top: 0.375rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #1E293B;
}

.pce-telemetry__row span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.pce-telemetry .pce-dot { box-shadow: none; }

.pce-radar {
	width: 100%;
	max-width: 280px;
	overflow: visible;
}

.pce-viz-bars {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-family: var(--pce-mono);
}

.pce-bar {
	padding: 0.625rem;
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.7);
}

.pce-bar__head {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.25rem;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #334155;
}

.pce-bar__head span:last-child { color: var(--pce-navy); }

.pce-bar__track {
	height: 8px;
	border-radius: 999px;
	background: #E2E8F0;
	overflow: hidden;
}

.pce-bar__fill {
	height: 100%;
	border-radius: 999px;
}

.pce-viz-end {
	display: flex;
	justify-content: flex-end;
}

.pce-viz-columns {
	width: 100%;
	max-width: 200px;
}

.pce-viz-lines {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.pce-viz-lines span {
	display: block;
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
}

.pce-viz-lines .pce-viz-lines__lead {
	width: 92%;
	height: 12px;
	background: linear-gradient(90deg, #6366F1, #B82833);
}

.pce-viz-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.pce-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.9);
	font-size: 0.75rem;
	font-weight: 700;
	color: #1E293B;
}

.pce-chip .pce-svg-icon {
	width: 16px;
	height: 16px;
}

.pce-cpt-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pce-cpt-tag {
	padding: 0.5rem 0.875rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.8);
	background: rgba(255, 255, 255, 0.6);
	color: #1E293B;
	font-family: var(--pce-mono);
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.pce-cpt-tag:hover { background: #fff; }

.pce-cpt-tag.is-active {
	background: var(--pce-navy);
	border-color: var(--pce-navy);
	color: #fff;
	transform: scale(1.05);
	box-shadow: 0 6px 14px -4px rgba(10, 23, 59, 0.4);
}

.pce-cpt-active {
	margin-top: 0.75rem;
	padding: 0.625rem;
	border-radius: 0.75rem;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 0.75rem;
	font-weight: 700;
	color: #334155;
}

.pce-cpt-active strong { color: #0F172A; }

/* ---------- Explainer ---------- */

.pce-explainer {
	gap: clamp(2.5rem, 5vw, 4rem);
}

.pce-explainer h2 {
	margin-top: 0;
}

.pce-prose p {
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
	line-height: 1.7;
}

.pce-prose .pce-note {
	padding-top: 0.5rem;
	font-size: 0.9375rem;
}

/* ---------- Blog cards ---------- */

.pce-posts .pce-grid {
	margin-top: 3rem;
}

.pce-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	overflow: hidden;
}

.pce-post-card > .pce-visual {
	margin: 0;
}

.pce-post-art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 180px;
	background: linear-gradient(135deg, rgba(10, 23, 59, 0.9), rgba(30, 41, 59, 0.8), rgba(184, 40, 51, 0.7));
	color: #fff;
}

.wp-block-post:nth-child(3n + 2) .pce-post-art {
	background: linear-gradient(135deg, rgba(10, 23, 59, 0.9), rgba(30, 58, 138, 0.8), rgba(37, 99, 235, 0.7));
}

.wp-block-post:nth-child(3n + 3) .pce-post-art {
	background: linear-gradient(135deg, rgba(10, 23, 59, 0.9), rgba(49, 46, 129, 0.8), rgba(124, 58, 237, 0.7));
}

.pce-post-art::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.2;
	background-image: linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
	background-size: 24px 24px;
}

.pce-post-art__badge {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.4);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease;
}

.pce-post-art__badge .pce-svg-icon {
	width: 24px;
	height: 24px;
}

.pce-post-card:hover .pce-post-art__badge {
	transform: scale(1.1);
}

.pce-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.75rem;
}

.pce-tag a,
.pce-tag {
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

.pce-tag a {
	display: inline-block;
	padding: 0.25rem 0.875rem;
	border-radius: 999px;
	background: rgba(255, 228, 230, 0.7);
	border: 1px solid #fff;
	color: #9F1239;
}

.pce-post-card__title {
	margin-top: 0.75rem;
	font-size: 1.25rem;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.pce-post-card__title a {
	transition: color 0.2s ease;
}

.pce-post-card:hover .pce-post-card__title a {
	color: var(--pce-crimson);
}

.pce-post-card .wp-block-read-more {
	margin-top: auto;
	padding-top: 1.5rem;
}

.pce-arrow-link a,
a.pce-arrow-link,
.wp-block-read-more.pce-arrow-link {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--pce-blue);
	text-decoration: none;
}

.pce-section-head .pce-arrow-link a {
	font-size: 1rem;
}

.pce-arrow-link a::after,
.wp-block-read-more.pce-arrow-link::after {
	content: " ↗";
}

.pce-arrow-link a:hover,
.wp-block-read-more.pce-arrow-link:hover {
	color: var(--pce-crimson);
}

/* No published posts yet: hide the homepage insights section on the live site. */
body:not(.editor-styles-wrapper) .pce-blog-section:has(.wp-block-query-no-results) {
	display: none;
}

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

.pce-faq {
	gap: clamp(2.5rem, 5vw, 4rem);
}

.pce-faq-list {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.pce-faq-list > * {
	margin-block: 0;
}

.is-style-pce-faq {
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.48);
	-webkit-backdrop-filter: blur(22px) saturate(190%);
	backdrop-filter: blur(22px) saturate(190%);
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 16px 40px -10px rgba(10, 23, 59, 0.08);
	overflow: hidden;
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.is-style-pce-faq:hover {
	background: rgba(255, 255, 255, 0.6);
}

.is-style-pce-faq[open] {
	background: rgba(255, 255, 255, 0.52);
	border-color: #fff;
	box-shadow: 0 24px 60px -15px rgba(10, 23, 59, 0.12);
}

.is-style-pce-faq > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem;
	list-style: none;
	cursor: pointer;
	font-size: clamp(1.125rem, 1rem + 0.3vw, 1.1875rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--pce-navy);
	transition: color 0.2s ease;
}

.is-style-pce-faq > summary::-webkit-details-marker {
	display: none;
}

.is-style-pce-faq > summary:hover {
	color: var(--pce-crimson);
}

.is-style-pce-faq > summary:focus-visible {
	outline: 2px solid var(--pce-blue);
	outline-offset: -2px;
	border-radius: 1rem;
}

.is-style-pce-faq > summary::after {
	content: "";
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #fff;
	background: rgba(255, 255, 255, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.is-style-pce-faq[open] > summary::after {
	transform: rotate(180deg);
	background-color: var(--pce-navy);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	border-color: var(--pce-navy);
}

.is-style-pce-faq > :not(summary) {
	margin: 0;
	padding: 0.25rem 1.5rem 1.5rem;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--pce-ink);
}

.is-style-pce-faq[open] > summary + * {
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.6);
}

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

.pce-footer {
	padding-block: 4rem 3rem;
	background: rgba(255, 255, 255, 0.5);
	-webkit-backdrop-filter: blur(40px);
	backdrop-filter: blur(40px);
	border-top: 1px solid rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	color: var(--pce-ink);
}

.pce-footer__grid {
	display: grid;
	gap: 2.5rem;
}

.pce-footer__grid > * {
	margin-block: 0;
}

@media (min-width: 782px) {
	.pce-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.pce-footer__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3rem; }
	.pce-footer__brand { grid-column: span 2; }
}

.pce-footer__brand p {
	max-width: 26em;
	margin-top: 1rem;
	color: var(--pce-muted);
	line-height: 1.65;
}

.pce-footer__col h3 {
	margin: 0 0 0.875rem;
	font-size: 0.875rem;
	letter-spacing: 0;
}

.pce-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pce-footer__links a {
	font-weight: 500;
	color: var(--pce-muted);
	text-decoration: none;
}

.pce-footer__links a:hover {
	color: var(--pce-navy);
}

.pce-footer__disclaimer {
	margin-top: 3rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.6);
	font-size: 0.75rem;
	line-height: 1.65;
	color: var(--pce-subtle);
}

.pce-footer__bottom {
	margin-top: 1.5rem !important;
	gap: 0.75rem;
	font-size: 0.8125rem;
	color: var(--pce-subtle);
}

.pce-footer__bottom p {
	margin: 0;
}

.pce-footer__bottom .pce-mono {
	font-size: 0.75rem;
}

/* ---------- Inner pages and posts ---------- */

.pce-main.pce-section > .wp-block-post-title,
.pce-main.pce-section article > .wp-block-post-title {
	margin-bottom: 1.5rem;
}

.pce-meta {
	color: var(--pce-subtle);
	font-size: 0.875rem;
}

.pce-featured img {
	border-radius: var(--pce-radius-card);
}

.pce-prose a {
	text-underline-offset: 2px;
}

.wp-block-query-pagination {
	margin-top: 3rem;
	font-weight: 700;
}

.pce-search {
	max-width: 520px;
}

/* ---------- Lead form (markup from the PCE Site Core plugin) ---------- */

.pce-form {
	display: grid;
	gap: 1.25rem;
	max-width: 640px;
	margin-inline: auto;
}

@media (min-width: 600px) {
	.pce-form__row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.pce-form__row > .pce-field + .pce-field {
	margin-top: 1.25rem;
}

@media (min-width: 600px) {
	.pce-form__row > .pce-field + .pce-field {
		margin-top: 0;
	}
}

.pce-field label {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--pce-muted);
}

.pce-field .pce-req {
	color: var(--pce-crimson);
}

.pce-field input,
.pce-field select,
.pce-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	border: 1px solid #E2E8F0;
	background: #fff;
	color: var(--pce-navy);
	font: inherit;
	font-size: 0.9375rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pce-field input:focus,
.pce-field select:focus,
.pce-field textarea:focus {
	outline: none;
	border-color: var(--pce-blue);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.pce-field__help {
	margin: 0.375rem 0 0;
	font-size: 0.75rem;
	color: var(--pce-subtle);
}

.pce-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pce-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 0.875rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--pce-crimson);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 25px rgba(184, 40, 51, 0.32);
	transition: background 0.2s ease, transform 0.2s ease;
}

.pce-form__submit:hover {
	background: var(--pce-crimson-hover);
	transform: translateY(-1px);
}

.pce-form__fineprint {
	margin: 0;
	text-align: center;
	font-size: 0.75rem;
	color: var(--pce-subtle);
}

.pce-form-message {
	max-width: 640px;
	margin: 0 auto 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 1rem;
	font-weight: 600;
}

.pce-form-message--success {
	background: rgba(209, 250, 229, 0.85);
	border: 1px solid #6EE7B7;
	color: #065F46;
}

.pce-form-message--error {
	background: rgba(255, 228, 230, 0.85);
	border: 1px solid #FDA4AF;
	color: #9F1239;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.pce-js .pce-animate {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s var(--pce-ease), transform 0.6s var(--pce-ease);
}

.pce-js .pce-animate.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Keyframes ---------- */

@keyframes pce-orb-a {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(40px, -50px) scale(1.08); }
	66% { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes pce-orb-b {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(-50px, 40px) scale(1.06); }
	66% { transform: translate(35px, -35px) scale(0.94); }
}

@keyframes pce-needle {
	0% { transform: rotate(-75deg); }
	35% { transform: rotate(32deg); }
	55%, 75% { transform: rotate(18deg); }
	100% { transform: rotate(-75deg); }
}

@keyframes pce-spin {
	to { transform: rotate(360deg); }
}

@keyframes pce-ring {
	0% { transform: scale(1); opacity: 0.9; }
	100% { transform: scale(2.4); opacity: 0; }
}

@keyframes pce-ping {
	75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes pce-pulse {
	50% { opacity: 0.5; }
}

@keyframes pce-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@keyframes pce-fade-up {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	::before,
	::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
