/* Maxify Cobalt & Cream: stacking service cards, curtain sections, scroll-scrubbed infographics */

/* ---------- Services intro ---------- */

.cx-services {
	padding: var(--section-y) 0 0;
}

.cx-services .cx-head {
	margin-bottom: 56px;
}

/* ---------- Stacking cards ---------- */

.cx-stack {
	display: flex;
	flex-direction: column;
	padding-bottom: 72px;
}

.cx-stack-card {
	position: sticky;
	top: calc(var(--stack-top, 104px) + var(--i, 0) * 18px);
	min-height: min(600px, calc(100vh - 160px));
	margin-bottom: 22vh;
	display: flex;
	align-items: center;
	gap: 64px;
	padding: 56px;
	border-radius: var(--r-panel);
	transform-origin: 50% 0;
	box-shadow: 0 -10px 40px rgba(20, 28, 70, 0.08), 0 30px 60px rgba(20, 28, 70, 0.1);
	will-change: transform;
	--g-bg: #FFFFFF;
}

.cx-stack-card:last-child {
	margin-bottom: 0;
}

.cx-stack-cobalt {
	background:
		radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.16), transparent 45%),
		var(--c-accent);
	color: #FFFFFF;
	box-shadow: 0 -10px 40px rgba(59, 91, 240, 0.18), 0 30px 60px rgba(59, 91, 240, 0.28);
}

.cx-stack-cream {
	background: var(--c-bg-deep);
}

.cx-stack-ink {
	background: var(--c-ink);
	color: var(--c-on-dark);
}

.cx-stack-paper {
	background: var(--c-paper);
	--g-bg: #F3F5FF;
}

.cx-stack-copy {
	flex: 0 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.cx-stack-title {
	font-size: clamp(30px, 3.4vw, 48px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.035em;
}

.cx-stack-text {
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--c-ink-2);
	max-width: 40ch;
}

.cx-stack-cobalt .cx-stack-text {
	color: rgba(255, 255, 255, 0.82);
}

.cx-stack-ink .cx-stack-text {
	color: var(--c-on-dark-2);
}

.cx-stack-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 6px;
}

.cx-stack-li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
}

.cx-stack-tick {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--r-pill);
	background: var(--c-accent);
	color: #FFFFFF;
}

.cx-stack-cobalt .cx-stack-tick {
	background: #FFFFFF;
	color: var(--c-accent);
}

.cx-stack-tick svg {
	width: 15px;
	height: 15px;
}

.cx-stack-media {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	justify-content: flex-end;
}

.cx-gx-frame {
	width: 100%;
	max-width: 640px;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(20, 20, 26, 0.06), 0 24px 48px rgba(20, 20, 26, 0.16);
}

.cx-stack-paper .cx-gx-frame,
.cx-stack-cream .cx-gx-frame {
	box-shadow: 0 1px 2px rgba(20, 28, 70, 0.05), 0 16px 36px rgba(20, 28, 70, 0.1);
}

.gx {
	display: block;
	width: 100%;
	height: auto;
}

/* Copy inside each card eases in when the card arrives */

@media (prefers-reduced-motion: no-preference) {
	.cx-js .cx-stack-card [data-cx-item] {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
		transition-delay: calc(var(--n, 0) * 80ms + 120ms);
	}

	.cx-js .cx-stack-card.is-visible [data-cx-item] {
		opacity: 1;
		transform: none;
	}

	/* Word-by-word heading reveals */
	.cx-js [data-cx-reveal] .cx-word {
		display: inline-block;
		opacity: 0;
		transform: translateY(0.45em);
		transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
		transition-delay: calc(var(--i, 0) * 55ms + 80ms);
	}

	.cx-js [data-cx-reveal].is-visible .cx-word {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Curtain: How it works holds while the dark section slides over it ---------- */

.cx-curtain-under {
	position: sticky;
	top: var(--curtain-top, 0px);
	z-index: 0;
}

.cx-curtain-over {
	position: relative;
	z-index: 1;
	border-radius: 40px 40px 0 0;
	margin-top: -40px;
	box-shadow: 0 -24px 60px rgba(20, 20, 26, 0.18);
}

.cx-after-curtain {
	position: relative;
	z-index: 1;
	background: var(--c-bg);
}

/* ---------- Scroll-scrubbed infographics ----------
   JS writes --p (0..1) on each svg. Every animated element runs a paused 1s
   timeline whose delay is driven by --p, so scrolling scrubs it forwards and
   backwards. --o is when an element starts, --len how long it takes.
   With no JS --p defaults to 1, so the finished frame shows. */

.gx .fb {
	transform-box: fill-box;
	transform-origin: 50% 50%;
}

.gx .fb-b {
	transform-box: fill-box;
	transform-origin: 50% 100%;
}

.gx .fb-l {
	transform-box: fill-box;
	transform-origin: 0% 50%;
}

.gx .gdraw {
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}

.gx .l-ring {
	opacity: 0;
}

.gx .l-grow {
	transform: scale(1.3);
}

@media all {
	.gx .s {
		animation-duration: calc(var(--len, 1) * 1s);
		animation-delay: calc((var(--o, 0) - var(--p, 1)) * 1s);
		animation-fill-mode: both;
		animation-play-state: paused;
		animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
		animation-iteration-count: 1;
	}

	.gx .gpop { animation-name: gx-pop; animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1); }
	.gx .gdraw { animation-name: gx-draw; }
	.gx .gslide { animation-name: gx-slide; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
	.gx .gbar { animation-name: gx-bar; animation-timing-function: cubic-bezier(0.34, 1.3, 0.64, 1); }
	.gx .gbarx { animation-name: gx-barx; }

	.gx .r-q { animation-name: gx-r-q; }
	.gx .r-up,
	.gx .r-mark { animation-name: gx-r-up; }
	.gx .r-fill { animation-name: gx-r-fill; }
	.gx .r-s1 { animation-name: gx-r-s1; }
	.gx .r-s2 { animation-name: gx-r-s2; }
	.gx .r-s3 { animation-name: gx-r-s3; }
	.gx .r-s4 { animation-name: gx-r-s4; }
	.gx .r-glow { animation-name: gx-r-glow; }
	.gx .r-star { animation-name: gx-r-star; }

	.gx .l-drop { animation-name: gx-l-drop; animation-timing-function: linear; }
	.gx .l-grow { animation-name: gx-l-grow; animation-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1); }
	.gx .l-ring { animation-name: gx-l-ring; animation-timing-function: ease-out; }

	.gx .w-tile { animation-name: gx-w-tile; animation-timing-function: cubic-bezier(0.34, 1.2, 0.64, 1); }
}

@keyframes gx-pop {
	0% { opacity: 0; transform: scale(0); }
	100% { opacity: 1; transform: scale(1); }
}

@keyframes gx-draw {
	0% { stroke-dashoffset: 1; }
	100% { stroke-dashoffset: 0; }
}

@keyframes gx-slide {
	0% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 24px)); }
	100% { opacity: 1; transform: translate(0px, 0px); }
}

