/* ==========================================================================
   pricewise.ai — theme stylesheet
   Loaded on the front end and inside the block editor.
   ========================================================================== */

:root {
	/* Brand colours come from the palette in theme.json, so they can be changed in the Site Editor (Styles → Colors). */
	--pw-ink: var(--wp--preset--color--ink, #13251c);
	--pw-green: var(--wp--preset--color--green, #0f6b45);
	--pw-forest: var(--wp--preset--color--forest, #092f22);
	--pw-lime: var(--wp--preset--color--lime, #d2ed8b);
	--pw-line: var(--wp--preset--color--line, #dbe2db);
	--pw-muted: var(--wp--preset--color--muted, #647168);
	--pw-stone: var(--wp--preset--color--stone, #f0f3ed);
	--pw-paper: var(--wp--preset--color--paper, #fcfdfb);
	--pw-green-dark: color-mix(in srgb, var(--pw-green) 78%, black);
	--pw-lime-light: color-mix(in srgb, var(--pw-lime) 80%, white);
	--pw-ease: cubic-bezier(0.22, 1, 0.36, 1);
		--pw-mono: 'DM Mono', ui-monospace, monospace;

	/* Icons (Lucide, ISC license). Used as masks so they take the text colour. */
	--i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--i-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
	--i-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	--i-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E");
	--i-arrow-down-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 7 10 10'/%3E%3Cpath d='M17 7v10H7'/%3E%3C/svg%3E");
	--i-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E");
	--i-scan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M17 3h2a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M21 17v2a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M7 21H5a2 2 0 0 1-2-2v-2'/%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
	--i-trend: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 7h6v6'/%3E%3Cpath d='m22 7-8.5 8.5-5-5L2 17'/%3E%3C/svg%3E");
	--i-sliders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H3'/%3E%3Cpath d='M12 19H3'/%3E%3Cpath d='M14 3v4'/%3E%3Cpath d='M16 17v4'/%3E%3Cpath d='M21 12h-9'/%3E%3Cpath d='M21 19h-5'/%3E%3Cpath d='M21 5h-7'/%3E%3Cpath d='M8 10v4'/%3E%3Cpath d='M8 12H3'/%3E%3C/svg%3E");
	--i-monitor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 10 2 2 4-4'/%3E%3Crect width='20' height='14' x='2' y='3' rx='2'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M8 21h8'/%3E%3C/svg%3E");
	--i-printer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6'/%3E%3Crect x='6' y='14' width='12' height='8' rx='1'/%3E%3C/svg%3E");
	--i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3C/svg%3E");
	--i-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16v5'/%3E%3Cpath d='M16 14.639V21'/%3E%3Cpath d='M20 10.656V21'/%3E%3Cpath d='m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15'/%3E%3Cpath d='M4 18.463V21'/%3E%3Cpath d='M8 14.656V21'/%3E%3C/svg%3E");
	--i-headphones: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E");
	--i-file-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z'/%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5'/%3E%3Ccircle cx='11.5' cy='14.5' r='2.5'/%3E%3Cpath d='M13.3 16.3 15 18'/%3E%3C/svg%3E");
	--i-scan-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b45' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7V5a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M17 3h2a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M21 17v2a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M7 21H5a2 2 0 0 1-2-2v-2'/%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
	--i-calculator: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='20' x='4' y='2' rx='2'/%3E%3Cline x1='8' x2='16' y1='6' y2='6'/%3E%3Cline x1='16' x2='16' y1='14' y2='18'/%3E%3Cpath d='M16 10h.01'/%3E%3Cpath d='M12 10h.01'/%3E%3Cpath d='M8 10h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M8 14h.01'/%3E%3Cpath d='M12 18h.01'/%3E%3Cpath d='M8 18h.01'/%3E%3C/svg%3E");
	--i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	--i-check-thin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--i-sliders-thin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H3'/%3E%3Cpath d='M12 19H3'/%3E%3Cpath d='M14 3v4'/%3E%3Cpath d='M16 17v4'/%3E%3Cpath d='M21 12h-9'/%3E%3Cpath d='M21 19h-5'/%3E%3Cpath d='M21 5h-7'/%3E%3Cpath d='M8 10v4'/%3E%3Cpath d='M8 12H3'/%3E%3C/svg%3E");
}

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

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 102px; }

body {
	margin: 0;
	background: #fff;
	color: var(--pw-ink);
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.055em; line-height: 1.03; color: var(--pw-ink); }
h1 em, h2 em, h3 em, p em { font-style: normal; }
h1 em, h2 em, h3 em { color: var(--pw-green); }

p { color: var(--pw-muted); font-size: 18px; line-height: 1.55; letter-spacing: -0.012em; }
p strong { color: var(--pw-ink); font-weight: 600; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--pw-green); outline-offset: 5px; }
::selection { background: var(--pw-lime); color: var(--pw-forest); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.pw-skip { position: absolute; left: -10000px; top: 10px; }
.pw-skip:focus { left: 20px; padding: 12px; background: #fff; z-index: 100; outline-offset: 0; }

.ab-wrap { width: min(1264px, calc(100% - 96px)); margin-inline: auto; }
@media (max-width: 1100px) { .ab-wrap { width: calc(100% - 64px); } }
@media (max-width: 760px)  { .ab-wrap { width: calc(100% - 40px); } }
@media (max-width: 360px)  { .ab-wrap { width: calc(100% - 32px); } }

section[id], main[id] { scroll-margin-top: 102px; }

/* Block editor / core resets */
.wp-block-image { margin: 0; }
.wp-block-image img { height: auto; }
.wp-block-buttons, .wp-block-buttons.is-layout-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
/* theme.json sets blockGap to 0; every vertical rhythm below is explicit. */
:root :where(.is-layout-flow) > * { margin-block-start: 0; margin-block-end: 0; }
.wp-block-list { padding: 0; margin: 0; list-style: none; }
.wp-block-navigation ul { list-style: none; margin: 0; padding: 0; }
.wp-block-navigation { font-size: inherit; }

/* Icon pseudo-elements (masked SVGs, coloured by currentColor) */
:is(.pw-btn, .is-style-pw-btn) .wp-block-button__link::after,
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link::after,
:is(.pw-watch, .is-style-pw-watch) .wp-block-button__link::after,
.pw-login a::after,
.ab-assurances li:first-child::before,
.pw-checklist li::before,
.ref-after .ref-work-caption::before,
.ref-margin-cause strong::after,
.pw-feature::before,
.sp-principle::before,
.ab-contact-phone a::after,
.pw-top a::after,
.ab-faq-list summary::after,
.pw-form-button::after {
	content: '';
	display: inline-block;
	flex: none;
	width: var(--s, 18px);
	height: var(--s, 18px);
	background: currentColor;
	-webkit-mask: var(--i) center / contain no-repeat;
	mask: var(--i) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

:is(.pw-btn, .is-style-pw-btn) .wp-block-button__link,
.pw-form-button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	min-height: 48px;
	padding: 17px 22px;
	background: var(--pw-green);
	color: #fff;
	border: 0;
	border-radius: 5px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, box-shadow 0.2s, transform 0.25s var(--pw-ease);
}
:is(.pw-btn, .is-style-pw-btn) .wp-block-button__link::after, .pw-form-button::after { --i: var(--i-arrow-up-right); --s: 19px; transition: transform 0.25s var(--pw-ease); }
:is(.pw-btn, .is-style-pw-btn) .wp-block-button__link:hover, .pw-form-button:hover { background: var(--pw-green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px #123b2418; }
:is(.pw-btn, .is-style-pw-btn) .wp-block-button__link:hover::after, .pw-form-button:hover::after { transform: translate(2px, -2px); }
:is(.pw-btn, .is-style-pw-btn) .wp-block-button__link:active, .pw-form-button:active { transform: none; box-shadow: none; }

:is(.pw-btn-light, .is-style-pw-btn-light) .wp-block-button__link { background: var(--pw-lime); color: var(--pw-forest); }
:is(.pw-btn-light, .is-style-pw-btn-light) .wp-block-button__link:hover { background: var(--pw-lime-light); color: var(--pw-forest); }

:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 13px;
	min-height: 44px;
	padding: 7px 0;
	background: none;
	color: var(--pw-green);
	border-radius: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link::after { --i: var(--i-arrow-right); --s: 16px; transition: transform 0.25s var(--pw-ease); }
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link::before {
	content: '';
	position: absolute;
	left: 0; right: 30px; bottom: 5px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--pw-ease);
}
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link:hover { color: var(--pw-green); background: none; }
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link:hover::before,
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link:focus-visible::before { transform: scaleX(1); }
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link:hover::after { transform: translate(2px, -2px); }
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link[href^="tel:"]::after,
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link[href^="mailto:"]::after,
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link[href^="/contact"]::after,
:is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link[href$="/contact/"]::after { --i: var(--i-arrow-up-right); --s: 17px; }

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

.pw-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #fffffff2;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid #173d251c;
}
.pw-nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.pw-logo { flex: none; }
.pw-logo img { width: 164px; height: auto; }
.pw-logo a { display: block; }

.pw-primary-nav { margin-left: auto; font-size: 14px; }
.pw-primary-nav .wp-block-navigation__container { gap: 31px; }
.pw-primary-nav .wp-block-navigation-item__content { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--pw-ink); }
.pw-primary-nav .wp-block-navigation-item__content:hover,
.pw-primary-nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--pw-green); }
.pw-primary-nav .wp-block-navigation-item__content[aria-current="page"]::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 1px;
	height: 2px;
	background: #267749;
}
.pw-primary-nav .wp-block-navigation__responsive-container-open { color: var(--pw-ink); padding: 6px; }
.pw-primary-nav .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }

.pw-nav-actions { display: flex; align-items: center; gap: 25px; margin-left: 20px; }
.pw-login { font-size: 13px; color: var(--pw-ink); }
.pw-login a { display: inline-flex; align-items: center; gap: 6px; }
.pw-login a::after { --i: var(--i-arrow-up-right); --s: 14px; }
.pw-login a:hover { color: var(--pw-green); }
.pw-nav-actions .wp-block-buttons.is-layout-flex { gap: 0; }
.pw-nav-actions :is(.pw-btn, .is-style-pw-btn) .wp-block-button__link { min-height: 0; padding: 12px 16px; gap: 24px; font-size: 13px; }

/* Mobile overlay (core navigation block) */
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff;
	padding: 20px 20px 40px;
}
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 60px; }
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--pw-line); }
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: flex; justify-content: space-between; width: 100%; padding: 18px 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; min-height: 0; }
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }
.pw-primary-nav .wp-block-navigation__responsive-container-close { color: var(--pw-ink); padding: 8px; }
.pw-primary-nav .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

