/*
 * PIXVA v12 — design system.
 *
 * One place for every visual decision, so the whole site speaks one language.
 * Loaded last, on top of theme.css / premium.css / brand-v4.css.
 *
 * Sources of the patterns, and what was taken from each:
 *   minimal.gallery     restraint — whitespace over boxes, hairlines over borders
 *   bentogrids.com      asymmetric grids where size itself signals importance
 *   landingfolio.com    section rhythm: eyebrow → title → lead → content → action
 *   cta.gallery         one primary button per view; hover lifts, arrow slides
 *   navbargallery.com   sticky chrome that compacts on scroll, centre-out underline
 *   footer.design       column grid with small-caps headings and a quiet legal row
 *   thefwa.com / awwwards  bold display type, one accent used sparingly
 *   typewolf.com        a real type scale with negative tracking as size grows
 *
 * Everything is written with logical properties, so it works unchanged in RTL
 * and LTR. Nothing here depends on JavaScript; motion-v11.js only adds polish.
 */

/* ============================================================= 1. tokens = */

:root {
	/* ---- palette: tints derived from the theme's own primary ------------ */
	--px-c-primary:        var(--px-primary, #0B5B78);
	--px-c-primary-hover:  var(--px-hover, #084A63);
	--px-c-primary-dark:   var(--px-dark, #06384B);
	--px-c-secondary:      var(--px-secondary, #16736D);
	--px-c-accent:         var(--px-accent, #E9782B);

	--px-c-ink:            var(--px-text, #17252B);
	--px-c-body:           #3C5763;
	--px-c-muted:          var(--px-muted, #617078);
	--px-c-faint:          #8FA4AD;
	--px-c-line:           var(--px-border, #D9E2E5);
	--px-c-line-soft:      #E9F0F2;
	--px-c-surface:        var(--px-surface, #FFF);
	--px-c-surface-alt:    var(--px-alt, #EFF4F5);
	--px-c-canvas:         var(--px-bg, #F7F9FA);

	--px-c-ok:             var(--px-success, #19734C);
	--px-c-ok-bg:          #E7F4ED;
	--px-c-warn:           #8A5A0B;
	--px-c-warn-bg:        #FDF3E2;
	--px-c-bad:            var(--px-error, #B42318);
	--px-c-bad-bg:         #FDECEA;

	/* ---- type scale: fluid between two stops, never too big on mobile --- */
	--px-t-display: clamp(2.375rem, 1.6rem + 3.4vw, 4rem);      /* 38 → 64 */
	--px-t-hero:    clamp(1.75rem, 1.05rem + 2vw, 3rem);      /* 28 → 48 */
	--px-t-h1:      clamp(1.875rem, 1.4rem + 2.1vw, 2.75rem);   /* 30 → 44 */
	--px-t-h2:      clamp(1.5rem, 1.25rem + 1.1vw, 2rem);       /* 24 → 32 */
	--px-t-h3:      clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem);/* 19 → 23 */
	--px-t-h4:      1.0625rem;
	--px-t-card:    clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); /* 18 → 21 */
	--px-t-lead:    clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	--px-t-body:    1rem;
	--px-t-small:   0.875rem;
	--px-t-micro:   0.75rem;

	--px-t-leading-tight: 1.3;
	--px-t-leading-snug:  1.55;
	--px-t-leading-body:  1.85;

	/* Tracking narrows as type grows, or large text looks loose. */
	--px-t-track-display: -0.025em;
	--px-t-track-title:   -0.012em;
	--px-t-track-micro:    0.1em;

	/* ---- spacing: one 4px base, fluid at the section level ------------- */
	--px-s-0:  0;
	--px-s-1:  0.25rem;
	--px-s-2:  0.5rem;
	--px-s-3:  0.75rem;
	--px-s-4:  1rem;
	--px-s-5:  1.25rem;
	--px-s-6:  1.5rem;
	--px-s-8:  2rem;
	--px-s-10: 2.5rem;
	--px-s-12: 3rem;
	--px-s-16: 4rem;
	--px-section-y:  clamp(2.75rem, 1.5rem + 5vw, 5.5rem);
	--px-gap:        clamp(1rem, 0.6rem + 1.2vw, 1.75rem);

	/* ---- radii: one family, so nothing looks borrowed from elsewhere --- */
	--px-r-sm:   8px;
	--px-r-md:   12px;
	--px-r-lg:   16px;
	--px-r-xl:   22px;
	--px-r-pill: 999px;

	/* ---- elevation: five steps, each usable on its own ------------------ */
	--px-e-0: none;
	--px-e-1: 0 1px 2px rgba(6, 56, 75, .05);
	--px-e-2: 0 2px 8px rgba(6, 56, 75, .07);
	--px-e-3: 0 8px 22px rgba(6, 56, 75, .09);
	--px-e-4: 0 18px 44px rgba(6, 56, 75, .13);
	--px-ring: 0 0 0 3px rgba(11, 91, 120, .28);

	/* ---- motion -------------------------------------------------------- */
	--px-d-fast: 140ms;
	--px-d-mid:  240ms;
	--px-d-slow: 420ms;
	--px-ease:   cubic-bezier(.2, .7, .3, 1);

	/* ---- layout -------------------------------------------------------- */
	--px-wrap:      var(--px-container, 1184px);
	--px-wrap-prose: 68ch;
	--px-header-h:  72px;

	/* ---- stacking ------------------------------------------------------ */
	--px-z-base: 1;
	--px-z-header: 40;
	--px-z-drawer: 50;
	--px-z-modal: 60;
	--px-z-top: 70;
}

/* ========================================================= 2b. svg sizes = */

/*
 * The theme sizes its own icons from CSS with `svg { width: 24px; height: 24px }`.
 * A stylesheet rule always outranks a width/height *attribute*, so any SVG that
 * declares its own size — the captcha image, an embedded chart, a pasted logo —
 * was being crushed into a 24px stamp. Give those back their intrinsic size.
 */
svg[width],
svg[height] {
	inline-size: auto;
	block-size: auto;
	flex: none;
}

/* ======================================================== 2. base layer = */

.px-container {
	width: min(calc(100% - clamp(2rem, 1rem + 4vw, 4rem)), var(--px-wrap));
	margin-inline: auto;
}

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

body { color: var(--px-c-body); }

h1, h2, h3, h4 { color: var(--px-c-ink); }

h1 { font-size: var(--px-t-h1);       line-height: var(--px-t-leading-tight); letter-spacing: var(--px-t-track-title); }
h2 { font-size: var(--px-t-h2);       line-height: var(--px-t-leading-snug);  letter-spacing: var(--px-t-track-title); }
h3 { font-size: var(--px-t-h3);       line-height: var(--px-t-leading-snug); }
h4 { font-size: var(--px-t-h4); }

p  { line-height: var(--px-t-leading-body); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--px-c-primary);
	outline-offset: 3px;
	border-radius: var(--px-r-sm);
}

::selection { background: rgba(11, 91, 120, .14); }

/* Numbers in tables and counters must not jitter or misalign. */
.px-ds-num,
.px10-bento__value,
.px-ds-stat__value {
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* ======================================================== 3. eyebrow === */

/* The small line above a title. It names the section so the title can be short. */
.px-ds-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--px-s-2);
	margin: 0 0 var(--px-s-3);
	font-size: var(--px-t-micro);
	font-weight: 800;
	letter-spacing: var(--px-t-track-micro);
	text-transform: uppercase;
	color: var(--px-c-secondary);
}

.px-ds-eyebrow::before {
	content: '';
	inline-size: 18px;
	block-size: 2px;
	border-radius: 2px;
	background: var(--px-c-accent);
}

.px-ds-eyebrow--plain::before { display: none; }

/* ======================================================== 4. sections === */

/*
 * Section rhythm (landingfolio): eyebrow names it, one title states it, one
 * lead sentence explains it, then the content, then a single action. Keeping
 * that order on every section is what makes a long page feel calm.
 */
.px-ds-sec { padding-block: var(--px-section-y); }
.px-ds-sec--alt { background: var(--px-c-surface-alt); }
.px-ds-sec--ink {
	background: var(--px-c-primary-dark);
	color: #D7E8EE;
}
.px-ds-sec--ink .px-ds-eyebrow { color: #7BD5C2; }
.px-ds-sec--ink h2, .px-ds-sec--ink h3 { color: #fff; }
.px-ds-sec--ink p { color: #C2D8E1; }

.px-ds-sec__head {
	max-width: var(--px-wrap-prose);
	margin-block-end: var(--px-s-10);
}

.px-ds-sec__head--center {
	margin-inline: auto;
	text-align: center;
}

.px-ds-sec__head--center .px-ds-eyebrow { justify-content: center; }
.px-ds-sec__head--center .px-ds-eyebrow::before { display: none; }
.px-ds-sec__head--center .px-ds-eyebrow::after {
	content: '';
	inline-size: 18px;
	block-size: 2px;
	border-radius: 2px;
	background: var(--px-c-accent);
}

.px-ds-sec__title {
	margin: 0 0 var(--px-s-4);
	font-size: var(--px-t-h2);
	letter-spacing: var(--px-t-track-title);
}

.px-ds-sec__lead {
	margin: 0;
	font-size: var(--px-t-lead);
	line-height: var(--px-t-leading-body);
	color: var(--px-c-muted);
}

/* ========================================================== 5. buttons = */

/*
 * One filled button per view; everything else is outline or quiet text.
 * The arrow slides on hover on tertiary actions — movement without noise.
 */
/*
 * `.px-btn` is the documented class; `.px-button` is the theme's historical one.
 * Both are governed here so the whole site upgrades at once instead of drifting.
 */
.px-btn,
.px-button {
	--_bg: var(--px-c-primary);
	--_fg: #fff;
	--_bd: var(--px-c-primary);

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--px-s-2);
	min-height: 48px;
	padding: 0.6875rem 1.375rem;
	border: 1px solid var(--_bd);
	border-radius: var(--px-r-md);
	background: var(--_bg);
	color: var(--_fg);
	font-size: var(--px-t-small);
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--px-d-fast) var(--px-ease),
	            border-color var(--px-d-fast) var(--px-ease),
	            color var(--px-d-fast) var(--px-ease),
	            transform var(--px-d-fast) var(--px-ease),
	            box-shadow var(--px-d-mid) var(--px-ease);
}

.px-btn:hover,
.px-button:hover {
	background: var(--px-c-primary-hover);
	border-color: var(--px-c-primary-hover);
	color: var(--_fg);
	transform: translateY(-1px);
	box-shadow: var(--px-e-2);
	text-decoration: none;
}

.px-btn:active,
.px-button:active { transform: translateY(0); box-shadow: var(--px-e-1); }

.px-btn[aria-disabled='true'],
.px-button[disabled],
.px-btn:disabled {
	opacity: .5;
	pointer-events: none;
	transform: none;
	box-shadow: none;
}

/* Variants */
.px-btn--secondary,
.px-button--outline {
	--_bg: transparent;
	--_fg: var(--px-c-primary);
	--_bd: #B9D3DC;
	--_bd: color-mix(in srgb, var(--px-c-primary) 30%, transparent);
}
.px-btn--secondary:hover,
.px-button--outline:hover {
	background: #EDF5F8;
	background: color-mix(in srgb, var(--px-c-primary) 8%, transparent);
	border-color: var(--px-c-primary);
	color: var(--px-c-primary);
}

.px-btn--quiet,
.px-text-link {
	--_bg: transparent;
	--_fg: var(--px-c-primary);
	--_bd: transparent;
	min-height: 40px;
	padding-inline: var(--px-s-2);
}
.px-btn--quiet:hover,
.px-text-link:hover {
	background: transparent;
	border-color: transparent;
	color: var(--px-c-primary-hover);
	box-shadow: none;
}

.px-btn--onink,
.px-button--light {
	--_bg: #fff;
	--_fg: var(--px-c-primary-dark);
	--_bd: #fff;
}
.px-btn--onink:hover,
.px-button--light:hover { background: #EAF3F6; border-color: #EAF3F6; color: var(--px-c-primary-dark); }

.px-btn--danger {
	--_bg: var(--px-c-bad);
	--_bd: var(--px-c-bad);
}
.px-btn--danger:hover { background: #8E1B12; border-color: #8E1B12; }

/* Sizes */
.px-btn--lg,
.px-button--lg { min-height: 56px; padding-inline: 1.75rem; font-size: var(--px-t-body); }
.px-btn--sm,
.px-button--sm { min-height: 38px; padding-inline: var(--px-s-4); font-size: var(--px-t-micro); }
.px-btn--block,
.px-button--block { display: flex; inline-size: 100%; }

/* Arrow that slides — the quietest way to say "this goes somewhere". */
.px-btn__arrow,
.px-text-link svg {
	display: inline-block;
	transition: transform var(--px-d-mid) var(--px-ease);
}
.px-btn:hover .px-btn__arrow,
.px-text-link:hover svg { transform: translateX(-4px); }

[dir='ltr'] .px-btn:hover .px-btn__arrow,
[dir='ltr'] .px-text-link:hover svg { transform: translateX(4px); }

.px-btn svg,
.px-button svg { inline-size: 18px; block-size: 18px; flex: none; }

/* A row of actions that wraps well on narrow screens. */
.px-ds-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--px-s-3);
	margin-block-start: var(--px-s-8);
}

.px-ds-actions--center { justify-content: center; }

/* =========================================================== 6. cards === */

/*
 * Restraint over decoration (minimal.gallery): a card is a hairline and some
 * air. Elevation appears only when the card is actually clickable.
 */
.px-ds-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--px-s-3);
	padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
	background: var(--px-c-surface);
	border: 1px solid var(--px-c-line);
	border-radius: var(--px-r-lg);
}

.px-ds-card--flush { padding: 0; overflow: hidden; }
.px-ds-card--alt  { background: var(--px-c-surface-alt); border-color: transparent; }
.px-ds-card--accent {
	background: linear-gradient(145deg, var(--px-c-primary), #0E7EA6);
	border-color: var(--px-c-primary);
	color: #fff;
}
.px-ds-card--accent .px-ds-card__title,
.px-ds-card--accent .px-ds-card__text { color: #DCEEF4; }
.px-ds-card--accent .px-ds-card__title { color: #fff; }

.px-ds-card__icon {
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: var(--px-r-md);
	background: #EAF3F6;
	background: color-mix(in srgb, var(--px-c-primary) 9%, transparent);
	color: var(--px-c-primary);
}
.px-ds-card__icon svg { inline-size: 22px; block-size: 22px; }
.px-ds-card--accent .px-ds-card__icon {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.px-ds-card__title {
	margin: 0;
	font-size: var(--px-t-card);
	font-weight: 800;
	line-height: var(--px-t-leading-snug);
	color: var(--px-c-ink);
}

.px-ds-card__text {
	margin: 0;
	font-size: var(--px-t-small);
	line-height: var(--px-t-leading-body);
	color: var(--px-c-muted);
}

.px-ds-card__foot { margin-block-start: auto; padding-block-start: var(--px-s-2); }

/* An interactive card is a single link wrapping everything, so the whole
   surface is clickable and keyboard focus lands once. */
.px-ds-card--link {
	text-decoration: none;
	transition: transform var(--px-d-mid) var(--px-ease),
	            box-shadow var(--px-d-mid) var(--px-ease),
	            border-color var(--px-d-mid) var(--px-ease);
}

.px-ds-card--link:hover {
	transform: translateY(-3px);
	border-color: #A9C9D4;
	border-color: color-mix(in srgb, var(--px-c-primary) 40%, var(--px-c-line));
	box-shadow: var(--px-e-3);
}

.px-ds-card--link:hover .px-ds-card__title { color: var(--px-c-primary); }

/* Grids */
.px-ds-grid {
	display: grid;
	gap: var(--px-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.px-ds-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.px-ds-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

/* ========================================================== 7. stats ==== */

.px-ds-stat__value {
	display: block;
	font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: var(--px-t-track-display);
	color: var(--px-c-primary);
}

.px-ds-stat__label {
	display: block;
	margin-block-start: var(--px-s-2);
	font-size: var(--px-t-small);
	color: var(--px-c-muted);
}

.px-ds-statband {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: var(--px-gap);
	padding-block: var(--px-s-8);
	border-block: 1px solid var(--px-c-line);
	text-align: center;
}

.px-ds-sec--ink .px-ds-stat__value { color: #7BD5C2; }
.px-ds-sec--ink .px-ds-stat__label { color: #A9C8D4; }
.px-ds-sec--ink .px-ds-statband { border-color: rgba(255, 255, 255, .16); }

/* ========================================================= 8. pricing === */

/* landing.gallery: the recommended plan is marked by height and a hairline
   accent — not by a different colour for every column. */
.px-ds-price {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--px-s-5);
	padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	background: var(--px-c-surface);
	border: 1px solid var(--px-c-line);
	border-radius: var(--px-r-lg);
}

.px-ds-price--featured {
	border-color: var(--px-c-primary);
	box-shadow: var(--px-e-3);
}

.px-ds-price__badge {
	position: absolute;
	inset-block-start: 0;
	inset-inline-end: var(--px-s-6);
	transform: translateY(-50%);
	padding: 0.25rem 0.75rem;
	border-radius: var(--px-r-pill);
	background: var(--px-c-primary);
	color: #fff;
	font-size: var(--px-t-micro);
	font-weight: 800;
	letter-spacing: 0.02em;
}


.px-ds-price__name {
	margin: 0;
	font-size: var(--px-t-card);
	font-weight: 800;
	color: var(--px-c-ink);
}

.px-ds-price__amount {
	display: flex;
	align-items: baseline;
	gap: var(--px-s-2);
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
	font-weight: 800;
	letter-spacing: var(--px-t-track-title);
	color: var(--px-c-ink);
}

.px-ds-price__unit {
	font-size: var(--px-t-small);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--px-c-muted);
}

.px-ds-price__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--px-s-3);
	font-size: var(--px-t-small);
}

.px-ds-price__list li {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: var(--px-s-2);
	align-items: start;
	line-height: 1.7;
}

.px-ds-price__list li::before {
	content: '';
	inline-size: 18px;
	block-size: 18px;
	margin-block-start: 4px;
	border-radius: 50%;
	background: var(--px-c-ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319734C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.px-ds-price__foot { margin-block-start: auto; }

/* ====================================================== 9. testimonial = */

.px-ds-quote {
	margin: 0;
	padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
	background: var(--px-c-surface);
	border: 1px solid var(--px-c-line);
	border-radius: var(--px-r-lg);
}

.px-ds-quote__text {
	margin: 0 0 var(--px-s-5);
	font-size: var(--px-t-lead);
	line-height: var(--px-t-leading-body);
	color: var(--px-c-ink);
}

.px-ds-quote__by {
	display: flex;
	align-items: center;
	gap: var(--px-s-3);
	font-size: var(--px-t-small);
}

.px-ds-quote__avatar {
	inline-size: 40px;
	block-size: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.px-ds-quote__name { font-weight: 700; color: var(--px-c-ink); }
.px-ds-quote__role { color: var(--px-c-muted); }

/* ============================================================ 10. FAQ === */

.px-ds-faq {
	display: grid;
	gap: var(--px-s-3);
	max-width: var(--px-wrap-prose);
}

.px-ds-faq__item {
	background: var(--px-c-surface);
	border: 1px solid var(--px-c-line);
	border-radius: var(--px-r-md);
	overflow: hidden;
}

.px-ds-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--px-s-4);
	padding: var(--px-s-4) var(--px-s-5);
	font-size: var(--px-t-small);
	font-weight: 700;
	color: var(--px-c-ink);
	cursor: pointer;
	list-style: none;
}

.px-ds-faq__q::-webkit-details-marker { display: none; }

.px-ds-faq__q::after {
	content: '';
	inline-size: 10px;
	block-size: 10px;
	flex: none;
	border-inline-end: 2px solid var(--px-c-primary);
	border-block-end: 2px solid var(--px-c-primary);
	transform: rotate(45deg) translateY(-2px);
	transition: transform var(--px-d-mid) var(--px-ease);
}

.px-ds-faq__item[open] .px-ds-faq__q::after { transform: rotate(-135deg) translateY(-2px); }

.px-ds-faq__a {
	padding: 0 var(--px-s-5) var(--px-s-5);
	font-size: var(--px-t-small);
	line-height: var(--px-t-leading-body);
	color: var(--px-c-muted);
}

/* ========================================================= 11. badges === */

.px-ds-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--px-s-1);
	padding: 0.1875rem 0.625rem;
	border-radius: var(--px-r-pill);
	background: var(--px-c-surface-alt);
	color: var(--px-c-body);
	font-size: var(--px-t-micro);
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
}

.px-ds-badge--ok   { background: var(--px-c-ok-bg);   color: var(--px-c-ok); }
.px-ds-badge--warn { background: var(--px-c-warn-bg); color: var(--px-c-warn); }
.px-ds-badge--bad  { background: var(--px-c-bad-bg);  color: var(--px-c-bad); }
.px-ds-badge--brand {
	background: #EAF3F6;
	background: color-mix(in srgb, var(--px-c-primary) 10%, transparent);
	color: var(--px-c-primary);
}

/* ================================================== 12. header (nav) === */

/* A thin announcement bar above the header: one line, one link. */
.px-announce {
	background: var(--px-c-primary-dark);
	color: #CFE6EE;
	font-size: var(--px-t-micro);
}

.px-announce .px-announce__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--px-s-3);
	min-height: 34px;
	text-align: center;
}

.px-announce a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.px-header { border-block-end: 1px solid var(--px-c-line); }

.px-header__inner { min-height: var(--px-header-h); }

/*
 * Bigger, calmer submenus than a bare list. Scoped above the drawer breakpoint
 * on purpose: below it theme.css flattens the submenu into the drawer, and a
 * forced shadow or a hard-coded border would undo that.
 */
@media (min-width: 992px) {
	.px-menu .sub-menu {
		min-width: 240px;
		padding: var(--px-s-2);
		border: 1px solid var(--px-c-line);
		border-radius: var(--px-r-md);
		box-shadow: var(--px-e-3);
	}

	.px-menu .sub-menu a {
		padding: var(--px-s-2) var(--px-s-3);
		border-radius: var(--px-r-sm);
		font-weight: 500;
		transition: background-color var(--px-d-fast) var(--px-ease),
		            color var(--px-d-fast) var(--px-ease);
	}

	.px-menu .sub-menu a:hover {
		background: var(--px-c-surface-alt);
		color: var(--px-c-primary);
	}
}

/* Mobile drawer: full-width sheet rather than a cramped dropdown. */
@media (max-width: 991px) {
	.px-navigation {
		padding: var(--px-s-5) var(--px-s-5) var(--px-s-8);
		border-block-end: 1px solid var(--px-c-line);
		box-shadow: var(--px-e-4);
	}

	.px-menu > li > a {
		padding-block: var(--px-s-3);
		border-block-end: 1px solid var(--px-c-line-soft);
	}

	.px-menu > li:last-child > a { border-block-end: 0; }

	.px-navigation .px-menu {
		font-size: var(--px-t-body);
	}
}

/* ================================================== 13. footer (grid) == */

.px-footer {
	background: var(--px-c-primary-dark);
	color: #C7DDE6;
	padding-block-start: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.px-footer h2 { color: #fff; }

/* Five-column skeleton: brand takes two, the rest one each. */
@media (min-width: 1100px) {
	.px-footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.15fr 1.35fr; gap: clamp(1.5rem, 1rem + 1.6vw, 3rem); }

	/* Without the newsletter (plugin inactive) there are only four columns. */
	.px-footer__grid--4 { grid-template-columns: 1.8fr 1fr 1fr 1.3fr; }
}

@media (min-width: 700px) and (max-width: 1099px) {
	.px-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.px-footer__grid > div:first-child,
	.px-footer__grid > div:last-child { grid-column: 1 / -1; }

	.px-footer__grid--4 { grid-template-columns: 1fr 1fr; }
	.px-footer__grid--4 > div:first-child { grid-column: 1 / -1; }
	.px-footer__grid--4 > div:last-child { grid-column: auto; }
}

.px-footer__grid > div:first-child { max-width: 34ch; }

.px-footer p { font-size: var(--px-t-small); line-height: var(--px-t-leading-body); }

.px-footer__tag {
	display: inline-block;
	margin-block-start: var(--px-s-4);
	padding: 0.3125rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--px-r-pill);
	font-size: var(--px-t-micro);
	letter-spacing: 0.02em;
	color: #A9C8D4;
}

.px-footer__phone {
	display: inline-block;
	margin-block-end: var(--px-s-3);
	font-size: var(--px-t-lead);
	font-weight: 800;
	letter-spacing: var(--px-t-track-title);
	color: #fff;
	direction: ltr;
}

.px-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--px-s-4);
	margin-block-start: var(--px-s-10);
	padding-block: var(--px-s-5);
	border-block-start: 1px solid rgba(255, 255, 255, .12);
	font-size: var(--px-t-micro);
	color: #93B4C2;
}

.px-footer__bottom > div { display: flex; flex-wrap: wrap; gap: var(--px-s-5); }
.px-footer__bottom a { color: #C7DDE6; }
.px-footer__bottom a:hover { color: #fff; }

/* Newsletter inside the footer, aligned with the grid above it. */
.px-footer__news { margin-block-start: var(--px-s-6); }

.px-newsletter-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--px-s-3); max-width: 30rem; }

.px-newsletter-form label { color: #A9C8D4; font-size: var(--px-t-micro); }

.px-newsletter-form input[type='email'] {
	inline-size: 100%;
	min-height: 44px;
	padding-inline: var(--px-s-4);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--px-r-md);
	background: rgba(255, 255, 255, .07);
	color: #fff;
	direction: ltr;
}

.px-newsletter-form input[type='email']::placeholder { color: #8FB2C1; }
.px-newsletter-form input[type='email']:focus-visible { outline-color: #7BD5C2; }

.px-newsletter-consent {
	display: flex;
	align-items: start;
	gap: var(--px-s-2);
	font-size: var(--px-t-micro);
	line-height: 1.8;
	color: #A9C8D4;
}

.px-newsletter-consent input { margin-block-start: 4px; flex: none; accent-color: var(--px-c-secondary); }

.px-newsletter-form > button[type='submit'] {
	grid-row: auto;
	grid-column: 1;
	inline-size: 100%;
	min-height: 48px;
	padding-inline: var(--px-s-5);
	border: 0;
	border-radius: var(--px-r-md);
	background: #fff;
	color: var(--px-c-primary-dark);
	font-size: var(--px-t-small);
	font-weight: 800;
	cursor: pointer;
	transition: background-color var(--px-d-fast) var(--px-ease),
	            transform var(--px-d-fast) var(--px-ease);
}

.px-newsletter-form > button[type='submit']:hover { background: #D8EAF0; transform: translateY(-1px); }

.px-newsletter-form .px7-captcha { margin-block: 0; }

.px-newsletter-result { margin: 0; font-size: var(--px-t-micro); color: #7BD5C2; }
.px-newsletter-result:empty { display: none; }

@media (max-width: 639px) {
	.px-footer__bottom { justify-content: center; text-align: center; }
}

/* ========================================================== 14. forms === */

.px-ds-field { display: grid; gap: var(--px-s-2); margin-block-end: var(--px-s-5); }

.px-ds-field > label {
	font-size: var(--px-t-small);
	font-weight: 700;
	color: var(--px-c-ink);
}

.px-ds-field input,
.px-ds-field select,
.px-ds-field textarea {
	min-height: 48px;
	padding: var(--px-s-3) var(--px-s-4);
	border: 1px solid var(--px-c-line);
	border-radius: var(--px-r-md);
	background: var(--px-c-surface);
	color: var(--px-c-ink);
	transition: border-color var(--px-d-fast) var(--px-ease),
	            box-shadow var(--px-d-fast) var(--px-ease);
}

.px-ds-field input:hover,
.px-ds-field select:hover,
.px-ds-field textarea:hover {
	border-color: #A9C9D4;
	border-color: color-mix(in srgb, var(--px-c-primary) 35%, var(--px-c-line));
}

.px-ds-field input:focus,
.px-ds-field select:focus,
.px-ds-field textarea:focus {
	border-color: var(--px-c-primary);
	box-shadow: var(--px-ring);
	outline: none;
}

.px-ds-hint { font-size: var(--px-t-micro); color: var(--px-c-muted); }

/* ====================================================== 15. divider & cta = */

.px-ds-rule {
	block-size: 1px;
	border: 0;
	margin: 0;
	background: var(--px-c-line);
}

/* The closing band: one question, one button, nothing else competing. */
.px-ds-cta {
	display: grid;
	gap: var(--px-s-5);
	align-items: center;
	padding: clamp(1.75rem, 1.4rem + 1.6vw, 3rem);
	border-radius: var(--px-r-xl);
	background: linear-gradient(140deg, var(--px-c-primary), #0E7EA6);
	color: #DCEEF4;
}

@media (min-width: 800px) {
	.px-ds-cta { grid-template-columns: 1.4fr auto; }
}

.px-ds-cta h2 { margin: 0; font-size: var(--px-t-h2); color: #fff; }
.px-ds-cta p { margin: var(--px-s-3) 0 0; color: #C8E3EC; }
.px-ds-cta .px-ds-actions { margin: 0; }

/* ===================================================== 16. breakpoints == */

/*
 * One ladder, used consistently:
 *   ≥1200  full desktop
 *   ≥900   tablet landscape — multi-column footers, bento, CTA split
 *   ≥640   large phone
 *   <640   phone — everything single column, actions full width
 */
@media (max-width: 699px) {
	.px-footer__grid { grid-template-columns: 1fr; gap: var(--px-s-8); }
	.px-footer__grid > div { grid-column: auto !important; max-width: none; }
	.px-newsletter-form { max-width: none; }
}

@media (max-width: 639px) {
	.px-section__head { align-items: flex-start; }
	.px-hero h1 { max-width: none; }

	/* auto-fit would collapse both of these to one tall column on a phone. */
	.px-trust__grid { grid-template-columns: 1fr 1fr; gap: var(--px-s-6) var(--px-s-5); }
	.px-process { grid-template-columns: 1fr 1fr; gap: var(--px-s-8) var(--px-s-5); }
	.px-ds-actions { flex-direction: column; align-items: stretch; }
	.px-ds-actions .px-btn,
	.px-ds-actions .px-button { inline-size: 100%; }
	.px-ds-statband { grid-template-columns: repeat(2, 1fr); row-gap: var(--px-s-8); }
	.px-announce__inner { font-size: 11px; }
	.px-ds-cta { text-align: center; }
	.px-ds-cta .px-ds-actions { justify-content: center; }
}

/* ================================================== 17. reduced motion = */

@media (prefers-reduced-motion: reduce) {
	.px-btn,
	.px-ds-card--link,
	.px-ds-faq__q::after,
	.px-footer__grid a {
		transition: none;
	}
	.px-btn:hover,
	.px-ds-card--link:hover { transform: none; }
}

/* ============================================================ 18. print = */

@media print {
	.px-announce,
	.px-progress,
	.px-ds-cta { display: none; }

	.px-footer { background: #fff; color: #17252B; }
	.px-footer h2, .px-footer a, .px-footer__phone { color: #17252B; }
	.px-ds-card, .px-ds-price, .px-ds-quote { break-inside: avoid; box-shadow: none; }
}

/* ================================================ 19. legacy mapping === */

/*
 * The templates shipped before this file use `.px-section`, `.px-card`,
 * `.px-final` and friends. Rather than rewrite every template (and risk
 * breaking the block-editor pages that reuse the same classes), this section
 * maps those names onto the system above. One vocabulary, one place to change
 * it — but no template has to know that.
 */

/* ---- section rhythm ---------------------------------------------------- */
.px-section { padding-block: var(--px-section-y); }

.px-section__head {
	align-items: flex-end;
	gap: var(--px-s-5);
	margin-bottom: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
}

.px-section__head h2,
.px-card h3,
.px-heading-center h2 { letter-spacing: var(--px-t-track-title); }

.px-section__head h2 { font-size: var(--px-t-h2); }

.px-heading-center {
	margin-bottom: clamp(1.75rem, 1.4rem + 1.4vw, 3rem);
}

.px-heading-center .px-eyebrow { justify-content: center; }

/* ---- eyebrow ----------------------------------------------------------- */
.px-eyebrow {
	gap: var(--px-s-2);
	margin-bottom: var(--px-s-3);
	font-size: var(--px-t-micro);
	font-weight: 800;
	letter-spacing: var(--px-t-track-micro);
	text-transform: uppercase;
	color: var(--px-c-secondary);
}

.px-eyebrow > span:first-child:empty {
	inline-size: 18px;
	block-size: 2px;
	border-radius: 2px;
	background: var(--px-c-accent);
	flex: none;
}

/* ---- cards ------------------------------------------------------------- */
.px-card {
	display: flex;
	flex-direction: column;
	gap: var(--px-s-3);
	padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
	border: 1px solid var(--px-c-line);
	border-radius: var(--px-r-lg);
	background: var(--px-c-surface);
	transition: transform var(--px-d-mid) var(--px-ease),
	            box-shadow var(--px-d-mid) var(--px-ease),
	            border-color var(--px-d-mid) var(--px-ease);
}

.px-card h3 {
	margin: 0;
	font-size: var(--px-t-card);
	font-weight: 800;
	line-height: var(--px-t-leading-snug);
	color: var(--px-c-ink);
}

.px-card p { margin: 0; font-size: var(--px-t-small); line-height: var(--px-t-leading-body); }

.px-card__icon {
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	margin: 0;
	border-radius: var(--px-r-md);
	background: #EAF3F6;
	background: color-mix(in srgb, var(--px-c-primary) 9%, transparent);
	color: var(--px-c-primary);
}

.px-card__icon svg { inline-size: 22px; block-size: 22px; }

a.px-card,
.px-card--link {
	text-decoration: none;
	color: inherit;
}

a.px-card:hover,
.px-card--link:hover {
	transform: translateY(-3px);
	border-color: #A9C9D4;
	border-color: color-mix(in srgb, var(--px-c-primary) 40%, var(--px-c-line));
	box-shadow: var(--px-e-3);
}

a.px-card:hover h3,
.px-card--link:hover h3 { color: var(--px-c-primary); }

.px-card .px-text-link { margin-top: auto; padding-top: var(--px-s-3); }

/* ---- grids ------------------------------------------------------------- */
.px-grid { gap: var(--px-gap); }

.px-grid--3,
.px-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }

.px-trust__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: var(--px-gap);
	padding-block: var(--px-s-8);
}

.px-trust__grid strong { font-size: var(--px-t-small); line-height: 1.7; }
.px-trust__grid small { font-size: var(--px-t-micro); line-height: 1.8; }

.px-brand-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: var(--px-s-3); }

.px-brand-grid a {
	display: grid;
	place-items: center;
	min-height: 52px;
	padding-inline: var(--px-s-3);
	border: 1px solid var(--px-c-line);
	border-radius: var(--px-r-md);
	background: var(--px-c-surface);
	font-size: var(--px-t-small);
	font-weight: 700;
	color: var(--px-c-ink);
	text-decoration: none;
	transition: border-color var(--px-d-fast) var(--px-ease),
	            color var(--px-d-fast) var(--px-ease),
	            transform var(--px-d-fast) var(--px-ease);
}

.px-brand-grid a:hover {
	border-color: var(--px-c-primary);
	color: var(--px-c-primary);
	transform: translateY(-2px);
}

/* ---- hero -------------------------------------------------------------- */
.px-hero h1 {
	max-width: 22ch;
	font-size: var(--px-t-hero);
	line-height: var(--px-t-leading-tight);
	letter-spacing: var(--px-t-track-display);
	margin-bottom: var(--px-s-5);
}

.px-lead {
	max-width: 46ch;
	font-size: var(--px-t-lead);
	line-height: var(--px-t-leading-body);
	color: var(--px-c-muted);
}

.px-actions { gap: var(--px-s-3); margin-top: var(--px-s-8); }

.px-hero__note { gap: var(--px-s-2); font-size: var(--px-t-small); }

/* ---- process / steps --------------------------------------------------- */
.px-process { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--px-gap); }

.px-process > div { display: grid; gap: var(--px-s-3); align-content: start; }

.px-process h3 { margin: 0; font-size: var(--px-t-card); line-height: var(--px-t-leading-snug); }
.px-process p { margin: 0; font-size: var(--px-t-small); line-height: var(--px-t-leading-body); color: var(--px-c-muted); }

.px-process > div > span:first-child {
	display: grid;
	place-items: center;
	inline-size: 36px;
	block-size: 36px;
	margin: 0;
	border-radius: 50%;
	background: #EAF3F6;
	background: color-mix(in srgb, var(--px-c-primary) 10%, transparent);
	color: var(--px-c-primary);
	font-size: var(--px-t-small);
	font-weight: 800;
}

/* ---- factors list ------------------------------------------------------ */
.px-factors { display: grid; gap: var(--px-s-5); }

.px-factors > div {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--px-s-4);
	align-items: start;
	padding-block-end: var(--px-s-5);
	border-block-end: 1px solid var(--px-c-line-soft);
}

.px-factors > div:last-child { border-block-end: 0; padding-block-end: 0; }

.px-factors > div > span {
	font-size: var(--px-t-small);
	font-weight: 800;
	color: var(--px-c-accent);
	font-variant-numeric: tabular-nums;
}

.px-factors h3 { margin: 0 0 var(--px-s-1); font-size: var(--px-t-card); }
.px-factors p { margin: 0; font-size: var(--px-t-small); color: var(--px-c-muted); }

/* ---- FAQ --------------------------------------------------------------- */
.px-faq {
	border: 1px solid var(--px-c-line);
	border-radius: var(--px-r-md);
	background: var(--px-c-surface);
	margin-bottom: var(--px-s-3);
	overflow: hidden;
	transition: border-color var(--px-d-fast) var(--px-ease);
}

.px-faq[open] {
	border-color: #A9C9D4;
	border-color: color-mix(in srgb, var(--px-c-primary) 35%, var(--px-c-line));
}

.px-faq summary {
	display: flex;
	align-items: center;
	gap: var(--px-s-4);
	padding: var(--px-s-4) var(--px-s-5);
	font-size: var(--px-t-small);
	font-weight: 700;
	color: var(--px-c-ink);
	cursor: pointer;
	list-style: none;
}

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

.px-faq summary::after {
	content: '';
	inline-size: 10px;
	block-size: 10px;
	margin-inline-start: auto;
	flex: none;
	border-inline-end: 2px solid var(--px-c-primary);
	border-block-end: 2px solid var(--px-c-primary);
	transform: rotate(45deg) translateY(-2px);
	transition: transform var(--px-d-mid) var(--px-ease);
}

.px-faq[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.px-faq > p {
	margin: 0;
	padding: 0 var(--px-s-5) var(--px-s-5);
	font-size: var(--px-t-small);
	line-height: var(--px-t-leading-body);
	color: var(--px-c-muted);
}

/* ---- closing CTA ------------------------------------------------------- */
.px-final {
	display: grid;
	gap: var(--px-s-5);
	align-items: center;
	padding: clamp(1.75rem, 1.4rem + 1.6vw, 3rem);
	border-radius: var(--px-r-xl);
	background: linear-gradient(140deg, var(--px-c-primary), #0E7EA6);
	color: #DCEEF4;
}

@media (min-width: 800px) {
	.px-final { grid-template-columns: 1.4fr auto; }
}

.px-final .px-eyebrow { color: #8FD8C8; }
.px-final h2 { margin: 0; font-size: var(--px-t-h2); color: #fff; }
.px-final p:not(.px-eyebrow) { margin: var(--px-s-3) 0 0; color: #C8E3EC; font-size: var(--px-t-small); }
.px-final .px-button { flex: none; }

/* ---- misc -------------------------------------------------------------- */
.px-narrow { max-width: var(--px-wrap-prose); }

.px-info {
	border: 1px solid var(--px-c-line);
	border-radius: var(--px-r-md);
	background: var(--px-c-surface);
	padding: var(--px-s-5);
}

.px-section--alt { background: var(--px-c-surface-alt); }

.px-page-hero { padding-block: clamp(1.75rem, 1.4rem + 1.6vw, 3rem); border-block: 1px solid var(--px-c-line); }
.px-page-hero h1 { font-size: var(--px-t-h1); letter-spacing: var(--px-t-track-title); }

.px-empty {
	padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--px-s-5);
	border: 1px dashed var(--px-c-line);
	border-radius: var(--px-r-lg);
	background: var(--px-c-surface);
}

/* Half a phone is not enough room for one unbreakable line of text. */
.px-mobile-cta .px-button { white-space: normal; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.px-card,
	.px-card--link,
	.px-brand-grid a,
	.px-faq summary::after { transition: none; }
	a.px-card:hover,
	.px-card--link:hover,
	.px-brand-grid a:hover { transform: none; }
}