@keyframes gx-bar {
	0% { transform: scaleY(0); }
	100% { transform: scaleY(1); }
}

@keyframes gx-barx {
	0% { transform: scaleX(0); }
	100% { transform: scaleX(1); }
}

@keyframes gx-r-q {
	0% { transform: scaleX(0); }
	14%, 100% { transform: scaleX(1); }
}

@keyframes gx-r-up {
	0%, 15% { transform: translateY(248px); }
	27%, 31% { transform: translateY(186px); }
	43%, 47% { transform: translateY(124px); }
	59%, 63% { transform: translateY(62px); }
	75%, 100% { transform: translateY(0px); }
}

@keyframes gx-r-fill {
	0%, 15% { transform: scaleY(0); }
	27%, 31% { transform: scaleY(0.25); }
	43%, 47% { transform: scaleY(0.5); }
	59%, 63% { transform: scaleY(0.75); }
	75%, 100% { transform: scaleY(1); }
}

@keyframes gx-r-s4 {
	0%, 15% { transform: translateY(-62px); }
	27%, 100% { transform: translateY(0px); }
}

@keyframes gx-r-s3 {
	0%, 31% { transform: translateY(-62px); }
	43%, 100% { transform: translateY(0px); }
}

@keyframes gx-r-s2 {
	0%, 47% { transform: translateY(-62px); }
	59%, 100% { transform: translateY(0px); }
}

@keyframes gx-r-s1 {
	0%, 63% { transform: translateY(-62px); }
	75%, 100% { transform: translateY(0px); }
}

@keyframes gx-r-glow {
	0%, 75% { opacity: 0; }
	86%, 100% { opacity: 1; }
}

@keyframes gx-r-star {
	0%, 80% { opacity: 0; transform: scale(0); }
	90% { opacity: 1; transform: scale(1.15); }
	96%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes gx-l-drop {
	0% { opacity: 0; transform: translateY(-190px); animation-timing-function: cubic-bezier(0.5, 0, 1, 1); }
	55% { opacity: 1; transform: translateY(0px); animation-timing-function: ease-out; }
	75% { transform: translateY(-16px); animation-timing-function: ease-in; }
	100% { opacity: 1; transform: translateY(0px); }
}

@keyframes gx-l-grow {
	0% { transform: scale(1); }
	100% { transform: scale(1.3); }
}

@keyframes gx-l-ring {
	0% { opacity: 0; transform: scale(0.5); }
	15% { opacity: 0.85; }
	100% { opacity: 0; transform: scale(3.2); }
}

@keyframes gx-w-tile {
	0% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(0.6); }
	30% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); }
	100% { opacity: 1; transform: translate(0px, 0px) rotate(0deg) scale(1); }
}

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

@media (max-width: 1100px) {
	.cx-stack-card {
		gap: 40px;
		padding: 44px;
	}

	.cx-stack-copy {
		flex-basis: 360px;
	}
}

@media (max-width: 860px) {
	.cx-stack-card {
		top: calc(84px + var(--i, 0) * 12px);
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
		padding: 32px 24px;
		min-height: 0;
		margin-bottom: 14vh;
		border-radius: var(--r-card);
	}

	.cx-stack-copy {
		flex-basis: auto;
		gap: 14px;
	}

	.cx-stack-text {
		font-size: var(--fs-body);
	}

	.cx-stack-list {
		gap: 8px;
	}

	.cx-stack-media {
		justify-content: center;
	}

	.cx-gx-frame {
		border-radius: 16px;
	}

	.cx-curtain-over {
		border-radius: 28px 28px 0 0;
		margin-top: -28px;
	}
}

