/* 2026-09-22: Keep the editable inner-page artwork visible at intermediate widths.
 * The original 1370px layout cannot fit these viewports, so size its existing
 * Elementor groups with the available column instead of hiding them. */
@media (min-width: 768px) and (max-width: 1439px) {
	.ev-design-hero:is(.ev-design-hero-pricing, .ev-design-hero-contact, .ev-design-hero-kb) {
		padding: 30px clamp(24px, 4vw, 56px) 30px !important;
	}

	.ev-design-hero:is(.ev-design-hero-pricing, .ev-design-hero-contact, .ev-design-hero-kb) .ev-design-hero-grid {
		width: 100%;
		min-height: 0 !important;
		height: auto;
		align-items: center;
	}

	.ev-design-hero:is(.ev-design-hero-pricing, .ev-design-hero-contact, .ev-design-hero-kb) .ev-design-hero-copy {
		width: 100%;
		min-width: 0;
		margin-top: 0;
	}

	.ev-design-hero:is(.ev-design-hero-pricing, .ev-design-hero-contact, .ev-design-hero-kb) .ev-design-hero-crumbs {
		margin-top: 18px;
	}

	.ev-design-hero-pricing .ev-build-hero-outline,
	.ev-design-hero-contact .ev-build-contact-art,
	.ev-design-hero-kb .ev-kb-hero-art {
		display: block !important;
		justify-self: end;
		width: 100% !important;
		max-width: 590px;
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 695 / 469;
	}

	.ev-design-hero-contact .ev-build-contact-art {
		aspect-ratio: 695 / 495;
	}

	.ev-design-hero-pricing .ev-build-hero-outline svg,
	.ev-design-hero-kb .ev-kb-hero-outline svg,
	.ev-design-hero-contact .ev-build-contact-pattern svg {
		display: block;
		width: 100%;
		height: 100%;
	}

	/* The photo and outline retain their positions as their editable art group shrinks. */
	.ev-design-hero-kb .ev-kb-hero-outline,
	.ev-design-hero-contact .ev-build-contact-pattern {
		left: 8.35% !important;
		top: 0 !important;
		width: 91.65% !important;
		height: 95.1% !important;
	}

	.ev-design-hero-contact .ev-build-contact-pattern {
		height: 90.1% !important;
	}

	.ev-design-hero-kb .ev-kb-hero-image {
		left: 21.01% !important;
		top: 8.96% !important;
		width: 58.13% !important;
		height: 82.09% !important;
	}

	.ev-design-hero-contact .ev-build-contact-man-layer.ev-build-contact-man-layer {
		left: 21.44% !important;
		top: -27.07% !important;
		width: 60.43% !important;
		height: 127.88% !important;
		clip-path: inset(21.17% 7.14% 0.47%);
	}
}

@media (min-width: 1025px) and (max-width: 1439px) {
	/* The shared header is sticky. The old -26px grid offset pushed the
	 * Integrations title under it once the copy's desktop top margin resets. */
	.ev-design-hero-integrations.ev-design-hero-integrations {
		padding-top: 30px;
	}

	.ev-design-hero-integrations .ev-design-hero-grid {
		transform: none;
	}

	.ev-design-hero:is(.ev-design-hero-pricing, .ev-design-hero-contact, .ev-design-hero-kb) .ev-design-hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
		gap: clamp(20px, 2.5vw, 36px);
	}

	/* Three cards always share a desktop row; text and padding scale with width. */
	.ev-build-plans.ev-build-plans {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: stretch;
		gap: clamp(14px, 1.7vw, 24px);
	}

	.ev-build-plans.ev-build-plans > .ev-build-price-card {
		grid-column: auto;
		justify-self: stretch;
		width: 100%;
		min-width: 0;
		max-width: none;
		padding: clamp(18px, 2vw, 28px);
	}
	.ev-build-plans.ev-build-plans > .ev-build-price-card:nth-child(3) {
		grid-column: auto;
		justify-self: stretch;
		max-width: none;
	}

	.ev-build-plans .ev-build-price.ev-build-price {
		font-size: clamp(27px, 2.55vw, 36px);
	}

	.ev-build-plans > .ev-build-price-card:nth-child(3) .ev-build-price.ev-build-price {
		font-size: clamp(20px, 2vw, 30px);
	}
}

/* Keep a one-pixel overlap with the 1025px desktop rules. Fractional CSS
 * viewports caused by browser zoom or OS scaling can otherwise fall between
 * max-width: 1024px and min-width: 1025px. */