@media (min-width: 761px) {
	.pw-primary-nav .pw-mobile-only { display: none; }
}
@media (min-width: 600px) and (max-width: 760px) {
	.pw-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.pw-primary-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1100px) {
	.pw-nav { gap: 18px; }
	.pw-primary-nav .wp-block-navigation__container { gap: 19px; }
	.pw-nav-actions { gap: 18px; margin-left: 5px; }
}
/* backdrop-filter turns the header into the containing block for the fixed
   mobile overlay, which would clip it to the header's height. Drop it where
   the overlay can appear. */
@media (max-width: 760px) {
	.pw-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}
.pw-header:has(.is-menu-open) { backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (max-width: 760px) {
	.pw-nav { height: 71px; gap: 12px; }
	.pw-logo img { width: 132px; }
	.pw-login { display: none; }
	.pw-nav-actions { margin-left: auto; gap: 8px; }
	.pw-nav-actions :is(.pw-btn, .is-style-pw-btn) .wp-block-button__link { font-size: 13px; padding: 12px; min-height: 44px; gap: 0; }
	.pw-nav-actions :is(.pw-btn, .is-style-pw-btn) .wp-block-button__link::after { display: none; }
	.pw-primary-nav { margin-left: 0; order: 3; }
	.pw-primary-nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; display: grid; place-items: center; }
}
@media (max-width: 360px) {
	.pw-nav-actions :is(.pw-btn, .is-style-pw-btn) { display: none; }
}

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

.pw-hero { background: #fff; }
.ab-a-hero-copy { padding-top: 74px; padding-bottom: 36px; }

.ab-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 25px;
	color: var(--pw-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.005em;
}
.ab-kicker::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex: none; }

.ab-a-hero-copy h1 {
	font-size: clamp(57px, 7.4vw, 112px);
	line-height: 1.02;
	letter-spacing: -0.065em;
	text-wrap: balance;
}
@media (min-width: 1450px) { .ab-a-hero-copy h1 { font-size: 112px; } }

.ab-hero-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 42px; margin-top: 36px; }
.ab-hero-bottom > p { max-width: 590px; font-size: 20px; line-height: 1.55; }
.ab-hero-actions.wp-block-buttons { flex: none; flex-wrap: nowrap; gap: 24px; }
.ab-hero-actions :is(.pw-btn, .is-style-pw-btn) .wp-block-button__link { padding: 17px 22px; gap: 30px; }