/* Short screens and reduced motion: a normal list, no pinning */
@media (max-height: 480px) {
	.cx-stack-card {
		position: relative;
		top: auto;
		margin-bottom: 24px;
		min-height: 0;
	}

	.cx-curtain-under {
		position: relative;
		top: auto;
	}
}

/* ---------- v3: centred text-only hero ---------- */

.cx-hero {
	padding: 136px 0 144px;
	overflow: visible;
}

.cx-hero-inner {
	align-items: center;
	text-align: center;
	gap: 40px;
}

.cx-hero-title {
	margin: 0 auto;
}

.cx-hero-row {
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.cx-hero-lede {
	flex: 0 0 auto;
	max-width: 640px;
	align-items: center;
	padding-top: 0;
}

.cx-hero-sub {
	margin: 0 auto;
}

.cx-actions,
.cx-hero-points {
	justify-content: center;
}

/* ---------- v3: footer logo keeps its proportions ---------- */

.maxify-cobalt .footer-logo-img {
	align-self: flex-start;
	height: 48px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}

/* ---------- v3: stacking cards fit shorter screens ---------- */

@media (max-height: 860px) and (min-width: 861px) {
	.cx-stack-card {
		min-height: 0;
		padding: 40px 48px;
		gap: 48px;
	}

	.cx-gx-frame {
		max-width: calc((100vh - 240px) * 1.4545);
	}

	.cx-stack-title {
		font-size: clamp(28px, 3vw, 40px);
	}

	.cx-stack-text {
		font-size: 17px;
	}
}

@media (max-height: 640px) and (min-width: 861px) {
	.cx-stack-card {
		padding: 28px 40px;
	}

	.cx-stack-list {
		display: none;
	}
}

@media (max-width: 860px) and (max-height: 760px) {
	.cx-stack-list {
		display: none;
	}
}

@media (max-width: 640px) {
	.cx-hero {
		padding: 72px 0 88px;
	}

	.cx-hero-lede {
		width: 100%;
	}
}
/* ---------- v4: stacking cards (after scroll-driven-animations.style/demos/stacking-cards) ----------
   Each .cx-stack-item pins with an extra top offset per card. The card inside
   scales down as the whole deck scrolls out: card 1 to 70%, 2 to 80%, 3 to 90%,
   the last stays at 100%. Native CSS scroll timeline where supported, JS otherwise. */

.cx-stack {
	--card-top-offset: 20px;
	gap: 4vw;
	padding-bottom: calc(var(--numcards, 4) * var(--card-top-offset) + 72px);
	view-timeline-name: --cx-cards;
}

.cx-stack-item {
	position: sticky;
	top: var(--stack-top, 96px);
	padding-top: calc((var(--index, 1) - 1) * var(--card-top-offset));
}

.cx-stack-card {
	position: relative;
	top: auto;
	margin-bottom: 0;
	transform-origin: 50% 0%;
	will-change: transform;
	--index0: calc(var(--index, 1) - 1);
	--reverse-index: calc(var(--numcards, 4) - var(--index0));
	--start-range: calc(var(--index0) / var(--numcards, 4) * 100%);
	--end-range: calc(var(--index, 1) / var(--numcards, 4) * 100%);
}

@supports (animation-timeline: view()) {
	@media (min-height: 481px) {
		.cx-stack-card {
			animation: linear cx-stack-scale forwards;
			animation-timeline: --cx-cards;
			animation-range: exit-crossing var(--start-range) exit-crossing var(--end-range);
		}
	}
}

@keyframes cx-stack-scale {
	to {
		transform: scale(calc(1.1 - calc(0.1 * var(--reverse-index))));
	}
}

@media (max-width: 860px) {
	.cx-stack {
		--card-top-offset: 12px;
		gap: 6vw;
	}
}

@media (max-height: 480px) {
	.cx-stack-item {
		position: relative;
		top: auto;
	}
}
/* ---------- v6: Poppins everywhere, Poppins italic for highlight words ---------- */

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-400-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-500-italic.woff2') format('woff2');
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-600-italic.woff2') format('woff2');
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-700-italic.woff2') format('woff2');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-800.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-800-italic.woff2') format('woff2');
	font-weight: 800;
	font-style: italic;
	font-display: swap;
}

:root {
	--f-display: 'Poppins', sans-serif;
	--f-body: 'Poppins', sans-serif;
	--fs-hero: clamp(38px, 6.2vw, 84px);
	--fs-h2: clamp(30px, 4vw, 54px);
}

.maxify-cobalt :where(h1, h2, h3) {
	letter-spacing: -0.025em;
}