@media (min-width: 768px) and (max-width: 1025px) {
	.ev-design-hero:is(.ev-design-hero-pricing, .ev-design-hero-contact, .ev-design-hero-kb) .ev-design-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.ev-design-hero:is(.ev-design-hero-pricing, .ev-design-hero-contact, .ev-design-hero-kb) :is(.ev-build-hero-outline, .ev-build-contact-art, .ev-kb-hero-art) {
		display: none !important;
	}
}

/* Tablet and phone: switch all three plans at once and cap their width. */
@media (max-width: 1025px) {
	.ev-build-plans.ev-build-plans {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.ev-build-plans.ev-build-plans > .ev-build-price-card {
		grid-column: auto;
		justify-self: center;
		width: 100%;
		min-width: 0;
		max-width: 580px;
	}
	.ev-build-plans.ev-build-plans > .ev-build-price-card:nth-child(3) {
		grid-column: auto;
		justify-self: center;
		max-width: 580px;
	}
}

/* 2026-09-24: About and IMS hero artwork must not wrap at its desktop size.
 * Keep a compact two-column composition on narrower desktop screens, then move
 * the artwork to its own scaled row on tablet. Phones retain their existing
 * page-specific presentation. */
@media (min-width: 768px) and (max-width: 1439px) {
	.ev-about-hero.ev-about-hero,
	.ev-ims-hero-section.ev-ims-hero-section {
		padding: 30px clamp(24px, 4vw, 56px) !important;
	}

	.ev-about-hero-inner.ev-about-hero-inner,
	.ev-ims-hero-grid.ev-ims-hero-grid {
		width: 100%;
		max-width: none;
	}

	.ev-about-hero .ev-design-hero-grid,
	.ev-ims-hero-grid.ev-ims-hero-grid {
		min-height: 0;
		height: auto;
		align-items: center;
	}

	.ev-about-hero-copy.ev-about-hero-copy,
	.ev-ims-hero-copy.ev-ims-hero-copy {
		flex: 0 1 auto;
		width: 100%;
		min-width: 0;
		max-width: 628px;
		margin-top: 0;
	}

	.ev-about-hero-visual.ev-about-hero-visual,
	.ev-ims-hero-media.ev-ims-hero-media {
		width: 100%;
		min-width: 0;
		max-width: 590px;
		height: auto;
		aspect-ratio: 695 / 469;
		transform: none;
		justify-self: end;
	}

	.ev-about-hero-outline.ev-about-hero-outline,
	.ev-ims-hero-media.ev-ims-hero-media > .ev-build-hero-outline.ev-build-hero-outline {
		inset-block-start: 0;
		inset-inline-start: auto;
		inset-inline-end: 0;
		width: 91.52%;
		height: 94.89%;
	}

	.ev-about-hero-outline svg,
	.ev-ims-hero-media.ev-ims-hero-media > .ev-build-hero-outline svg {
		display: block;
		width: 100%;
		height: 100%;
	}

	.ev-ims-hero-media.ev-ims-hero-media > .ev-ims-shot-main.ev-ims-shot-main {
		inset-block-start: 5.76%;
		inset-inline-start: 8%;
		inset-inline-end: auto;
		width: 88.6%;
	}

	.ev-ims-hero-media.ev-ims-hero-media > .ev-ims-shot-alt.ev-ims-shot-alt {
		inset-block-start: 52.2%;
		inset-inline-start: 0;
		width: 43.2%;
	}

	.ev-design-hero-integrations .ev-design-hero-copy {
		width: 100%;
		min-width: 0;
		max-width: 628px;
		margin-top: 0;
	}

	.ev-design-hero-integrations .ev-build-integrations-art {
		width: 100%;
		max-width: 545px;
		height: auto;
		aspect-ratio: 545 / 459;
		transform: none;
		justify-self: end;
	}

	.ev-audience-hero-grid.ev-audience-hero-grid {
		align-items: center;
	}

	.ev-audience-hero-copy.ev-audience-hero-copy {
		min-width: 0;
	}

	.ev-audience-hero-art.ev-audience-hero-art {
		width: 100%;
		max-width: 610px;
		height: auto;
		aspect-ratio: 610 / 460;
		transform: none;
		justify-self: end;
	}

	.ev-audience-hero-outline.ev-audience-hero-outline {
		inset: 0;
		width: 100%;
		height: 100%;
	}

	.ev-audience-hero-main.ev-audience-hero-main {
		inset-block-start: 9.78%;
		inset-inline-start: 16%;
		width: 84%;
		height: 57.36%;
	}

	.ev-audience-hero-small.ev-audience-hero-small {
		inset-block-start: 59.9%;
		inset-inline-start: 0;
		width: 43%;
		height: 36.84%;
	}
}

@media (min-width: 1025px) and (max-width: 1439px) {
	.ev-about-hero .ev-design-hero-grid,
	.ev-ims-hero-grid.ev-ims-hero-grid,
	.ev-design-hero-integrations .ev-design-hero-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
		gap: clamp(24px, 3vw, 42px);
		flex-wrap: nowrap;
	}

	.ev-design-hero-integrations.ev-design-hero-integrations {
		padding: 30px clamp(24px, 4vw, 56px) !important;
	}

	.ev-design-hero-integrations .ev-design-hero-grid {
		width: 100%;
		max-width: none;
		min-height: 0;
		height: auto;
		align-items: center;
	}
}