.ab-assurances { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 25px; margin-top: 23px; color: var(--pw-muted); font-size: 14px; }
.ab-assurances li { display: flex; align-items: center; gap: 7px; }
.ab-assurances li:first-child::before { --i: var(--i-check); --s: 14px; }
.ab-assurances li + li::before { content: ''; width: 3px; height: 3px; background: #a0b09b; border-radius: 50%; margin-right: 12px; flex: none; }

.pw-hero-scene {
	position: relative;
	width: min(1440px, calc(100% - 40px));
	height: clamp(440px, 39vw, 560px);
	margin-inline: auto;
	overflow: hidden;
	isolation: isolate;
	border-radius: 18px;
	background: #232622;
}
.pw-hero-scene .pw-hero-photo { position: absolute; inset: 0; margin: 0; }
.pw-hero-scene .pw-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.pw-hero-scene::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, #080e0bd9 0%, #080e0b65 24%, transparent 57%);
	pointer-events: none;
}
.pw-hero-caption { position: absolute; z-index: 1; left: 48px; bottom: 48px; max-width: calc(100% - 95px); }
.pw-hero-caption h2 { color: #fff; font-size: clamp(36px, 4.2vw, 61px); line-height: 1.03; letter-spacing: -0.045em; }
.pw-hero-caption p { color: #f0f4ed; font-size: 18px; line-height: 1.5; max-width: 630px; margin-top: 20px; }

.pw-hero-watch.wp-block-buttons { position: absolute; z-index: 1; right: 38px; bottom: 43px; }
:is(.pw-watch, .is-style-pw-watch) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	min-height: 47px;
	padding: 14px 18px;
	background: #ffffff14;
	color: #fff;
	border: 1px solid #ffffff80;
	border-radius: 30px;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}
:is(.pw-watch, .is-style-pw-watch) .wp-block-button__link::after { --i: var(--i-arrow-down); --s: 16px; }
:is(.pw-watch, .is-style-pw-watch) .wp-block-button__link:hover { color: #143520; background: #fff; transform: translateY(-1px); }
:is(.pw-watch, .is-style-pw-watch) .wp-block-button__link:focus-visible { outline-color: #fff; }

@media (max-width: 1100px) {
	.ab-hero-bottom { gap: 26px; }
	.ab-hero-bottom > p { max-width: 480px; font-size: 18px; }
	.ab-hero-actions.wp-block-buttons { gap: 15px; }
	.pw-hero-caption p { max-width: 550px; }
	.pw-hero-watch.wp-block-buttons { right: 25px; bottom: 35px; }
}
@media (max-width: 900px) {
	.ab-hero-bottom { flex-direction: column; align-items: flex-start; gap: 25px; }
	.ab-hero-bottom > p { max-width: 640px; }
}
@media (max-width: 760px) {
	.ab-a-hero-copy { padding-top: 39px; padding-bottom: 29px; }
	.ab-kicker { font-size: 12px; margin-bottom: 20px; }
	.ab-a-hero-copy h1 { font-size: clamp(36px, 7.35vw, 58px); line-height: 1.05; letter-spacing: -0.058em; }
	.ab-hero-bottom { margin-top: 23px; }
	.ab-hero-bottom > p { font-size: 17px; }
	.ab-hero-actions.wp-block-buttons { flex-wrap: wrap; gap: 18px; }
	.ab-hero-actions :is(.pw-btn, .is-style-pw-btn) .wp-block-button__link { padding: 14px 16px; gap: 13px; font-size: 14px; }
	.ab-hero-actions :is(.pw-text-link, .is-style-pw-text-link) .wp-block-button__link { font-size: 13px; }
	.ab-assurances { font-size: 12px; gap: 12px 17px; }
	.ab-assurances li + li::before { margin-right: 0; }
	.pw-hero-scene { width: calc(100% - 24px); height: 480px; border-radius: 15px; }
	.pw-hero-scene .pw-hero-photo img { object-position: 62% 48%; }
	.pw-hero-scene::after { background: linear-gradient(0deg, #080e0bf0 0%, #080e0b65 25%, transparent 60%); }
	.pw-hero-caption { left: 25px; bottom: 29px; max-width: calc(100% - 48px); }
	.pw-hero-caption h2 { font-size: clamp(32px, 7.2vw, 48px); }
	.pw-hero-caption p { font-size: 16px; margin-top: 16px; }
	.pw-hero-watch.wp-block-buttons { top: 18px; right: 18px; bottom: auto; }
	:is(.pw-watch, .is-style-pw-watch) .wp-block-button__link { padding: 12px 15px; min-height: 43px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   POS logo strip
   -------------------------------------------------------------------------- */

.ab-pos-block { border-bottom: 1px solid var(--pw-line); padding-bottom: 22px; }
.ab-pos { display: flex; align-items: center; gap: 40px; padding-block: 35px 18px; }
.ab-pos > p { font-size: 14px; line-height: 1.45; min-width: 150px; }
.ab-pos > p strong { font-weight: 600; }
.ab-pos-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 25px; width: 100%; }
.ab-pos-logos .wp-block-image { margin: 0; }
.ab-pos-logos img { width: auto; max-width: 88px; height: 28px; object-fit: contain; filter: grayscale(1); opacity: 0.78; }
.pw-fineprint, .is-style-pw-fineprint { font-size: 11px; line-height: 1.5; color: #6b7767; }

/* Block styles available in the editor's Styles picker (aliases of the design classes). */
.is-style-pw-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; color: var(--pw-ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.is-style-pw-kicker::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex: none; }
.is-style-pw-eyebrow { display: block; margin-bottom: 27px; color: var(--pw-green); font-size: 14px; font-weight: 600; line-height: 1.4; }
.is-style-pw-checklist { display: grid; gap: 15px; }
.is-style-pw-checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--pw-muted); font-size: 14px; }
.is-style-pw-checklist li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 1px; background: var(--pw-green); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.is-style-pw-panel-dark { padding: 42px; background: #14241d; color: #fff; border: 1px solid #ffffff12; border-radius: 20px; }
.is-style-pw-panel-dark :is(h1, h2, h3, h4) { color: #f3f6ef; }
.is-style-pw-panel-dark :is(h1, h2, h3) em { color: #cdebab; }
.is-style-pw-panel-dark p { color: #b8c6bc; }
.is-style-pw-panel-dark :is(a, button):focus-visible { outline-color: #d4edb7; }
.is-style-pw-section { padding-block: 61px; }
@media (max-width: 760px) {
	.is-style-pw-panel-dark { padding: 29px 24px; border-radius: 18px; }
	.is-style-pw-section { padding-block: 44px; }
}

@media (max-width: 1100px) {
	.ab-pos { gap: 25px; }
	.ab-pos-logos { gap: 18px; }
	.ab-pos-logos img { max-width: 65px; }
}
@media (max-width: 760px) {
	.ab-pos { flex-direction: column; align-items: flex-start; gap: 17px; padding-block: 29px 14px; }
	.ab-pos > p { min-width: 0; }
	.ab-pos-logos { justify-content: center; gap: 23px 18px; }
	.ab-pos-logos img { height: 25px; max-width: 63px; }
	.pw-fineprint { text-align: center; }
}

/* --------------------------------------------------------------------------
   Numbered sections (work comparison, margins)
   -------------------------------------------------------------------------- */

.ref-section { padding-block: 61px; }
.ref-section h2 { font-size: clamp(39px, 4.05vw, 59px); line-height: 1.04; letter-spacing: -0.045em; }

.ref-section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; color: #65776c; font-size: 14px; font-weight: 500; line-height: 1.4; }
.ref-section-label code { font: inherit; padding: 0; background: none; color: var(--pw-green); font-variant-numeric: tabular-nums; }
.ref-section-label::after { content: ''; flex: 1; height: 1px; margin-left: 9px; background: #dde3de; }

.ref-label { display: block; color: #566a5d; font-size: 14px; font-weight: 500; line-height: 1.4; }

.ref-split-heading { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.ref-split-heading > p { padding-top: 5px; max-width: 485px; font-size: 18px; line-height: 1.6; }

.ref-work-comparison {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 31px;
	border: 1px solid #dce4dd;
	border-radius: 16px;
	overflow: hidden;
}
.ref-before, .ref-after { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 29px 32px; }
.ref-before { background: #f6f7f5; }
.ref-after { background: #eff7ed; border-left: 1px solid #dde5d5; }
.ref-work-statement {
	display: block;
	font-size: clamp(27px, 2.6vw, 36px);
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: -0.04em;
	margin-block: 22px 24px;
	color: #284e32;
}
.ref-before .ref-work-statement { color: #68746b; font-size: clamp(25px, 2.2vw, 31px); line-height: 1.35; }
.ref-before .ref-work-statement em { color: #425349; }
.ref-work-caption { display: flex; align-items: center; gap: 8px; margin-top: auto; color: #5f6e60; font-size: 14px; line-height: 1.5; }
.ref-after .ref-work-caption { color: #4c6949; }
.ref-after .ref-work-caption::before { --i: var(--i-check); --s: 16px; }

.ref-margin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.ref-margin-copy h2 { margin-bottom: 27px; }
.ref-margin-copy > p { font-size: 18px; line-height: 1.65; }
.ref-margin-cause {
	margin-block: 28px;
	padding-block: 20px;
	border-block: 1px solid #dbe2db;
	color: #647267;
	font-size: 14px;
	line-height: 1.6;
	word-spacing: 0.15em;
}
.ref-margin-cause strong { display: inline-flex; align-items: center; gap: 6px; color: #a34735; font-weight: 500; word-spacing: 0; }
.ref-margin-cause strong::after { --i: var(--i-arrow-down-right); --s: 19px; }

.ref-price-flow {
	padding: 33px;
	background: #edf5e8;
	border-radius: 50% 50% 10px 10px;
	box-shadow: inset 0 0 0 1px #24472c09;
	padding-top: 60px;
}
/* Diagram built from ordinary paragraphs; icons, arrows and the marker are pseudo-elements. */
.ref-flow-input { position: relative; width: fit-content; max-width: 100%; min-height: 44px; margin: 0 auto; padding-left: 57px; color: #5a7150; font-size: 13px; line-height: 1.45; }
.ref-flow-input::before { content: ''; position: absolute; left: 0; top: 50%; width: 44px; height: 44px; transform: translateY(-50%); background: #fff var(--i-scan-green) center / 23px no-repeat; border: 1px solid #d9e4cd; border-radius: 12px; }
.ref-flow-input strong, .ref-flow-output strong { display: block; margin-bottom: 3px; color: #143d28; font-size: 16px; font-weight: 600; line-height: 1.3; }
.ref-flow-calculation { position: relative; margin-top: 35px; padding: 26px 28px 0; background: #fff; border: 1px solid #dce7d6; border-radius: 14px; box-shadow: 0 12px 32px #274d2210; }
.ref-flow-calculation::before, .ref-flow-output::before { content: ''; position: absolute; top: -35px; left: 50%; width: 18px; height: 35px; transform: translateX(-50%); background: #83a264; -webkit-mask: var(--i-arrow-down) center / 18px no-repeat; mask: var(--i-arrow-down) center / 18px no-repeat; }
.ref-flow-cost { display: flex; align-items: center; gap: 8px; color: #8f5b23; font-size: 13px; }
.ref-flow-cost::before { content: ''; width: 6px; height: 6px; background: #b98741; border-radius: 50%; }
.ref-flow-headline { position: relative; margin-top: 25px; padding-left: 46px; color: #173f2a; font-size: clamp(34px, 3.5vw, 48px); font-weight: 500; line-height: 1.04; letter-spacing: -0.05em; }
.ref-flow-headline::before { content: ''; position: absolute; left: 0; top: 50%; width: 29px; height: 29px; transform: translateY(-50%); background: var(--pw-green); -webkit-mask: var(--i-calculator) center / contain no-repeat; mask: var(--i-calculator) center / contain no-repeat; }
.ref-flow-headline em { color: var(--pw-green); }
.ref-flow-note { margin-top: 17px; color: #637563; font-size: 14px; line-height: 1.5; }
.ref-flow-approval { display: flex; align-items: center; gap: 9px; margin-top: 23px; padding: 17px 0; border-top: 1px solid #e0e7dc; color: #416441; font-size: 13px; }
.ref-flow-approval::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i-shield) center / contain no-repeat; mask: var(--i-shield) center / contain no-repeat; }
.ref-flow-output { position: relative; margin-top: 35px; padding: 18px 20px 18px 54px; background: #176c46; color: #d2e5ce; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.ref-flow-output::after { content: ''; position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); background: var(--pw-lime); -webkit-mask: var(--i-monitor) center / contain no-repeat; mask: var(--i-monitor) center / contain no-repeat; }
.ref-flow-output strong { color: #fff; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
	.ref-flow-calculation { transition: transform 0.25s ease, box-shadow 0.25s ease; }
	.ref-price-flow:hover .ref-flow-calculation { transform: translateY(-3px); box-shadow: 0 17px 33px #17351d12; }
}

@media (max-width: 1100px) {
	.ref-split-heading, .ref-margin-layout { gap: 45px; }
	.ref-before, .ref-after { padding-inline: 25px; }
	.ref-price-flow { padding-inline: 26px; }
	.ref-flow-calculation { padding-inline: 23px; }
	.ref-flow-price { gap: 11px; }
}
@media (max-width: 760px) {
	.ref-section { padding-block: 44px; }
	.ref-section-label { margin-bottom: 28px; font-size: 13px; gap: 12px; }
	.ref-section h2 { font-size: clamp(34px, 7.8vw, 47px); }
	.ref-split-heading, .ref-margin-layout { grid-template-columns: 1fr; gap: 22px; }
	.ref-split-heading > p { font-size: 17px; padding: 0; }
	.ref-work-comparison { grid-template-columns: 1fr; margin-top: 28px; }
	.ref-before, .ref-after { padding: 24px; }
	.ref-after { border-left: 0; border-top: 1px solid #dde5d5; }
	.ref-work-statement { font-size: 29px; margin-block: 20px 23px; }
	.ref-before .ref-work-statement { font-size: 26px; }
	.ref-work-caption { font-size: 13px; }
	.ref-margin-copy h2 { margin-bottom: 22px; }
	.ref-price-flow { max-width: 470px; margin-inline: auto; padding: 50px 23px 25px; }
	.ref-flow-input { gap: 11px; }
	.ref-flow-input strong { font-size: 15px; }
	.ref-flow-input div > span { font-size: 12px; }
	.ref-flow-headline { font-size: 40px; }
	.ref-flow-price > svg { width: 24px; }
	.ref-flow-output { padding: 16px; }
	.ref-flow-output strong { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Invoice records
   -------------------------------------------------------------------------- */

.ab-invoice-records {
	display: grid;
	grid-template-columns: 1.12fr 1fr;
	gap: 54px;
	align-items: center;
	padding-block: 61px;
	border-top: 1px solid #e0e5dc;
	border-bottom: 1px solid #e0e5dc;
}
.ab-records-art { min-width: 0; padding: 18px; background: #f0f3ee; border: 1px solid #e0e6da; border-radius: 18px; }
.ab-records-window {
	display: flex;
	flex-direction: column;
	min-height: 425px;
	min-width: 0;
	background: #fff;
	border: 1px solid #dce4dc;
	border-radius: 10px;
	box-shadow: 0 13px 32px #17352009;
	overflow: hidden;
}
.ab-workspace-top { display: flex; align-items: center; gap: 15px; height: 61px; padding: 17px 21px; border-bottom: 1px solid var(--pw-line); color: var(--pw-muted); font-size: 11px; }
.ab-workspace-top > img { width: 111px; height: auto; margin-right: auto; }
.ab-records-title { padding: 18px 20px 15px; }
.ab-records-h { margin: 0; color: var(--pw-ink); font-size: 26px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.ab-records-search {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 20px 15px;
	padding: 10px 12px;
	border: 1px solid #dbe2d6;
	border-radius: 6px;
	color: #74816e;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.ab-records-search:focus-within { border-color: var(--pw-green); box-shadow: 0 0 0 3px #1167440c; }
.ab-records-search > svg { flex: none; }
.ab-records-search input { width: 100%; min-width: 0; padding: 0; background: none; border: 0; outline: none; color: var(--pw-ink); font-size: 15px; }
.ab-records-search input::placeholder { color: #687568; }
.ab-records-search input::-webkit-search-cancel-button { appearance: none; }

.ab-records-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.ab-records-table th { padding: 11px 10px; background: #f6f8f1; color: #5b6c52; font-size: 12px; font-weight: 500; text-align: right; }
.ab-records-table th:first-child { width: 47%; padding-left: 20px; text-align: left; }
.ab-records-table th:nth-child(2) { width: 17%; }
.ab-records-table th:nth-child(3) { width: 10%; }
.ab-records-table th:last-child { width: 26%; padding-right: 20px; }
.ab-records-table td { padding: 15px 10px; border-bottom: 1px solid #e9ede3; font-size: 13px; text-align: right; }
.ab-records-table td:first-child { padding-left: 20px; text-align: left; }
.ab-records-table td:last-child { padding-right: 20px; font-weight: 600; }
.ab-records-table .ab-record-date { color: #66735f; }
.ab-records-table tr:has(.e-record-link):hover { background: #f7faf4; }
.ab-record-number { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #66735f; font-size: 12px; }
.ab-record-match { display: block; margin-top: 4px; color: var(--pw-green); font-size: 11px; }
.ab-records-table td.ab-records-empty { padding: 40px 20px; color: var(--pw-muted); text-align: center; }
.e-record-link {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: #173925;
	font-size: 14px; font-weight: 600; line-height: 1.35;
	text-align: left;
	cursor: pointer;
}
.e-record-link > span { flex: 1; }
.e-record-link svg { flex: none; opacity: 0.7; transition: transform 0.2s; }
.e-record-link:hover svg { transform: translate(2px, -2px); opacity: 1; }
.ab-records-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: auto; padding: 15px 20px; color: var(--pw-muted); font-size: 12px; }
.ab-records-saved { display: flex; align-items: center; gap: 6px; color: var(--pw-green); }

.ab-records-copy h2 { font-size: clamp(38px, 4vw, 55px); color: var(--pw-green); }
.ab-records-copy > p { margin-top: 25px; font-size: 17px; }
.pw-checklist { display: grid; gap: 15px; margin-top: 25px; }
.pw-checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--pw-muted); font-size: 14px; }
.pw-checklist li::before { --i: var(--i-check); --s: 18px; color: var(--pw-green); margin-top: 1px; }

/* Invoice detail dialog */
.pw-dialog {
	width: min(560px, calc(100% - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: var(--pw-ink);
	box-shadow: 0 30px 80px #0a1f1440;
	overflow: auto;
}
.pw-dialog::backdrop { background: #08160c80; backdrop-filter: blur(3px); }
.pw-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 24px 18px; border-bottom: 1px solid var(--pw-line); }
.pw-dialog-title { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.pw-dialog-head p { margin-top: 4px; font-size: 13px; }
.pw-dialog-close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; margin: -8px -8px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--pw-muted); }
.pw-dialog-close:hover { background: var(--pw-stone); color: var(--pw-ink); }
.pw-dialog-body { padding: 20px 24px 24px; }
.pw-dialog-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; margin-bottom: 18px; background: #f4f7f1; border-radius: 8px; font-size: 13px; color: var(--pw-muted); }
.pw-dialog-total strong { color: var(--pw-ink); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.pw-dialog-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pw-dialog-table th { padding: 8px 8px; border-bottom: 1px solid var(--pw-line); color: #5b6c52; font-size: 11px; font-weight: 500; text-align: right; }
.pw-dialog-table th:first-child, .pw-dialog-table td:first-child { text-align: left; padding-left: 0; }
.pw-dialog-table td { padding: 12px 8px; border-bottom: 1px solid #eef1ea; font-size: 13px; text-align: right; }
.pw-dialog-table td:last-child { color: var(--pw-green); }
.pw-dialog-table td strong { display: block; font-weight: 600; }
.pw-dialog-table td small { display: block; color: #66735f; font-size: 11px; }
.pw-dialog-note { margin-top: 16px; font-size: 12px; line-height: 1.5; }
.pw-dialog-match { margin-top: 8px; color: var(--pw-green); font-size: 13px; font-weight: 600; }
.pw-dialog-table tr.is-match td, .ref-invoice-paper tr.is-match td { background: #eff6e7; }
.pw-dialog-table tr.is-match td:first-child { box-shadow: inset 3px 0 0 var(--pw-green); }

/* Tabs inside the dialog */
.pw-tablist { display: flex; gap: 4px; width: fit-content; margin-bottom: 18px; padding: 4px; background: #eef2ea; border-radius: 8px; }
.pw-tablist button { padding: 9px 16px; border: 0; border-radius: 6px; background: none; color: #5a6b57; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: background 0.2s, color 0.2s; }
.pw-tablist button:hover { color: var(--pw-ink); }
.pw-tablist button[aria-selected="true"] { background: #fff; color: #173925; box-shadow: 0 1px 3px #0000000f; }
.pw-tabs [role="tabpanel"]:focus-visible { outline-offset: 8px; }
.pw-paper-view { max-width: 440px; margin-inline: auto; }

/* The "original invoice" paper */
.ref-invoice-paper { padding: 24px 21px 18px; background: #fff; color: #303832; border: 1px solid #e0e3db; box-shadow: 0 3px 9px #182f1910; }
.ref-paper-top, .ref-paper-meta, .ref-paper-total { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ref-paper-top { padding-bottom: 18px; border-bottom: 2px solid #303832; }
.ref-paper-top > strong { font-size: 13px; font-weight: 600; line-height: 1.55; letter-spacing: -0.025em; }
.ref-paper-top > span { font-size: 11px; line-height: 1.7; text-align: right; }
.ref-paper-top b { font-size: 13px; font-weight: 600; }
.ref-paper-meta { padding: 16px 0; color: #657066; font-size: 10px; line-height: 1.8; }
.ref-paper-meta b { color: #303832; font-size: 10px; font-weight: 600; }
.ref-invoice-paper table { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.ref-invoice-paper th { padding: 9px 4px; border-block: 1px solid #bfc9be; color: #5f6a60; font-size: 9px; font-weight: 400; text-align: left; }
.ref-invoice-paper td { padding: 11px 4px; border-bottom: 1px solid #e8ece4; font-size: 11px; line-height: 1.6; vertical-align: top; }
.ref-invoice-paper th:last-child, .ref-invoice-paper td:last-child { text-align: right; }
.ref-invoice-paper td small { color: #707970; font-size: 10px; }
.ref-invoice-paper tr.is-match td { outline: 1px solid #abc18c; outline-offset: -1px; }
.ref-paper-continued { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 12px; color: #6a706a; font-size: 9px; }
.ref-paper-total { align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid #303832; font-size: 10px; }
.ref-paper-total strong { font-size: 15px; font-weight: 600; }
.ref-paper-read { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #e1e7db; color: #386146; font-size: 12px; font-weight: 600; }
@media (max-width: 760px) {
	.ref-invoice-paper { padding: 22px 14px 17px; }
	.ref-paper-top > strong { font-size: 12px; }
	.ref-paper-top > span { font-size: 10px; }
}

@media (max-width: 1100px) {
	.ab-invoice-records { gap: 35px; }
	.ab-records-table .ab-record-date { display: none; }
	.ab-records-table th:first-child { width: 58%; }
	.ab-records-table th:nth-child(3) { width: 12%; }
	.ab-records-table th:last-child { width: 30%; }
}
@media (max-width: 760px) {
	.ab-invoice-records { grid-template-columns: 1fr; gap: 27px; padding-block: 44px; }
	.ab-records-copy { grid-row: 1; }
	.ab-records-copy h2 { font-size: 42px; }
	.ab-records-copy > p { font-size: 15px; margin-top: 20px; }
	.pw-checklist li { font-size: 13px; }
	.ab-records-art { padding: 12px; }
	.ab-records-window { min-height: 360px; }
	.ab-workspace-top { padding: 14px; gap: 8px; }
	.ab-workspace-top img { width: 98px; }
	.ab-workspace-top > span { font-size: 10px; }
	.ab-records-title { padding: 21px 14px 15px; }
	.ab-records-search { margin-inline: 14px; padding-inline: 9px; }
	.ab-records-search input { font-size: 16px; }
	.ab-records-table th, .ab-records-table td { padding-inline: 6px; }
	.ab-records-table th:first-child, .ab-records-table td:first-child { padding-left: 14px; }
	.ab-records-table th:last-child, .ab-records-table td:last-child { padding-right: 14px; font-size: 12px; }
	.ab-records-table td { padding-block: 13px; }
	.e-record-link { font-size: 13px; }
	.ab-records-bottom { padding-inline: 14px; }
	.pw-dialog-head, .pw-dialog-body { padding-inline: 18px; }
}

/* --------------------------------------------------------------------------
   Insights teaser
   -------------------------------------------------------------------------- */

.ref-insights-teaser {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 75px;
	align-items: center;
	padding-block: 43px;
}
.ref-insights-heading h2 { margin-top: 25px; font-size: clamp(37px, 3.7vw, 52px); }
.ref-insights-teaser-copy ul { margin-bottom: 15px; }
.ref-insights-teaser-copy li { padding-block: 11px; border-bottom: 1px solid #dbe2db; color: var(--pw-ink); font-size: 21px; font-weight: 500; letter-spacing: -0.03em; }
.ref-insights-teaser-copy p { margin-top: 15px; max-width: 420px; font-size: 16px; }
.ref-insights-teaser-copy .wp-block-buttons { margin-top: 13px; }

@media (max-width: 1100px) { .ref-insights-teaser { gap: 38px; } }
@media (max-width: 760px) {
	.ref-insights-teaser { grid-template-columns: 1fr; gap: 25px; padding-block: 38px; }
	.ref-insights-heading h2 { font-size: 36px; }
	.ref-insights-teaser-copy li { font-size: 20px; }
}

/* --------------------------------------------------------------------------
   Pricing panel
   -------------------------------------------------------------------------- */

.pw-pricing {
	margin-block: 16px 28px;
	padding: 42px;
	background: #14241d;
	border: 1px solid #ffffff12;
	border-radius: 20px;
	color: #fff;
}
.pw-pricing-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.pw-pricing-header .ref-label { margin-bottom: 20px; color: #c1d0c2; }
.pw-pricing h2 { color: #fff; font-size: clamp(42px, 4.65vw, 66px); line-height: 1.02; letter-spacing: -0.045em; }
.pw-pricing h2 em { color: #cdebab; }
.pw-pricing-action { display: flex; flex-direction: column; align-items: flex-end; gap: 15px; padding-bottom: 4px; }
.pw-pricing-action :is(.pw-btn, .is-style-pw-btn) .wp-block-button__link { padding: 16px 20px; gap: 36px; border-radius: 8px; background: #d4edb7; color: #173626; }
.pw-pricing-action :is(.pw-btn, .is-style-pw-btn) .wp-block-button__link:hover { background: #e0f4c6; color: #173626; }
.pw-pricing-action > p { color: #b7c6b9; font-size: 14px; text-align: right; }
.pw-pricing :is(a, button):focus-visible { outline-color: #d4edb7; }

.pw-feature-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 29px;
	row-gap: 28px;
	margin-top: 30px;
	padding-top: 29px;
	border-top: 1px solid #ffffff26;
}
.pw-feature { min-width: 0; }
.pw-feature::before { --s: 23px; display: block; margin-bottom: 17px; color: #bce395; }
.pw-feature h3 { color: #f3f6ef; font-size: 19px; font-weight: 500; line-height: 1.23; letter-spacing: -0.02em; }
.pw-feature p { margin-top: 9px; color: #b8c6bc; font-size: 15px; line-height: 1.5; }

.pw-icon-scan::before { --i: var(--i-scan); }
.pw-icon-trend::before { --i: var(--i-trend); }
.pw-icon-sliders::before { --i: var(--i-sliders); }
.pw-icon-monitor::before { --i: var(--i-monitor); }
.pw-icon-printer::before { --i: var(--i-printer); }
.pw-icon-search::before { --i: var(--i-search); }
.pw-icon-chart::before { --i: var(--i-chart); }
.pw-icon-headphones::before { --i: var(--i-headphones); }
.pw-icon-check::before { --i: var(--i-check-thin); }
.pw-icon-file-search::before { --i: var(--i-file-search); }

@media (max-width: 1100px) {
	.pw-pricing-header { align-items: center; }
	.pw-pricing-action > p { max-width: 190px; }
	.pw-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 38px; }
	.pw-feature { display: grid; grid-template-columns: 24px 1fr; column-gap: 15px; align-content: start; }
	.pw-feature::before { grid-row: span 2; margin: 1px 0 0; }
	.pw-feature p { grid-column: 2; }
}
@media (max-width: 760px) {
	.pw-pricing { margin-block: 12px 22px; padding: 29px 24px; border-radius: 18px; }
	.pw-pricing-header { display: block; }
	.pw-pricing-header .ref-label { margin-bottom: 16px; }
	.pw-pricing h2 { font-size: clamp(37px, 8.2vw, 51px); }
	.pw-pricing-action { align-items: flex-start; margin-top: 25px; gap: 13px; }
	.pw-pricing-action > p { max-width: none; text-align: left; line-height: 1.5; }
	.pw-feature-grid { grid-template-columns: 1fr; margin-top: 28px; padding-top: 29px; gap: 25px; }
}

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

.ab-faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; padding-block: 65px; }
.ab-faq h2 { font-size: 53px; }
.ab-faq-intro .wp-block-buttons { margin-top: 24px; }
.ab-faq-list { counter-reset: faq; }
.ab-faq-list details { border-bottom: 1px solid var(--pw-line); }
.ab-faq-list summary {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 21px 0;
	color: var(--pw-ink);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
}
.ab-faq-list summary::-webkit-details-marker { display: none; }
.ab-faq-list summary::before {
	counter-increment: faq;
	content: counter(faq, decimal-leading-zero);
	flex: none;
	color: #82917a;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}
.ab-faq-list summary::after { --i: var(--i-chevron-down); --s: 18px; margin-left: auto; transition: transform 0.35s var(--pw-ease); }
.ab-faq-list summary:hover, .ab-faq-list details[open] summary { color: var(--pw-green); }
.ab-faq-list summary:hover { background: #f5f8f3; }
.ab-faq-list details[open] summary::after { transform: rotate(180deg); }
.ab-faq-list details p { padding: 0 25px 17px 30px; color: #64725f; font-size: 15px; line-height: 1.7; }

@media (max-width: 1100px) { .ab-faq { gap: 45px; } }
@media (max-width: 900px) { .ab-faq { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 760px) {
	.ab-faq { padding-block: 45px; }
	.ab-faq h2 { font-size: 43px; }
	.ab-faq-list summary { font-size: 16px; gap: 12px; }
	.ab-faq-list details p { padding-left: 27px; }
}

/* --------------------------------------------------------------------------
   Contact / demo request
   -------------------------------------------------------------------------- */

.ab-contact { padding-block: 95px 105px; background: var(--pw-forest); color: #f5f8ee; }
.ab-contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 90px; align-items: start; }
.ab-contact h1, .ab-contact h2 { color: #f9faf4; font-size: clamp(58px, 6.6vw, 94px); line-height: 1.03; }
.ab-contact h1 em, .ab-contact h2 em { color: #d4eb99; }
.ab-contact-intro > p { max-width: 440px; margin-top: 27px; color: #b9c9ae; font-size: 18px; line-height: 1.65; }
.ab-contact-intro > .ab-contact-phone { max-width: none; margin-top: 36px; }
.ab-contact-phone a { display: inline-flex; align-items: center; gap: 16px; color: var(--pw-lime); font-size: 29px; line-height: 1.1; letter-spacing: -0.04em; }
.ab-contact-phone a::after { --i: var(--i-arrow-up-right); --s: 23px; transition: transform 0.25s var(--pw-ease); }
.ab-contact-phone a:hover::after { transform: translate(2px, -2px); }
.ab-contact-intro > .ab-contact-links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 14px; color: #b9cdab; font-size: 14px; }
.ab-contact-links a:hover { color: #fff; text-decoration: underline; }
.ab-contact-intro > .ab-demo-terms { display: block; margin-top: 28px; color: #9cb894; font-size: 13px; }
.ab-contact :is(a, button, input):focus-visible { outline-color: #d1efad; }

.request-card { min-width: 0; padding: 36px; background: #fff; color: var(--pw-ink); border: 1px solid #cadaaf; border-radius: 10px; }
.request-card :is(h2, h3) { color: var(--pw-ink); font-size: 29px; line-height: 1.1; letter-spacing: -0.045em; }
.request-card > p { margin-top: 10px; color: #65765e; font-size: 15px; line-height: 1.55; }
.request-card :is(a, button, input, textarea):focus-visible { outline-color: #187548; }

.pw-form { display: grid; gap: 14px; margin-top: 22px; }
.pw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pw-field { margin: 0; }
.pw-field label { display: block; margin-bottom: 6px; color: #2b3b31; font-size: 13px; font-weight: 600; }
.pw-field input, .pw-field textarea {
	width: 100%;
	padding: 12px 13px;
	background: #fff;
	color: var(--pw-ink);
	border: 1px solid #d5ddd4;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.pw-field textarea { resize: vertical; min-height: 84px; }
.pw-field input:focus, .pw-field textarea:focus { border-color: var(--pw-green); box-shadow: 0 0 0 3px #0f6b4514; outline: none; }
.pw-form-submit { margin-top: 4px; }
.pw-form-button { width: 100%; }
.pw-form-note { color: #63775a; font-size: 12px; line-height: 1.5; }
.pw-form-note a { color: var(--pw-green); text-decoration: underline; }
.pw-form-alert { padding: 12px 14px; border-radius: 6px; font-size: 14px; line-height: 1.45; }
.pw-form-alert.is-success { background: #e9f5dc; color: #1e4d2e; }
.pw-form-alert.is-error { background: #fbeae6; color: #8a3a2c; }
.pw-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.ab-contact-full { padding-top: 58px; }
.ab-contact-full .ab-contact-intro > p { max-width: 480px; }

@media (max-width: 1100px) { .ab-contact-grid { gap: 45px; } }
@media (max-width: 900px) {
	.ab-contact-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
	.ab-contact h1, .ab-contact h2 { font-size: 59px; }
	.request-card { padding: 25px; }
	.pw-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.ab-contact { padding-block: 60px; }
	.ab-contact-full { padding-block: 34px 45px; }
	.ab-contact-grid { grid-template-columns: 1fr; gap: 37px; }
	.ab-contact h1, .ab-contact h2 { font-size: clamp(39px, 10.5vw, 62px); }
	.ab-contact-intro > p { font-size: 17px; margin-top: 18px; }
	.ab-contact-phone a { font-size: 26px; }
	.request-card { padding: 27px 24px; }
	.request-card h3 { font-size: 27px; }
}

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

.ab-footer { padding: 66px 0 22px; background: #f7f8f4; }
.ab-footer-columns { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 55px; }
.ab-footer-brand .pw-logo img { width: 162px; }
.ab-footer-brand > p { margin-top: 18px; color: #66765d; font-size: 14px; line-height: 1.6; }
.ab-footer-brand > .ab-footer-address { margin-top: 22px; color: #66755d; font-size: 13px; }
.ab-footer-col h3, .ab-footer-col-title { margin-bottom: 10px; color: var(--pw-ink); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.pw-footer-nav .wp-block-navigation__container { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pw-footer-nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 0; color: #65745d; font-size: 14px; }
.ab-contact-links a { display: inline-flex; align-items: center; min-height: 28px; }
.pw-footer-nav .wp-block-navigation-item__content:hover { color: var(--pw-green); }
.ab-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 74px; padding-top: 20px; border-top: 1px solid #dde5d5; color: #5f6b5c; font-size: 12px; }
.ab-footer-bottom p { color: inherit; font-size: inherit; }
.pw-top a { display: inline-flex; align-items: center; gap: 7px; color: var(--pw-green); }
.pw-top a::after { --i: var(--i-arrow-up-right); --s: 18px; }

@media (max-width: 1100px) { .ab-footer-columns { gap: 23px; } }
@media (max-width: 680px) {
	.ab-footer { padding-top: 45px; }
	.ab-footer-columns { grid-template-columns: 1fr 1fr; gap: 33px 20px; padding-bottom: 35px; }
	.ab-footer-brand { grid-column: 1 / -1; }
	.ab-footer-bottom { font-size: 11px; gap: 16px; flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Our story
   -------------------------------------------------------------------------- */

.sp-page { background: #fff; }
.sp-eyebrow { display: block; margin-bottom: 27px; color: #176c46; font-size: 14px; font-weight: 600; line-height: 1.4; }
.sp-page h1 { font-size: clamp(58px, 6.65vw, 94px); line-height: 1.02; letter-spacing: -0.058em; }
.sp-page h2 { font-size: clamp(38px, 4vw, 57px); line-height: 1.06; letter-spacing: -0.047em; }

.sp-story-hero { padding-top: 56px; padding-bottom: 51px; }
.sp-story-hero-row { display: grid; grid-template-columns: 1.6fr 0.8fr; gap: 75px; align-items: end; }
.sp-story-hero-row > p { max-width: 365px; padding-bottom: 8px; font-size: 20px; }

.sp-story-photo {
	position: relative;
	width: min(1440px, calc(100% - 40px));
	height: clamp(420px, 42vw, 580px);
	margin: 0 auto;
	overflow: hidden;
	border-radius: 18px;
	background: #233a26;
	isolation: isolate;
}
.sp-story-photo .wp-block-image { position: absolute; inset: 0; margin: 0; }
.sp-story-photo .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.sp-story-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #08160cd4, #08160c28 37%, transparent 62%); pointer-events: none; }
.sp-story-photo-caption { position: absolute; z-index: 1; left: 45px; right: 35px; bottom: 38px; color: #fff; }
.sp-story-photo-caption .sp-eyebrow { margin-bottom: 15px; color: #fff; font-weight: 400; }
.sp-story-photo-line { color: #fff; font-size: clamp(28px, 3vw, 43px); font-weight: 500; line-height: 1.13; letter-spacing: -0.03em; }

.sp-story-origin { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; padding-block: 69px; }
.sp-story-prose p { margin-bottom: 22px; font-size: 19px; }
.sp-story-prose p:last-child { margin-bottom: 0; }
.sp-story-prose .sp-prose-emphasis { margin-block: 32px 18px; color: #176c46; font-size: 23px; font-weight: 500; letter-spacing: -0.025em; }

.sp-principles { margin-block: 42px 39px; padding: 53px 48px 47px; background: #15291f; color: #fff; border-radius: 20px; }
.sp-principles-heading { display: grid; grid-template-columns: 1.3fr 0.85fr; gap: 0 65px; align-items: end; }
.sp-principles-heading .sp-eyebrow { grid-column: 1 / -1; color: #c5d5c3; }
.sp-principles h2 { color: #f5f8f0; }
.sp-principles h2 em { color: #c9e8aa; }
.sp-principles-heading > p { padding-bottom: 3px; color: #c3d1c5; }
.sp-principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 43px; border-top: 1px solid #ffffff2a; }
.sp-principle { position: relative; padding: 27px 27px 0; }
.sp-principle:first-child { padding-left: 0; }
.sp-principle:last-child { padding-right: 0; }
.sp-principle + .sp-principle { border-left: 1px solid #ffffff2a; }
.sp-principle::before { --s: 24px; position: absolute; top: 25px; right: 29px; color: #c9e8aa; }
.sp-principle:last-child::before { right: 0; }
.sp-principle-number { display: block; margin-bottom: 33px; color: #aac4ad; font-size: 13px; }
.sp-principle h3 { color: #f3f7ef; font-size: clamp(25px, 2.15vw, 31px); line-height: 1.1; letter-spacing: -0.025em; }
.sp-principle p { margin-top: 19px; color: #becec0; font-size: 16px; line-height: 1.6; }
.sp-principles :is(a, button):focus-visible { outline-color: #d1efad; }

.sp-story-next { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; align-items: center; padding-block: 70px; }
.sp-story-next-photo { height: 500px; overflow: hidden; border-radius: 14px; }
.sp-story-next-photo .wp-block-image, .sp-story-next-photo img { width: 100%; height: 100%; }
.sp-story-next-photo img { object-fit: cover; object-position: 51% 50%; }
.sp-story-next-copy p { margin-top: 23px; }
.sp-story-next-copy .sp-eyebrow { margin-top: 0; }
.sp-story-next-copy .wp-block-buttons { margin-top: 22px; }

@media (max-width: 1100px) {
	.sp-story-origin { gap: 50px; }
	.sp-story-hero-row { grid-template-columns: 1.4fr 1fr; gap: 36px; }
	.sp-principles { padding-inline: 32px; }
	.sp-principles-heading { gap: 0 35px; }
	.sp-story-next { gap: 45px; }
}
@media (max-width: 760px) {
	.sp-page h1 { font-size: clamp(44px, 9.7vw, 66px); }
	.sp-page h2 { font-size: clamp(34px, 7.5vw, 45px); }
	.sp-eyebrow { margin-bottom: 22px; }
	.sp-story-hero { padding-block: 39px 32px; }
	.sp-story-hero-row { grid-template-columns: 1fr; gap: 24px; }
	.sp-story-hero-row > p { max-width: 490px; padding: 0; font-size: 18px; }
	.sp-story-photo { width: calc(100% - 24px); height: 460px; border-radius: 14px; }
	.sp-story-photo .wp-block-image img { object-position: 49% 50%; }
	.sp-story-photo-caption { left: 25px; right: 20px; bottom: 29px; }
	.sp-story-photo-line { font-size: 29px; }
	.sp-story-photo-caption .sp-eyebrow { font-size: 13px; }
	.sp-story-origin { grid-template-columns: 1fr; gap: 27px; padding-block: 44px; }
	.sp-story-prose p { margin-bottom: 20px; font-size: 17px; }
	.sp-story-prose .sp-prose-emphasis { margin-top: 25px; font-size: 21px; }
	.sp-principles { padding: 32px 25px; border-radius: 16px; }
	.sp-principles-heading { grid-template-columns: 1fr; gap: 0; }
	.sp-principles-heading > p { margin-top: 22px; font-size: 17px; }
	.sp-principle-grid { grid-template-columns: 1fr; margin-top: 30px; }
	.sp-principle, .sp-principle:first-child, .sp-principle:last-child { padding: 25px 0; }
	.sp-principle + .sp-principle { border-left: 0; border-top: 1px solid #ffffff2a; }
	.sp-principle:last-child { padding-bottom: 0; }
	.sp-principle::before { right: 0; }
	.sp-principle-number { margin-bottom: 24px; }
	.sp-principle h3 { font-size: 29px; }
	.sp-principle p { margin-top: 16px; }
	.sp-story-next { grid-template-columns: 1fr; gap: 33px; padding-block: 44px; }
	.sp-story-next-photo { height: 355px; }
}

/* --------------------------------------------------------------------------
   Prose pages (legal, posts) and 404
   -------------------------------------------------------------------------- */

.pw-page-head { padding: 64px 0 28px; }
.pw-page-head h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.05em; }
.pw-page-meta { margin-top: 14px; font-size: 14px; }

.pw-prose { max-width: 780px; margin-left: max(48px, calc((100% - 1264px) / 2)); padding-bottom: 80px; }
.pw-prose h2 { margin: 40px 0 14px; font-size: 26px; letter-spacing: -0.03em; line-height: 1.2; }
.pw-prose h3 { margin: 26px 0 10px; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.pw-prose h2 em, .pw-prose h3 em { color: inherit; }
.pw-prose p, .pw-prose li { color: #3b4a41; font-size: 17px; line-height: 1.7; letter-spacing: 0; }
.pw-prose p { margin: 0 0 16px; }
.pw-prose p strong { color: var(--pw-ink); }
.pw-prose ul, .pw-prose ol { margin: 0 0 16px; padding-left: 22px; list-style: revert; }
.pw-prose li { margin-bottom: 8px; }
.pw-prose a { color: var(--pw-green); text-decoration: underline; text-underline-offset: 2px; }
.pw-prose a:hover { color: var(--pw-green-dark); }
.pw-prose .wp-block-post-title a { text-decoration: none; color: inherit; }
.pw-prose .wp-block-post-title { margin-top: 28px; font-size: 28px; }
.pw-prose .wp-block-post-excerpt__excerpt { margin-top: 8px; }
.pw-prose .wp-block-query-pagination { display: flex; gap: 24px; margin-top: 32px; }

@media (max-width: 1100px) { .pw-prose { margin-left: 32px; } }
@media (max-width: 760px) {
	.pw-page-head { padding: 40px 0 20px; }
	.pw-prose { margin-left: 20px; padding-bottom: 56px; }
	.pw-prose p, .pw-prose li { font-size: 16px; }
}

.pw-thanks { padding: 80px 0 110px; max-width: 760px; }
.pw-thanks h1 { font-size: clamp(40px, 6vw, 72px); }
.pw-thanks > p { margin-top: 24px; max-width: 560px; font-size: 19px; }
.pw-thanks-next { margin-top: 36px; padding: 26px 28px; background: var(--pw-stone); border-radius: 14px; }
.pw-thanks-next .ref-label { margin-bottom: 4px; }
.pw-thanks-next .pw-checklist { margin-top: 14px; }
.pw-thanks-next .pw-checklist li { font-size: 16px; color: #3b4a41; }
.pw-thanks-contact { margin-top: 28px; font-size: 16px; }
.pw-thanks-contact a { color: var(--pw-green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pw-thanks .wp-block-buttons { margin-top: 28px; }
@media (max-width: 760px) { .pw-thanks { padding: 48px 0 70px; } .pw-thanks-next { padding: 22px 20px; } }

.pw-404 { padding: 80px 0 110px; max-width: 760px; }
.pw-404 h1 { font-size: clamp(40px, 6vw, 72px); }
.pw-404 p { margin-top: 24px; max-width: 520px; }
.pw-404 .wp-block-buttons { margin-top: 28px; }

/* --------------------------------------------------------------------------
   Motion
   Restrained, purposeful, and skipped entirely for visitors who prefer
   reduced motion. Sections are hidden by JS only once it is running; the
   page-load sequences below are pure CSS.
   -------------------------------------------------------------------------- */

@keyframes pw-arrive { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes pw-rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes pw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pw-scene { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes pw-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pw-pop { 0% { transform: scale(0) rotate(-25deg); opacity: 0; } 70% { transform: scale(1.18) rotate(4deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes pw-row { from { opacity: 0; transform: translate3d(-12px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes pw-slide { from { opacity: 0; transform: translate3d(-16px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes pw-pulse { 0%, 100% { box-shadow: 0 0 0 0 #b9874166; } 60% { box-shadow: 0 0 0 7px #b9874100; } }

.pw-reveal-waiting { opacity: 0; transform: translate3d(0, 22px, 0); }
.pw-reveal-waiting:focus-within, .pw-reveal-waiting:target { opacity: 1; transform: none; }
.pw-reveal-in { animation: pw-arrive 0.6s var(--pw-ease) both; }

/* Page-load choreography for the hero and story intro (no JS needed). */
@media (prefers-reduced-motion: no-preference) {
	.ab-a-hero-copy > *, .sp-story-hero > *, .ab-contact-full .ab-contact-intro > *, .ab-contact-full .request-card { animation: pw-rise 0.8s var(--pw-ease) both; }
	.ab-a-hero-copy > :nth-child(2), .sp-story-hero > :nth-child(2), .ab-contact-full .ab-contact-intro > :nth-child(2) { animation-delay: 0.1s; }
	.ab-a-hero-copy > :nth-child(3), .ab-contact-full .ab-contact-intro > :nth-child(3) { animation-delay: 0.2s; }
	.ab-a-hero-copy > :nth-child(4), .ab-contact-full .ab-contact-intro > :nth-child(4) { animation-delay: 0.3s; }
	.ab-contact-full .ab-contact-intro > :nth-child(5) { animation-delay: 0.38s; }
	.ab-contact-full .request-card { animation-delay: 0.25s; }
	.pw-hero-scene { animation: pw-scene 1s var(--pw-ease) 0.35s both; }
	.pw-hero-caption > * { animation: pw-rise 0.7s var(--pw-ease) both; animation-delay: 0.75s; }
	.pw-hero-caption > :nth-child(2) { animation-delay: 0.85s; }
	.pw-hero-watch { animation: pw-fade 0.6s ease 1s both; }
	.sp-story-photo { animation: pw-scene 1s var(--pw-ease) 0.25s both; }
	.sp-story-photo-caption > * { animation: pw-rise 0.7s var(--pw-ease) 0.65s both; }
	.sp-story-photo-caption > :nth-child(2) { animation-delay: 0.75s; }
}

/* Section labels: fade in, then the rule draws across. */
.ref-section-label.pw-reveal-waiting { transform: none; }
.ref-section-label.pw-reveal-waiting::after { transform: scaleX(0); }
.ref-section-label.pw-reveal-in { animation: pw-fade 0.5s ease both; }
.ref-section-label::after { transform-origin: left; }
.ref-section-label.pw-reveal-in::after { animation: pw-grow 1s var(--pw-ease) 0.15s both; }

/* Containers whose children are choreographed individually. */
.ab-pos-logos.pw-reveal-in, .ref-split-heading.pw-reveal-in, .ref-work-comparison.pw-reveal-in, .ref-margin-layout.pw-reveal-in,
.ab-invoice-records.pw-reveal-in, .ref-insights-teaser.pw-reveal-in, .pw-pricing-header.pw-reveal-in, .pw-feature-grid.pw-reveal-in,
.ab-faq-intro.pw-reveal-in, .ab-faq-list.pw-reveal-in, .ab-contact-grid.pw-reveal-in, .sp-principles-heading.pw-reveal-in, .sp-principle-grid.pw-reveal-in { animation: none; }

.ab-pos-logos.pw-reveal-in > * { animation: pw-fade 0.6s ease both; }
.ab-pos-logos.pw-reveal-in > :nth-child(2) { animation-delay: 0.06s; }
.ab-pos-logos.pw-reveal-in > :nth-child(3) { animation-delay: 0.12s; }
.ab-pos-logos.pw-reveal-in > :nth-child(4) { animation-delay: 0.18s; }
.ab-pos-logos.pw-reveal-in > :nth-child(5) { animation-delay: 0.24s; }
.ab-pos-logos.pw-reveal-in > :nth-child(6) { animation-delay: 0.3s; }
.ab-pos-logos.pw-reveal-in > :nth-child(7) { animation-delay: 0.36s; }

.ref-split-heading.pw-reveal-in > *, .pw-pricing-header.pw-reveal-in > *, .ab-faq-intro.pw-reveal-in > *, .sp-principles-heading.pw-reveal-in > * { animation: pw-rise 0.7s var(--pw-ease) both; }
.ref-split-heading.pw-reveal-in > :nth-child(2), .pw-pricing-header.pw-reveal-in > :nth-child(2), .ab-faq-intro.pw-reveal-in > :nth-child(2), .sp-principles-heading.pw-reveal-in > :nth-child(2) { animation-delay: 0.12s; }
.ab-faq-intro.pw-reveal-in > :nth-child(3), .sp-principles-heading.pw-reveal-in > :nth-child(3) { animation-delay: 0.22s; }

.ref-work-comparison.pw-reveal-in > * { animation: pw-rise 0.65s var(--pw-ease) both; }
.ref-work-comparison.pw-reveal-in > :nth-child(2) { animation-delay: 0.14s; }
.ref-work-comparison.pw-reveal-in .ref-after .ref-work-caption::before { animation: pw-pop 0.55s var(--pw-ease) 0.7s both; }

.ref-margin-layout.pw-reveal-in .ref-margin-copy { animation: pw-rise 0.7s var(--pw-ease) both; }
.ref-margin-layout.pw-reveal-in .ref-price-flow { animation: pw-fade 0.5s ease both; }
.ref-margin-layout.pw-reveal-in .ref-price-flow > * { animation: pw-rise 0.55s var(--pw-ease) both; }
.ref-margin-layout.pw-reveal-in .ref-price-flow > :nth-child(1) { animation-delay: 0.2s; }
.ref-margin-layout.pw-reveal-in .ref-price-flow > :nth-child(2) { animation-delay: 0.45s; }
.ref-margin-layout.pw-reveal-in .ref-price-flow > :nth-child(3) { animation-delay: 0.85s; }
.ref-margin-layout.pw-reveal-in .ref-flow-calculation > * { animation: pw-rise 0.5s var(--pw-ease) both; }
.ref-margin-layout.pw-reveal-in .ref-flow-calculation > :nth-child(2) { animation-delay: 0.1s; }
.ref-margin-layout.pw-reveal-in .ref-flow-calculation > :nth-child(3) { animation-delay: 0.18s; }
.ref-margin-layout.pw-reveal-in .ref-flow-calculation > :nth-child(4) { animation-delay: 0.26s; }
.ref-flow-cost::before { animation: pw-pulse 2.4s ease-in-out 1.2s 4; }

.ab-invoice-records.pw-reveal-in .ab-records-art { animation: pw-rise 0.7s var(--pw-ease) both; }
.ab-invoice-records.pw-reveal-in .ab-records-copy > * { animation: pw-rise 0.6s var(--pw-ease) both; }
.ab-invoice-records.pw-reveal-in .ab-records-copy > :nth-child(2) { animation-delay: 0.1s; }
.ab-invoice-records.pw-reveal-in .ab-records-copy > :nth-child(3) { animation-delay: 0.2s; }
.ab-invoice-records.pw-reveal-in .ab-records-copy > :nth-child(4) { animation-delay: 0.3s; }
.ab-invoice-records.pw-reveal-in .ab-records-table tbody tr { animation: pw-row 0.5s var(--pw-ease) both; }
.ab-invoice-records.pw-reveal-in .ab-records-table tbody tr:nth-child(1) { animation-delay: 0.35s; }
.ab-invoice-records.pw-reveal-in .ab-records-table tbody tr:nth-child(2) { animation-delay: 0.45s; }
.ab-invoice-records.pw-reveal-in .ab-records-table tbody tr:nth-child(3) { animation-delay: 0.55s; }
.ab-invoice-records.pw-reveal-in .ab-records-table tbody tr:nth-child(4) { animation-delay: 0.65s; }
.ab-invoice-records.pw-reveal-in .ab-records-bottom { animation: pw-fade 0.5s ease 0.8s both; }

.ref-insights-teaser.pw-reveal-in .ref-insights-heading { animation: pw-rise 0.7s var(--pw-ease) both; }
.ref-insights-teaser.pw-reveal-in .ref-insights-teaser-copy li { animation: pw-slide 0.55s var(--pw-ease) both; }
.ref-insights-teaser.pw-reveal-in .ref-insights-teaser-copy li:nth-child(1) { animation-delay: 0.15s; }
.ref-insights-teaser.pw-reveal-in .ref-insights-teaser-copy li:nth-child(2) { animation-delay: 0.25s; }
.ref-insights-teaser.pw-reveal-in .ref-insights-teaser-copy li:nth-child(3) { animation-delay: 0.35s; }
.ref-insights-teaser.pw-reveal-in .ref-insights-teaser-copy > p { animation: pw-rise 0.6s var(--pw-ease) 0.45s both; }
.ref-insights-teaser.pw-reveal-in .ref-insights-teaser-copy > .wp-block-buttons { animation: pw-rise 0.6s var(--pw-ease) 0.55s both; }

.pw-feature-grid.pw-reveal-in > *, .sp-principle-grid.pw-reveal-in > *, .ab-faq-list.pw-reveal-in > * { animation: pw-arrive 0.6s var(--pw-ease) both; }
.pw-feature-grid.pw-reveal-in > :nth-child(2), .sp-principle-grid.pw-reveal-in > :nth-child(2), .ab-faq-list.pw-reveal-in > :nth-child(2) { animation-delay: 0.07s; }
.pw-feature-grid.pw-reveal-in > :nth-child(3), .sp-principle-grid.pw-reveal-in > :nth-child(3), .ab-faq-list.pw-reveal-in > :nth-child(3) { animation-delay: 0.14s; }
.pw-feature-grid.pw-reveal-in > :nth-child(4), .ab-faq-list.pw-reveal-in > :nth-child(4) { animation-delay: 0.21s; }
.pw-feature-grid.pw-reveal-in > :nth-child(5), .ab-faq-list.pw-reveal-in > :nth-child(5) { animation-delay: 0.28s; }
.pw-feature-grid.pw-reveal-in > :nth-child(6), .ab-faq-list.pw-reveal-in > :nth-child(6) { animation-delay: 0.35s; }
.pw-feature-grid.pw-reveal-in > :nth-child(7), .ab-faq-list.pw-reveal-in > :nth-child(7) { animation-delay: 0.42s; }
.pw-feature-grid.pw-reveal-in > :nth-child(8), .ab-faq-list.pw-reveal-in > :nth-child(8) { animation-delay: 0.49s; }
.ab-faq-list.pw-reveal-in > :nth-child(9) { animation-delay: 0.56s; }

.ab-contact-grid.pw-reveal-in .ab-contact-intro > * { animation: pw-rise 0.7s var(--pw-ease) both; }
.ab-contact-grid.pw-reveal-in .ab-contact-intro > :nth-child(2) { animation-delay: 0.1s; }
.ab-contact-grid.pw-reveal-in .ab-contact-intro > :nth-child(3) { animation-delay: 0.2s; }
.ab-contact-grid.pw-reveal-in .ab-contact-intro > :nth-child(4) { animation-delay: 0.28s; }
.ab-contact-grid.pw-reveal-in .ab-contact-intro > :nth-child(5) { animation-delay: 0.36s; }
.ab-contact-grid.pw-reveal-in .request-card { animation: pw-rise 0.8s var(--pw-ease) 0.2s both; }

/* Sticky header: shadow and a slightly tighter bar after scrolling. */
.pw-header { transition: box-shadow 0.25s; }
.pw-header.is-scrolled { box-shadow: 0 8px 24px #0f2a1a0f; }
.pw-nav { transition: height 0.35s var(--pw-ease); }
.pw-logo img { transition: width 0.35s var(--pw-ease); }
@media (min-width: 761px) {
	.pw-header.is-scrolled .pw-nav { height: 64px; }
	.pw-header.is-scrolled .pw-logo img { width: 146px; }
}

/* Mobile menu: fade the panel, stagger the links. */
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open { animation: pw-fade 0.25s ease both; }
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { animation: pw-rise 0.45s var(--pw-ease) both; }
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.06s; }
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.12s; }
.pw-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.18s; }

/* Dialogs: scale and fade in, backdrop fades (browsers without @starting-style just appear). */
.pw-dialog { opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.25s ease, transform 0.35s var(--pw-ease), overlay 0.35s allow-discrete, display 0.35s allow-discrete; }
.pw-dialog[open] { opacity: 1; transform: none; }
.pw-dialog::backdrop { opacity: 0; transition: opacity 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete; }
.pw-dialog[open]::backdrop { opacity: 1; }
@starting-style {
	.pw-dialog[open] { opacity: 0; transform: translateY(14px) scale(0.98); }
	.pw-dialog[open]::backdrop { opacity: 0; }
}

/* Cross-page transitions on browsers that support them. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.18s; }
::view-transition-new(root) { animation-duration: 0.28s; }

/* FAQ close animation state (the chevron turns back as soon as closing starts). */
.ab-faq-list details[data-closing] summary { color: var(--pw-ink); }
.ab-faq-list details[data-closing] summary::after { transform: none; }

/* Form submit state. */
.pw-form-button[disabled] { opacity: 0.75; cursor: wait; transform: none; box-shadow: none; }
.pw-form.is-sending .pw-field input, .pw-form.is-sending .pw-field textarea { opacity: 0.8; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.pw-reveal-waiting, .pw-reveal-waiting::after { opacity: 1; transform: none; }
	.pw-dialog, .pw-dialog::backdrop { opacity: 1; transform: none; }
	::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
	.pw-header, .ab-footer, .pw-hero-watch, .pw-dialog { display: none !important; }
	.pw-reveal-waiting { opacity: 1; transform: none; }
	.ab-contact, .pw-pricing, .sp-principles { background: #fff !important; color: #000 !important; border: 1px solid #ccc; }
}