.cx-hero-title {
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.cx-h2,
.cx-cta-title,
.cx-stack-title {
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.cx-hl {
	font-style: italic;
	color: var(--c-accent);
	padding-right: 0.04em;
}

.cx-cta .cx-hl {
	color: #FFFFFF;
}

/* Hero: 'customers.' in Poppins italic, white on a cobalt block */
.cx-hero-title .cx-accent {
	display: inline-block;
	font-style: italic;
	color: #FFFFFF;
	padding: 0.02em 0.22em 0.1em 0.16em;
	border-radius: 0.16em;
	line-height: 1.05;
	background: linear-gradient(var(--c-accent), var(--c-accent)) no-repeat 0 0 / 100% 100%;
	transition: background-size 0.8s var(--ease-out) 0.5s;
}

@media (prefers-reduced-motion: no-preference) {
	.cx-js .cx-hero:not(.is-ready) .cx-hero-title .cx-accent {
		background-size: 0% 100%;
	}
}

/* No black tiles */
.cx-stack-sky {
	background: var(--c-accent-soft);
	color: var(--c-ink);
}

.cx-light {
	background: var(--c-paper);
	color: var(--c-ink);
}

.cx-light .cx-lead,
.cx-light .cx-approach-text {
	color: var(--c-ink-2);
}

.cx-light .cx-approach {
	border-top-color: var(--c-line);
}

.cx-light .cx-approach-item {
	border-bottom-color: var(--c-line);
}

.cx-light .cx-approach-item:nth-child(2n) {
	border-left-color: var(--c-line);
}

.cx-curtain-over.cx-light {
	box-shadow: 0 -24px 60px rgba(20, 28, 70, 0.08);
}

/* Footer: warm cream instead of black */
.maxify-cobalt .site-footer {
	background: var(--c-bg-deep);
	color: var(--c-ink);
	border-radius: 40px 40px 0 0;
}

.maxify-cobalt .footer-logo-img {
	filter: none;
}

.maxify-cobalt .footer-tagline {
	color: var(--c-ink-2);
}

.maxify-cobalt .footer-link {
	color: var(--c-ink);
}

.maxify-cobalt .footer-link:hover {
	color: var(--c-accent);
}

.maxify-cobalt .footer-bottom {
	border-top-color: var(--c-line);
}

.maxify-cobalt .footer-copy {
	color: var(--c-ink-3);
}

@media (max-width: 640px) {
	.maxify-cobalt .site-footer {
		border-radius: 28px 28px 0 0;
	}

	.maxify-cobalt .footer-row,
	.maxify-cobalt .footer-brand {
		align-items: center;
		text-align: center;
	}

	.maxify-cobalt .footer-logo-img {
		align-self: center;
	}

	.maxify-cobalt .footer-tagline {
		margin: 0 auto;
	}

	.maxify-cobalt .footer-nav {
		justify-content: center;
	}

	.maxify-cobalt .footer-bottom {
		text-align: center;
	}
}
/* ---------- v7: hero highlight back to plain blue text ---------- */

.cx-hero-title .cx-accent {
	display: inline;
	color: var(--c-accent);
	background: none;
	padding: 0 0.04em 0 0;
	border-radius: 0;
	transition: none;
}

/* ---------- v8: contact as a stepped deck of tiles ---------- */

.cx-contact {
	min-height: calc(100vh - 72px);
	display: flex;
	align-items: center;
	padding: 48px 0;
}

.cx-contact > .cx-inner {
	width: 100%;
}

.cx-contact .cx-contact-row {
	align-items: center;
}

.cx-contact-info {
	gap: 18px;
}

.cx-progress {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
}

.cx-progress-bar {
	flex: 0 0 180px;
	height: 6px;
	border-radius: var(--r-pill);
	background: var(--c-line);
	overflow: hidden;
	display: flex;
}

.cx-progress-fill {
	flex: 1 1 auto;
	background: var(--c-accent);
	transform-origin: 0 50%;
	transform: scaleX(var(--prog, 0));
	transition: transform 0.6s var(--ease-out);
}

.cx-progress-text {
	font-size: var(--fs-small);
	font-weight: 600;
	color: var(--c-ink-2);
}

/* The tiles are the form; no outer card */
.cx-contact .cx-contact-info {
	flex: 1 1 380px;
	min-width: 0;
}

.cx-contact .cx-form-wrap {
	flex: 1.3 1 520px;
	min-width: 0;
}

.maxify-cobalt .cx-steps-form {
	display: block;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

/* Tiles: a plain list of fields until the script takes over */
.cx-tiles {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cx-tile {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 40px;
	border-radius: var(--r-card);
	box-shadow: 0 1px 2px rgba(20, 28, 70, 0.05), 0 18px 40px rgba(20, 28, 70, 0.1);
	--g-in: #FFFFFF;
}

.cx-tile-cobalt {
	background:
		radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.16), transparent 45%),
		var(--c-accent);
	color: #FFFFFF;
	box-shadow: 0 18px 44px rgba(59, 91, 240, 0.28);
	--g-in: #F3F5FF;
}

.cx-tile-cream {
	background: var(--c-bg-deep);
}

.cx-tile-sky {
	background: var(--c-accent-soft);
}

.cx-tile-paper {
	background: var(--c-paper);
	--g-in: #F3F5FF;
}

.cx-tile-q {
	font-family: var(--f-display);
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.03em;
	margin: 0;
}

.cx-tile-cobalt .cx-hl {
	color: #FFFFFF;
}

.cx-tile-hint,
.cx-tile-text {
	color: var(--c-ink-2);
	margin: -4px 0 0;
}

.cx-tile-cobalt .cx-tile-hint {
	color: rgba(255, 255, 255, 0.8);
}

.maxify-cobalt .cx-tile .cx-tile-input {
	background: var(--g-in);
	font-size: 18px;
	padding: 16px 18px;
}

.maxify-cobalt .cx-tile .form-textarea {
	min-height: 110px;
}

.cx-tile-error {
	min-height: 1.3em;
	margin: -4px 0 0;
	font-size: var(--fs-small);
	font-weight: 600;
}

.cx-tile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.cx-tile-cobalt .cx-btn-ghost {
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.6);
}

.cx-tile-cobalt .cx-btn-ghost:hover {
	background: #FFFFFF;
	color: var(--c-accent);
}

.cx-tile-done {
	display: none;
}

.cx-steps-form .form-note {
	margin-top: 18px;
}

/* Stepped deck (script running): tiles share one spot and stack */
.cx-steps-form.is-stepped .cx-tiles {
	flex-direction: row;
	align-items: stretch;
	gap: 0;
	padding-top: 56px;
}

.cx-steps-form.is-stepped .cx-tile {
	position: relative;
	z-index: 20;
	flex: 0 0 100%;
	min-width: 0;
	min-height: 330px;
	transform-origin: 50% 0;
	transition: transform 0.7s var(--ease-out), opacity 0.5s ease, visibility 0s linear 0s;
}

.cx-steps-form.is-stepped .cx-tile + .cx-tile {
	margin-left: -100%;
}

.cx-steps-form.is-stepped .cx-tile-done {
	display: flex;
}

.cx-steps-form.is-stepped .cx-tile[data-state="future"] {
	z-index: 30;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(70px) scale(0.98);
	transition: transform 0.6s var(--ease-out), opacity 0.35s ease, visibility 0s linear 0.6s;
}

.cx-steps-form.is-stepped .cx-tile[data-state="past"] {
	z-index: calc(10 - var(--k, 1));
	pointer-events: none;
	transform: translateY(calc(var(--k, 1) * -18px)) scale(calc(1 - var(--k, 1) * 0.05));
}

.cx-steps-form.is-stepped .cx-tile[data-state="past"][style*="--k: 4"],
.cx-steps-form.is-stepped .cx-tile[data-state="past"][style*="--k: 5"] {
	opacity: 0;
}

.cx-tile.is-error .cx-tile-input {
	animation: cx-shake 0.4s ease;
	border-color: currentColor;
}

@keyframes cx-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-6px); }
	75% { transform: translateX(6px); }
}