@media (min-width: 768px) and (max-width: 1025px) {
	/* Product screenshots remain useful on tablet, but a full-width media group
	 * makes the homepage hero almost 1000px tall. 520px is the same readable
	 * cap used by the IMS screenshots and keeps the controls legible. */
	.ev-home-hero-grid.ev-home-hero-grid {
		min-height: 0 !important;
		height: auto;
		gap: 24px;
	}

	.ev-home-hero .ev-hero-media.ev-hero-media {
		width: min(100%, 520px);
		max-width: 520px;
		height: auto;
		aspect-ratio: 612 / 400;
		margin-inline: auto;
		transform: none !important;
	}

	.ev-about-hero .ev-design-hero-grid,
	.ev-ims-hero-grid.ev-ims-hero-grid,
	.ev-design-hero-integrations .ev-design-hero-grid,
	.ev-audience-hero-grid.ev-audience-hero-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.ev-ims-hero-media.ev-ims-hero-media {
		width: min(100%, 520px);
		min-width: 0;
		max-width: 520px;
		height: auto;
		aspect-ratio: 695 / 469;
		margin-inline: auto;
		transform: none !important;
		justify-self: center;
	}

	/* At the tablet navigation breakpoint the About outline becomes a large
	 * decorative gap. Hide it and let the hero finish after its content. */
	.ev-about-hero-visual.ev-about-hero-visual {
		display: none !important;
	}

	.ev-about-hero .ev-design-hero-grid {
		gap: 0;
	}

	.ev-ims-breadcrumb.ev-ims-breadcrumb {
		position: static;
		width: max-content;
		height: 18px;
		margin-top: 0;
	}

	.ev-design-hero-integrations.ev-design-hero-integrations {
		padding: 30px clamp(24px, 4vw, 56px) !important;
	}

	.ev-design-hero-integrations .ev-design-hero-grid {
		width: 100%;
		max-width: none;
		min-height: 0;
		height: auto;
		align-items: center;
	}

	.ev-design-hero-integrations .ev-build-integrations-art {
		max-width: 480px;
		justify-self: center;
	}

	.ev-audience-hero-copy.ev-audience-hero-copy {
		width: 100%;
		max-width: 628px;
	}

	.ev-audience-hero-art.ev-audience-hero-art {
		max-width: 520px;
		justify-self: center;
	}
}

/* The integration orbit is information, so it stays on phones. Scale the
 * whole composition proportionally; the previous fixed 278px height clipped
 * the outer logos once the viewport became wider than a small phone. */
@media (max-width: 767px) {
	.ev-design-hero-integrations .ev-build-integrations-art {
		width: min(100%, 480px);
		max-width: 480px;
		height: auto;
		aspect-ratio: 545 / 459;
		margin-inline: auto;
	}
}