@media (max-width: 860px) {
	.cx-contact {
		min-height: calc(100vh - 64px);
		padding: 28px 0;
	}

	.cx-contact .cx-contact-row {
		gap: 20px;
	}

	.cx-contact .cx-contact-list {
		display: none;
	}

	.cx-contact .cx-lead {
		font-size: var(--fs-body);
	}

	.cx-tile {
		padding: 28px 22px;
	}

	.cx-steps-form.is-stepped .cx-tiles {
		padding-top: 32px;
	}

	.cx-steps-form.is-stepped .cx-tile {
		min-height: 0;
	}

	.cx-tile-q {
		font-size: 24px;
	}

	.maxify-cobalt .cx-tile .form-textarea {
		min-height: 80px;
	}

	.cx-steps-form .form-note {
		margin-top: 12px;
	}
}

/* ---------- v9: contact fits one screen and holds still ---------- */

html {
	scrollbar-gutter: stable;
}

html.cx-locked {
	overflow: hidden;
	overscroll-behavior: none;
}

@media (max-width: 860px) {
	.cx-contact {
		min-height: 0;
		height: calc(100vh - var(--cx-hh, 64px));
		height: calc(100dvh - var(--cx-hh, 64px));
		padding: 18px 0 14px;
		align-items: stretch;
	}

	.cx-contact .cx-contact-row {
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		gap: 12px;
		height: 100%;
	}

	.cx-contact .cx-contact-info,
	.cx-contact .cx-form-wrap {
		flex: 0 0 auto;
		width: 100%;
	}

	.cx-contact .cx-contact-info {
		gap: 8px;
	}

	.cx-contact .cx-h2 {
		font-size: 26px;
	}

	.cx-contact .cx-lead {
		display: none;
	}

	.cx-progress-bar {
		flex-basis: 140px;
	}

	.cx-steps-form.is-stepped .cx-tiles {
		padding-top: 22px;
	}

	.cx-tile {
		padding: 20px 18px;
		gap: 10px;
		border-radius: 20px;
	}

	.cx-tile-q {
		font-size: 22px;
	}

	.maxify-cobalt .cx-tile .cx-tile-input {
		font-size: 16px;
		padding: 13px 14px;
	}

	.maxify-cobalt .cx-tile .form-textarea {
		min-height: 72px;
	}

	.cx-tile-error {
		min-height: 1.1em;
		font-size: 13px;
	}

	.cx-tile-actions .cx-btn {
		padding: 13px 20px;
		font-size: 15px;
	}

	.cx-steps-form .form-note {
		margin-top: 10px;
		font-size: 12px;
	}
}

/* ---------- v10: tablet portrait sizing for the contact section ---------- */

@media (min-width: 641px) and (max-width: 860px) {
	.cx-contact .cx-contact-row {
		max-width: 640px;
		margin: 0 auto;
		gap: 22px;
	}

	.cx-contact .cx-contact-info {
		gap: 14px;
	}

	.cx-contact .cx-h2 {
		font-size: 40px;
	}

	.cx-contact .cx-lead {
		display: block;
		font-size: 18px;
	}

	.cx-progress-bar {
		flex-basis: 200px;
	}

	.cx-steps-form.is-stepped .cx-tiles {
		padding-top: 40px;
	}

	.cx-tile {
		padding: 36px 32px;
		gap: 14px;
		border-radius: var(--r-card);
	}

	.cx-tile-q {
		font-size: 32px;
	}

	.maxify-cobalt .cx-tile .cx-tile-input {
		font-size: 18px;
		padding: 16px 18px;
	}

	.maxify-cobalt .cx-tile .form-textarea {
		min-height: 110px;
	}

	.cx-tile-actions .cx-btn {
		padding: 15px 24px;
		font-size: 16px;
	}

	.cx-steps-form .form-note {
		font-size: 13px;
	}
}

/* ---------- v11: calmer hovers, centred CTA with a scroll cue ---------- */

/* The script manages scroll position; stop the browser nudging it (removes a 1px landing wobble) */
html {
	overflow-anchor: none;
	scroll-behavior: auto;
}

/* Icons and arrows no longer move on hover */
.cx-btn:hover .cx-btn-arrow,
.cx-point:hover .cx-point-icon,
.cx-approach-item:hover .cx-approach-icon {
	transform: none;
}

.cx-point:hover .cx-point-icon {
	background: var(--c-accent-soft);
	color: var(--c-accent);
}

/* Centred "Ready for a website..." panel */
.cx-cta {
	align-items: center;
	text-align: center;
	gap: 36px;
}

.cx-cta-title {
	max-width: 16ch;
	margin: 0 auto;
}

.cx-scroll-cue {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--r-pill);
	border: 2px solid rgba(255, 255, 255, 0.55);
	color: #FFFFFF;
}

.cx-scroll-cue svg {
	width: 24px;
	height: 24px;
}

@media (prefers-reduced-motion: no-preference) {
	.cx-scroll-cue svg {
		animation: cx-cue 1.8s ease-in-out infinite;
	}
}

@keyframes cx-cue {
	0%, 100% { transform: translateY(-3px); opacity: 0.75; }
	50% { transform: translateY(4px); opacity: 1; }
}

/* ---------- v12: services heading at hero size, its own stop before the tiles ---------- */

.cx-services .cx-head {
	max-width: none;
	min-height: 62vh;
	margin: 0 auto;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.cx-services .cx-services-title {
	font-size: var(--fs-hero);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.035em;
	max-width: 12ch;
	margin: 0 auto;
}

@media (max-width: 860px) {
	.cx-services .cx-head {
		min-height: 52vh;
		margin-bottom: 0;
	}
}

/* ---------- v13: "Why it's built this way" fills the screen, heading at hero size, reasons play in ---------- */

#approach {
	min-height: calc(100vh - var(--cx-hh, 72px));
	display: flex;
	align-items: center;
	padding: 56px 0;
}

#approach > .cx-inner {
	width: 100%;
}

#approach .cx-head {
	max-width: none;
	align-items: center;
	text-align: center;
	margin: 0 auto 44px;
}

#approach .cx-approach-heading {
	font-size: var(--fs-hero);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.035em;
	max-width: 18ch;
	margin: 0 auto;
}

#approach .cx-approach-item {
	padding-top: 30px;
	padding-bottom: 30px;
}

/* The reasons wait off-stage until the section stops, then arrive one after another */
.cx-js .cx-approach-play .cx-approach-item {
	opacity: 0;
	transform: translateY(32px);
}

.cx-js .cx-approach-play .cx-approach-icon {
	transform: scale(0.3) rotate(-24deg);
}

.cx-js .cx-approach-play .cx-approach-body {
	opacity: 0;
	transform: translateX(-14px);
}

.cx-js .cx-approach-play.is-playing .cx-approach-item {
	animation: cx-why-in 0.7s var(--ease-out) forwards;
	animation-delay: calc(var(--i, 0) * 0.5s + 0.2s);
}

.cx-js .cx-approach-play.is-playing .cx-approach-icon {
	animation: cx-why-pop 0.75s var(--ease-out) forwards;
	animation-delay: calc(var(--i, 0) * 0.5s + 0.3s);
}

.cx-js .cx-approach-play.is-playing .cx-approach-body {
	animation: cx-why-text 0.6s var(--ease-out) forwards;
	animation-delay: calc(var(--i, 0) * 0.5s + 0.45s);
}

@keyframes cx-why-in {
	to { opacity: 1; transform: none; }
}

@keyframes cx-why-pop {
	0% { transform: scale(0.3) rotate(-24deg); }
	60% { transform: scale(1.14) rotate(6deg); }
	100% { transform: none; }
}

@keyframes cx-why-text {
	to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
	#approach {
		padding: 36px 0;
	}

	#approach .cx-head {
		margin-bottom: 20px;
	}

	#approach .cx-approach-item,
	#approach .cx-approach-item:nth-child(2n) {
		gap: 16px;
		padding: 16px 0;
	}

	#approach .cx-approach-icon {
		width: 44px;
		height: 44px;
		border-radius: 13px;
	}

	#approach .cx-approach-icon svg {
		width: 20px;
		height: 20px;
	}

	#approach .cx-approach-body {
		gap: 4px;
	}

	#approach .cx-approach-title {
		font-size: 18px;
	}

	#approach .cx-approach-text {
		font-size: 15px;
		line-height: 1.45;
	}
}

/* ---------- v14: scroll cue under the services heading; reasons as tiles that rise in, overlapping ---------- */

.cx-scroll-cue svg {
	animation: cx-cue 1.8s ease-in-out infinite;
}

.cx-services .cx-head {
	gap: 36px;
}