@media (max-width: 767px) {
	/* The IMS screenshots are product content, so keep the complete group on
	 * phones and scale every layer from the same 695:469 canvas. */
	.ev-ims-hero-grid.ev-ims-hero-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		height: auto;
		gap: 24px;
	}

	.ev-ims-hero-media.ev-ims-hero-media {
		position: relative;
		flex: 0 1 auto;
		width: min(100%, 520px);
		min-width: 0;
		max-width: 520px;
		height: auto;
		aspect-ratio: 695 / 469;
		margin: 0 auto;
		transform: none !important;
		overflow: visible;
	}

	.ev-ims-hero-media.ev-ims-hero-media > .ev-build-hero-outline.ev-build-hero-outline {
		display: block;
		inset-block-start: 0;
		inset-inline: auto 0;
		width: 91.52%;
		height: 94.89%;
	}

	.ev-ims-hero-media.ev-ims-hero-media > .ev-build-hero-outline svg {
		display: block;
		width: 100%;
		height: 100%;
	}

	.ev-ims-hero-media.ev-ims-hero-media > .ev-ims-shot-main.ev-ims-shot-main {
		inset-block-start: 5.76%;
		inset-inline: 8% auto;
		width: 88.6%;
	}

	.ev-ims-hero-media.ev-ims-hero-media > .ev-ims-shot-alt.ev-ims-shot-alt {
		display: block;
		inset-block-start: 52.2%;
		inset-inline-start: 0;
		width: 43.2%;
	}

	.ev-audience-hero-art.ev-audience-hero-art {
		width: min(100%, 610px);
		max-width: 610px;
		height: auto;
		aspect-ratio: 610 / 460;
		margin-inline: auto;
	}

	.ev-audience-hero-outline.ev-audience-hero-outline {
		inset: 0;
		width: 100%;
		height: 100%;
	}

	.ev-audience-hero-main.ev-audience-hero-main {
		inset-block-start: 9.78%;
		inset-inline-start: 16%;
		width: 84%;
		height: 57.36%;
	}

	.ev-audience-hero-small.ev-audience-hero-small {
		inset-block-start: 59.9%;
		inset-inline-start: 0;
		width: 43%;
		height: 36.84%;
	}
}

/* The audience artwork becomes decorative once the compact navigation is in
 * use. The same rule covers brokers, banks and fund managers. */
@media (max-width: 1025px) {
	.ev-audience-hero-grid.ev-audience-hero-grid {
		gap: 0;
	}

	.ev-audience-hero-art.ev-audience-hero-art {
		display: none !important;
	}
}