.cx-scroll-cue-ink {
	border-color: rgba(82, 113, 255, 0.35);
	color: var(--c-accent);
}

#approach .cx-approach {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	border-top: 0;
}

#approach .cx-approach-item,
#approach .cx-approach-item:nth-child(2n) {
	position: relative;
	flex: 1 1 calc(50% - 9px);
	min-width: 0;
	align-items: center;
	padding: 30px 32px;
	border: 0;
	border-radius: var(--r-card);
	background: var(--c-bg-deep);
	box-shadow: 0 1px 2px rgba(20, 28, 70, 0.05), 0 18px 40px rgba(20, 28, 70, 0.1);
	z-index: calc(1 + var(--i, 0));
}

#approach .cx-approach-item:nth-child(4n + 1),
#approach .cx-approach-item:nth-child(4n) {
	background: var(--c-accent-soft);
}

#approach .cx-light .cx-approach-text,
#approach .cx-approach-text {
	color: var(--c-ink-2);
}

/* Each tile rises from below and settles; the next starts before the last has landed */
.cx-js .cx-approach-play .cx-approach-item {
	opacity: 0;
	transform: translateY(110px) scale(0.92);
}

.cx-js .cx-approach-play.is-playing .cx-approach-item {
	animation: cx-why-rise 1s var(--ease-out) forwards;
	animation-delay: calc(var(--i, 0) * 0.4s);
}

.cx-js .cx-approach-play.is-playing .cx-approach-icon {
	animation: cx-why-pop 0.8s var(--ease-out) forwards;
	animation-delay: calc(var(--i, 0) * 0.4s + 0.35s);
}

.cx-js .cx-approach-play.is-playing .cx-approach-body {
	animation: cx-why-text 0.7s var(--ease-out) forwards;
	animation-delay: calc(var(--i, 0) * 0.4s + 0.4s);
}

@keyframes cx-why-rise {
	0% { opacity: 0; transform: translateY(110px) scale(0.92); }
	35% { opacity: 1; }
	70% { transform: translateY(-8px) scale(1.01); }
	100% { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
	.cx-services .cx-head {
		gap: 26px;
	}

	.cx-scroll-cue-ink {
		width: 48px;
		height: 48px;
	}

	#approach .cx-approach {
		gap: 10px;
	}

	#approach .cx-approach-item,
	#approach .cx-approach-item:nth-child(2n) {
		flex-basis: 100%;
		padding: 16px 18px;
		gap: 14px;
		border-radius: 18px;
	}

	.cx-js .cx-approach-play .cx-approach-item {
		transform: translateY(70px) scale(0.94);
	}
}

@media (max-width: 860px) {
	#approach .cx-approach-item:nth-child(n) {
		background: var(--c-bg-deep);
	}

	#approach .cx-approach-item:nth-child(2n + 1) {
		background: var(--c-accent-soft);
	}
}

@media (max-width: 860px) and (max-height: 760px) {
	#approach {
		padding: 20px 0;
	}

	#approach .cx-head {
		margin-bottom: 14px;
	}

	#approach .cx-approach-heading {
		font-size: 32px;
	}

	#approach .cx-approach-item,
	#approach .cx-approach-item:nth-child(2n) {
		padding: 12px 16px;
	}

	#approach .cx-approach-title {
		font-size: 16px;
	}

	#approach .cx-approach-text {
		font-size: 13.5px;
		line-height: 1.4;
	}

	#approach .cx-approach-icon {
		width: 38px;
		height: 38px;
		border-radius: 11px;
	}
}

/* ---------- v15: instant section jumps, logo-only header, hero scroll cue ---------- */

html {
	scrollbar-gutter: stable;
}

/* While a section or tile is holding, the page can't scroll at all */
html.cx-hold {
	overflow: hidden;
}

/* Header: just the logo, centred */
.maxify-cobalt .nav-bar {
	justify-content: center;
}

/* A logo-only header keeps one fixed height, so nothing shifts when scrolling starts */
.maxify-cobalt .nav-bar,
.maxify-cobalt .site-header.is-scrolled .nav-bar {
	padding-top: 14px;
	padding-bottom: 14px;
	transition: none;
}

/* Hero fills the screen, with a scroll cue at the bottom */
.cx-hero {
	min-height: calc(100vh - var(--cx-hh, 68px));
	min-height: calc(100svh - var(--cx-hh, 68px));
	display: flex;
	flex-direction: column;
	padding: 56px 0 28px;
}

.cx-hero > .cx-hero-inner {
	margin: auto;
	width: 100%;
}

.cx-hero-cue {
	display: flex;
	justify-content: center;
	padding-top: 32px;
}

@media (max-width: 860px) {
	.maxify-cobalt .nav-bar {
		flex-wrap: nowrap;
	}

	.cx-hero {
		padding: 36px 0 24px;
	}
}

/* ---------- v17: new copy, cool grey reason tiles, contact lead on phones, "What happens next?" ---------- */

/* Why it's built this way: soft blue and cool grey tiles */
#approach .cx-approach-item,
#approach .cx-approach-item:nth-child(2n) {
	background: #ECEEF3;
}

#approach .cx-approach-item:nth-child(4n + 1),
#approach .cx-approach-item:nth-child(4n) {
	background: var(--c-accent-soft);
}