/* Switch the shared header before the desktop links collide. */
@media (min-width: 768px) and (max-width: 1025px) {
	body.ev-menu-open .ev-site-header {
		position: fixed !important;
		inset: 0 0 auto 0 !important;
		width: 100%;
		z-index: 10000 !important;
	}

	.ev-header-bar.ev-header-bar {
		justify-content: flex-start;
		gap: 12px;
	}

	.ev-header-bar.ev-header-bar > .elementor-widget-nav-menu {
		order: -1;
		flex: 0 0 44px;
		width: 44px;
	}

	.ev-header-bar.ev-header-bar > .e-con { padding-inline: 0; }
	.ev-header-bar.ev-header-bar > .ev-inline-group { margin-inline-start: auto; }
	.ev-header-bar.ev-header-bar .ev-hide-mobile { display: none !important; }
	.ev-header-bar.ev-header-bar .elementor-nav-menu--main { display: none !important; }
	.ev-header-bar.ev-header-bar .elementor-menu-toggle { display: flex !important; }
	.ev-header-bar.ev-header-bar .ev-site-logo {
		display: block;
		width: 163px !important;
		max-width: 163px !important;
		height: 25px !important;
		object-fit: contain !important;
	}

	.ev-mobile-overlay:not([hidden]) {
		display: block !important;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.7);
		z-index: 10000;
	}
	.ev-mobile-overlay[hidden] { display: none !important; }

	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown {
		position: fixed !important;
		inset: 0 auto 0 0 !important;
		display: flex !important;
		flex-direction: column;
		box-sizing: border-box;
		width: 310px !important;
		max-width: calc(100vw - 50px) !important;
		height: 100dvh !important;
		max-height: 100dvh !important;
		margin: 0 !important;
		padding: 15px 15px 30px !important;
		overflow-y: auto;
		border: 0 !important;
		border-radius: 0 !important;
		background: #FFFFFF !important;
		box-shadow: none !important;
		visibility: hidden;
		pointer-events: none;
		transform: translate3d(-100%, 0, 0) !important;
		transition: transform .4s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .4s;
		z-index: 10001 !important;
		color: #09001A !important;
	}

	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown.ev-menu-panel-open {
		visibility: visible;
		pointer-events: auto;
		transform: translate3d(0, 0, 0) !important;
		transition-delay: 0s;
	}

	.ev-menu-heading {
		display: flex !important;
		flex: 0 0 auto;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 44px;
		margin-bottom: 20px;
		color: #09001A;
		font: 600 25px/32px var(--font-body, Poppins), system-ui, sans-serif;
	}

	.ev-menu-home {
		display: flex !important;
		align-items: center;
		box-sizing: border-box;
		width: 163px;
		height: 44px;
		color: #09001A;
		text-decoration: none;
	}

	.ev-menu-home svg {
		display: block;
		width: 163px !important;
		height: 25px !important;
		flex: none;
	}

	.ev-menu-home:focus-visible {
		outline: 2px solid #8753FA;
		outline-offset: 3px;
	}

	.ev-menu-close {
		position: relative;
		top: auto;
		right: auto;
		display: grid;
		place-items: center;
		box-sizing: border-box;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50% !important;
		background: transparent !important;
		color: #FFFFFF !important;
		cursor: pointer;
	}

	.ev-menu-close::before {
		content: '';
		position: absolute;
		inset: 50% auto auto 50%;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: #8753FA;
		transform: translate(-50%, -50%);
	}

	.ev-menu-close svg {
		position: relative;
		z-index: 1;
		display: block;
		width: 16px;
		height: 16px;
		fill: none;
		stroke: currentColor;
		stroke-width: 3;
		stroke-linecap: round;
	}

	.ev-menu-close:focus-visible {
		outline: 2px solid #09001A;
		outline-offset: 2px;
	}

	.ev-menu-demo.ev-menu-demo {
		display: flex !important;
		flex: 0 0 48px;
		align-items: center;
		justify-content: center;
		width: 100% !important;
		max-width: none !important;
		min-height: 48px;
		margin-top: auto;
		padding: 12px 30px !important;
		border-radius: 100px !important;
		background: #8753FA !important;
		color: #FFFFFF !important;
		font: 600 16px/24px var(--font-body, Poppins), system-ui, sans-serif;
		text-decoration: none;
	}

	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown > .elementor-nav-menu {
		display: flex !important;
		flex: 0 0 auto;
		flex-direction: column;
		width: 100%;
		margin: 0;
		padding: 0;
		border-top: 1px solid #E5E7EF;
		background: transparent !important;
	}

	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown .menu-item {
		display: block;
		width: 100%;
		margin: 0;
		border-bottom: 1px solid #E5E7EF;
		background: transparent !important;
	}

	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown .elementor-item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		box-sizing: border-box;
		width: 100%;
		min-height: 56px;
		padding: 15px 0 !important;
		background: transparent !important;
		color: #09001A !important;
		font: 500 17px/25.5px var(--font-body, Poppins), system-ui, sans-serif;
	}

	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown .elementor-item:is(:hover, :focus-visible, [aria-current="page"], .highlighted) {
		color: #8753FA !important;
	}

	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown .sub-menu {
		position: static !important;
		display: none;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 20px 15px !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown .elementor-item.highlighted + .sub-menu {
		display: flex !important;
		flex-direction: column;
		gap: 15px;
	}

	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown .sub-menu .menu-item { border: 0; }
	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown .sub-menu .elementor-sub-item {
		min-height: 23px;
		padding: 0 !important;
		background: transparent !important;
		color: #09001A !important;
		font-size: 15px;
		line-height: 22.5px;
	}

	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown .sub-menu .elementor-sub-item:is(:hover, :focus-visible, [aria-current="page"], .elementor-item-active) {
		background: transparent !important;
		color: #8753FA !important;
	}

	.ev-header-bar.ev-header-bar .elementor-menu-toggle {
		box-sizing: border-box;
		width: 44px !important;
		height: 44px !important;
		margin: -10px !important;
		padding: 10px !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		color: #09001A !important;
		box-shadow: none !important;
	}

	.ev-header-bar.ev-header-bar .elementor-menu-toggle svg {
		width: 24px !important;
		height: 24px !important;
		flex: none;
	}

	.ev-header-bar.ev-header-bar .elementor-menu-toggle[aria-expanded="false"] .elementor-menu-toggle__icon--close,
	.ev-header-bar.ev-header-bar .elementor-menu-toggle[aria-expanded="true"] .elementor-menu-toggle__icon--open {
		display: none;
	}

	.ev-header-bar.ev-header-bar .elementor-menu-toggle[aria-expanded="false"] .elementor-menu-toggle__icon--open,
	.ev-header-bar.ev-header-bar .elementor-menu-toggle[aria-expanded="true"] .elementor-menu-toggle__icon--close {
		display: block;
	}

	.ev-header-bar.ev-header-bar .elementor-menu-toggle:focus-visible {
		outline: 2px solid #8753FA;
		outline-offset: 2px;
	}
}

@media (min-width: 768px) and (max-width: 1025px) and (prefers-reduced-motion: reduce) {
	.ev-header-bar.ev-header-bar nav.elementor-nav-menu--dropdown {
		transition: none !important;
	}
}