@media (max-width: 860px) {
	#approach .cx-approach-item:nth-child(n) {
		background: #ECEEF3;
	}

	#approach .cx-approach-item:nth-child(2n + 1) {
		background: var(--c-accent-soft);
	}
}

/* Contact: ticks in the blue circles */
.cx-contact-list .cx-point-icon svg {
	width: 18px;
	height: 18px;
}

/* The subheading shows on phones too */
@media (max-width: 640px) {
	.cx-contact .cx-lead {
		display: block;
		font-size: 15px;
		line-height: 1.45;
	}
}

/* Final tile: what happens next */
.cx-tile-done {
	gap: 18px;
}

.cx-next {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cx-next-step {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--c-paper);
	font-weight: 600;
}

.cx-next-num {
	flex: 0 0 auto;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.02em;
	color: var(--c-accent);
}

@media (max-width: 640px) {
	.cx-tile-done {
		gap: 12px;
	}

	.cx-next {
		gap: 6px;
	}

	.cx-next-step {
		padding: 9px 14px;
		font-size: 15px;
	}
}

/* Hero: room for the three ticks on one line on desktop */
@media (min-width: 861px) {
	.cx-hero-lede {
		max-width: 760px;
	}
}

/* ---------- v18: sizes that don't change when a phone's address bar hides ---------- */

#approach {
	min-height: calc(100svh - var(--cx-hh, 72px));
}

.cx-services .cx-head {
	min-height: 62svh;
}

@media (max-width: 860px) {
	.cx-services .cx-head {
		min-height: 52svh;
	}
}

/* ---------- v19: on touch screens the site moves the page itself (pinch-zoom still allowed) ---------- */

html.cx-guided {
	touch-action: pinch-zoom;
	overscroll-behavior-y: none;
}

/* ---------- v20: Bee Accounting form (service chips, software dropdown, six steps) ---------- */

.cx-hp {
	display: none !important;
}

.cx-steps-form.is-stepped .cx-tile[data-state="past"][style*="--k: 6"] {
	opacity: 0;
}

.cx-fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cx-fieldset .cx-tile-q {
	padding: 0;
	margin-bottom: 14px;
}

.cx-fieldset .cx-tile-hint {
	margin: -14px 0 0;
}

.bx-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bx-opt {
	display: flex;
	cursor: pointer;
}

.bx-opt input {
	width: 1px;
	height: 1px;
	margin: 0 -1px 0 0;
	opacity: 0;
}

.bx-opt span {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--r-pill, 999px);
	background: var(--c-bg-deep);
	border: 1.5px solid transparent;
	font-weight: 600;
	font-size: 16px;
	color: var(--c-ink);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bx-opt:hover span {
	border-color: rgba(82, 113, 255, 0.45);
}

.bx-opt input:focus-visible + span {
	outline: 3px solid rgba(82, 113, 255, 0.45);
	outline-offset: 2px;
}

.bx-opt input:checked + span {
	background: var(--c-accent);
	color: #FFFFFF;
}

.cx-tile.is-error .bx-opt span {
	border-color: currentColor;
}

.maxify-cobalt .cx-tile .cx-select {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	padding-right: 52px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235271FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 20px 20px;
}

.cx-tile-cobalt .cx-tile-text,
.cx-tile-sky .cx-tile-text {
	margin: 0;
}

@media (max-width: 640px) {
	.bx-opts {
		gap: 8px;
	}

	.bx-opt span {
		min-height: 40px;
		padding: 8px 14px;
		font-size: 14px;
	}

	.cx-fieldset {
		gap: 10px;
	}

	.cx-fieldset .cx-tile-q {
		margin-bottom: 10px;
	}

	.cx-fieldset .cx-tile-hint {
		margin-top: -10px;
		font-size: 14px;
	}
}

/* ---------- v21: Bee Accounting infographics (text labels, stamp) ---------- */

.gx text {
	font-family: 'Poppins', system-ui, sans-serif;
}

@media all {
	.gx .b-stamp { animation-name: gx-b-stamp; animation-timing-function: cubic-bezier(0.34, 1.5, 0.64, 1); }
}

@keyframes gx-b-stamp {
	0% { opacity: 0; transform: scale(1.8); }
	60% { opacity: 1; transform: scale(0.94); }
	100% { opacity: 1; transform: scale(1); }
}

/* ---------- v22: stacked form tiles never cover the "1 of 6" progress ---------- */

.cx-steps-form.is-stepped .cx-tile[data-state="past"] {
	transform: translateY(calc(min(var(--k, 1), 3) * -14px)) scale(calc(1 - min(var(--k, 1), 3) * 0.04));
}

.cx-steps-form.is-stepped .cx-tile[data-state="past"][style*="--k: 4"],
.cx-steps-form.is-stepped .cx-tile[data-state="past"][style*="--k: 5"],
.cx-steps-form.is-stepped .cx-tile[data-state="past"][style*="--k: 6"] {
	opacity: 0;
}

.cx-steps-form.is-stepped .cx-tiles {
	padding-top: 50px;
}

@media (max-width: 860px) {
	.cx-steps-form.is-stepped .cx-tile[data-state="past"] {
		transform: translateY(calc(min(var(--k, 1), 3) * -8px)) scale(calc(1 - min(var(--k, 1), 3) * 0.03));
	}

	.cx-steps-form.is-stepped .cx-tiles {
		padding-top: 30px;
	}
}
