/*
 * Agent Motion Kit 2
 *
 * Every effect is opt-in through a class added by the Motion Kit panel (amk-reveal-up, amk-lift-yes…).
 * Only transform and opacity are animated, so motion stays on the GPU and off the layout thread.
 * Transform channels are split so effects stack with Elementor's own Transform controls:
 *   translate → reveal, float, lift      rotate → tilt      scale → reveal      transform → parallax/Elementor
 */

:root {
	--amk-ease: cubic-bezier(.22, 1, .36, 1);
	--amk-ease-io: cubic-bezier(.65, 0, .35, 1);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(a, button, [role="radio"]):focus-visible {
	outline: 2px solid var(--e-global-color-primary, currentColor);
	outline-offset: 3px;
}

/* ------------------------------------------------------------ smooth scroll (Lenis) */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ------------------------------------------------------------ site header & footer */

.amk-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	transition:
		transform .55s var(--amk-ease),
		background-color .35s ease,
		box-shadow .35s ease;
}

.amk-site-header.is-scrolled {
	background-color: var(--amk-header-scrolled, rgba(255, 255, 255, .84));
	-webkit-backdrop-filter: saturate(1.8) blur(16px);
	backdrop-filter: saturate(1.8) blur(16px);
	box-shadow: 0 1px 0 rgba(17, 20, 28, .07);
}

.amk-site-header.is-hidden {
	transform: translate3d(0, -110%, 0);
}

@media (max-width: 600px) {
	.amk-site-header { top: 0; }
}

/* ------------------------------------------------------------ navigation widget */

.amk-nav {
	--amk-nav-link: #4a4f5c;
	--amk-nav-hover: #12141a;
	--amk-nav-active: #12141a;
	--amk-nav-pill: rgba(18, 20, 26, .06);
	--amk-nav-dot: currentColor;
	--amk-nav-gap: 2px;
	--amk-nav-toggle: #12141a;
	position: relative;
	display: flex;
	align-items: center;
}

.amk-nav__list {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: var(--amk-nav-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.amk-nav a.amk-nav__link {
	position: relative;
	display: block;
	padding: 9px 14px;
	border-radius: 999px;
	color: var(--amk-nav-link);
	text-decoration: none;
	white-space: nowrap;
	transition: color .25s ease;
}

.amk-nav a.amk-nav__link:hover,
.amk-nav a.amk-nav__link:focus-visible { color: var(--amk-nav-hover); }

.amk-nav .amk-nav__item.is-current a.amk-nav__link { color: var(--amk-nav-active); }

.amk-nav__item.is-current .amk-nav__link::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 3px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--amk-nav-dot);
	translate: -50% 0;
}

.amk-nav__item.amk-mobile-only { display: none; }

.amk-nav__pill {
	position: absolute;
	left: 0;
	top: 50%;
	z-index: 0;
	width: var(--pill-w, 0px);
	height: var(--pill-h, 36px);
	border-radius: 999px;
	background: var(--amk-nav-pill);
	opacity: 0;
	translate: var(--pill-x, 0px) -50%;
	pointer-events: none;
	transition: translate .5s var(--amk-ease), width .5s var(--amk-ease), opacity .3s ease;
}

.amk-nav.is-hovering .amk-nav__pill { opacity: 1; }
.amk-nav:not(.is-ready) .amk-nav__pill { transition: none; }

.amk-nav .amk-nav__toggle,
.amk-nav .amk-nav__toggle:hover,
.amk-nav .amk-nav__toggle:focus {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--amk-nav-toggle);
	cursor: pointer;
}

.amk-nav__toggle i {
	position: absolute;
	left: 12px;
	width: 20px;
	height: 1.75px;
	border-radius: 2px;
	background: currentColor;
	transition: translate .45s var(--amk-ease), rotate .45s var(--amk-ease);
}

.amk-nav__toggle i:first-of-type { top: 18px; }
.amk-nav__toggle i:last-of-type { top: 25px; width: 14px; }
.amk-nav__toggle[aria-expanded="true"] i:first-of-type { translate: 0 3.5px; rotate: 45deg; }
.amk-nav__toggle[aria-expanded="true"] i:last-of-type { translate: 0 -3.5px; rotate: -45deg; width: 20px; }

@media (max-width: 1024px) {
	.amk-nav--bp-tablet .amk-nav__list,
	.amk-nav--bp-tablet .amk-nav__pill { display: none; }
	.amk-nav.amk-nav--bp-tablet .amk-nav__toggle { display: inline-block; }
}

@media (max-width: 767px) {
	.amk-nav--bp-mobile .amk-nav__list,
	.amk-nav--bp-mobile .amk-nav__pill { display: none; }
	.amk-nav.amk-nav--bp-mobile .amk-nav__toggle { display: inline-block; }
}

.amk-nav__sheet {
	--amk-sheet-bg: #fff;
	--amk-sheet-link: #12141a;
	--amk-sheet-accent: #12141a;
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	flex-direction: column;
	padding: calc(var(--amk-header-h, 72px) + 16px) 24px 32px;
	overflow-y: auto;
	background: var(--amk-sheet-bg);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s var(--amk-ease), visibility 0s linear .35s;
}

.amk-nav__sheet.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .35s var(--amk-ease);
}

.amk-nav > .amk-nav__sheet { display: none; } /* until the script moves it to <body> */

@media (min-width: 1025px) {
	.amk-nav__sheet[data-bp="tablet"] { display: none; }
}

@media (min-width: 768px) {
	.amk-nav__sheet[data-bp="mobile"] { display: none; }
}

.amk-nav__sheet-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.amk-nav__sheet-list li,
.amk-nav__sheet-cta,
.amk-nav__sheet-note {
	opacity: 0;
	translate: 0 16px;
	transition: opacity .5s var(--amk-ease), translate .7s var(--amk-ease);
	transition-delay: calc(var(--i, 0) * 45ms + 80ms);
}

.amk-nav__sheet.is-open li,
.amk-nav__sheet.is-open .amk-nav__sheet-cta,
.amk-nav__sheet.is-open .amk-nav__sheet-note {
	opacity: 1;
	translate: 0 0;
}

.amk-nav__sheet a.amk-nav__sheet-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 2px;
	border-bottom: 1px solid rgba(18, 20, 26, .08);
	color: var(--amk-sheet-link);
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.15;
	text-decoration: none;
}

.amk-nav__sheet a.amk-nav__sheet-link::after {
	content: "";
	width: 10px;
	height: 10px;
	border-top: 1.75px solid currentColor;
	border-right: 1.75px solid currentColor;
	rotate: 45deg;
	opacity: .35;
}

.amk-nav__sheet a.amk-nav__sheet-link.is-current { color: var(--amk-sheet-accent); }
.amk-nav__sheet a.amk-nav__sheet-link.is-current::after { opacity: 1; }

.amk-nav__sheet a.amk-nav__sheet-cta {
	display: flex;
	justify-content: center;
	margin-top: 28px;
	padding: 17px 24px;
	border-radius: 14px;
	background: var(--amk-sheet-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.amk-nav__sheet-note {
	margin: 18px 0 0;
	color: rgba(18, 20, 26, .55);
	font-size: 14px;
	text-align: center;
}

html.amk-nav-open { overflow: hidden; }

/* ------------------------------------------------------------ billing toggle + prices */

.amk-billing {
	--amk-bill-track: rgba(18, 20, 26, .06);
	--amk-bill-thumb: #fff;
	--amk-bill-text: #5b6070;
	--amk-bill-active: #12141a;
	--amk-bill-badge-bg: #e7f6ee;
	--amk-bill-badge: #127a49;
	position: relative;
	isolation: isolate;
	display: inline-flex;
	padding: 4px;
	border-radius: 999px;
	background: var(--amk-bill-track);
}

.amk-billing .amk-billing__opt,
.amk-billing .amk-billing__opt:hover,
.amk-billing .amk-billing__opt:focus {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--amk-bill-text);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: color .3s ease;
}

.amk-billing .amk-billing__opt[aria-checked="true"] { color: var(--amk-bill-active); }

.amk-billing__thumb {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	z-index: 0;
	width: var(--w, 50%);
	border-radius: 999px;
	background: var(--amk-bill-thumb);
	box-shadow: 0 1px 2px rgba(18, 20, 26, .08), 0 6px 16px -6px rgba(18, 20, 26, .18);
	translate: var(--x, 4px) 0;
	transition: translate .55s var(--amk-ease), width .55s var(--amk-ease);
}

.amk-billing:not(.is-ready) .amk-billing__thumb { opacity: 0; }

.amk-billing__badge {
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--amk-bill-badge-bg);
	color: var(--amk-bill-badge);
	font-size: 12px;
	font-weight: 600;
}

.amk-price-yearly { display: none; }
.amk-billing-yearly .amk-price-yearly { display: block; }
.amk-billing-yearly .amk-price-monthly { display: none; }

.amk-billing-touched .amk-price-monthly,
.amk-billing-touched .amk-price-yearly {
	animation: amk-swap .55s var(--amk-ease) both;
}

@keyframes amk-swap {
	from { opacity: 0; translate: 0 10px; }
	to   { opacity: 1; translate: 0 0; }
}

/* ------------------------------------------------------------ entrance reveals */

:is(.amk-reveal-up, .amk-reveal-fade, .amk-reveal-scale, .amk-reveal-clip, .amk-reveal-left, .amk-reveal-right):not(.amk-done) {
	transition:
		opacity .9s var(--amk-ease),
		translate 1.1s var(--amk-ease),
		scale 1.1s var(--amk-ease),
		clip-path 1.2s var(--amk-ease);
	transition-delay: var(--amk-delay, 0ms);
}

html.amk-js body:not(.elementor-editor-active) .amk-reveal-up:not(.amk-in)    { opacity: 0; translate: 0 26px; }
html.amk-js body:not(.elementor-editor-active) .amk-reveal-fade:not(.amk-in)  { opacity: 0; }
html.amk-js body:not(.elementor-editor-active) .amk-reveal-scale:not(.amk-in) { opacity: 0; scale: .965; }
html.amk-js body:not(.elementor-editor-active) .amk-reveal-clip:not(.amk-in)  { opacity: 0; clip-path: inset(10% 6% 10% 6% round 28px); }
html.amk-js body:not(.elementor-editor-active) .amk-reveal-left:not(.amk-in)  { opacity: 0; translate: -36px 0; }
html.amk-js body:not(.elementor-editor-active) .amk-reveal-right:not(.amk-in) { opacity: 0; translate: 36px 0; }

/* Direct children one after another (boxed containers wrap them in .e-con-inner). */
.amk-stagger-yes:not(.amk-done) > .elementor-element,
.amk-stagger-yes:not(.amk-done) > .e-con-inner > .elementor-element {
	transition: opacity .8s var(--amk-ease), translate 1s var(--amk-ease);
	transition-delay: calc(var(--amk-delay, 0ms) + var(--amk-i, 0) * 75ms);
}

html.amk-js body:not(.elementor-editor-active) .amk-stagger-yes:not(.amk-in) > .elementor-element,
html.amk-js body:not(.elementor-editor-active) .amk-stagger-yes:not(.amk-in) > .e-con-inner > .elementor-element {
	opacity: 0;
	translate: 0 22px;
}

/* Words rise from behind a mask. The script wraps each word; until then the heading stays hidden. */
.amk-reveal-words .amk-w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding: 0 .06em .16em;
	margin: 0 -.06em -.16em;
}

.amk-reveal-words .amk-wi { display: inline-block; }

.amk-reveal-words:not(.amk-done) .amk-wi {
	transition: translate 1.05s var(--amk-ease);
	transition-delay: calc(var(--amk-delay, 0ms) + var(--i, 0) * 40ms);
}

html.amk-js body:not(.elementor-editor-active) .amk-reveal-words:not(.amk-split) { opacity: 0; }
html.amk-js body:not(.elementor-editor-active) .amk-reveal-words:not(.amk-in) .amk-wi { translate: 0 112%; }

/* Fail-safe: if the script never starts, show everything after 2.5s. */
html.amk-js:not(.amk-ready) body:not(.elementor-editor-active) :is([class*="amk-reveal-"], .amk-stagger-yes > .elementor-element, .amk-stagger-yes > .e-con-inner > .elementor-element) {
	animation: amk-failsafe .6s ease 2.5s forwards;
}

@keyframes amk-failsafe {
	to { opacity: 1; translate: none; scale: none; clip-path: none; }
}

/* Highlighter sweep under <em> words in headings. */
.amk-mark-yes em {
	padding: 0 .08em;
	margin: 0 -.02em;
	background-image: linear-gradient(var(--amk-mark, #ffe28a), var(--amk-mark, #ffe28a));
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 0% .4em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-size 1.2s var(--amk-ease) calc(var(--amk-delay, 0ms) + 350ms);
}

.amk-mark-yes.amk-in em,
body.elementor-editor-active .amk-mark-yes em { background-size: 100% .4em; }

/* ------------------------------------------------------------ hover */

@media (hover: hover) and (pointer: fine) {
	.elementor-element.amk-lift-yes {
		transition: translate .55s var(--amk-ease), box-shadow .55s var(--amk-ease), border-color .3s ease;
	}

	.elementor .elementor-element.amk-lift-yes:hover {
		translate: 0 -6px;
		box-shadow: 0 2px 4px -2px rgba(18, 20, 26, .06), 0 26px 48px -24px rgba(18, 20, 26, .26);
	}

	.e-con:has(> .amk-tilt-yes),
	.e-con-inner:has(> .amk-tilt-yes) { perspective: 1200px; }

	.amk-tilt-yes {
		rotate: var(--amk-ax, 0) var(--amk-ay, 1) 0 var(--amk-angle, 0deg);
		will-change: rotate;
	}

	.elementor-button { transition-property: color, background-color, border-color, box-shadow, translate; transition-duration: .3s; }
	.elementor-button:hover { translate: 0 -1px; }
	.elementor-button .elementor-button-icon { transition: translate .4s var(--amk-ease); }
	.elementor-button:hover .elementor-button-icon { translate: 3px 0; }
}

.amk-spotlight-yes { isolation: isolate; }

.amk-spotlight-yes::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--amk-x, 50%) var(--amk-y, 50%), var(--amk-spot, rgba(255, 255, 255, .5)), transparent 65%);
	opacity: 0;
	transition: opacity .45s ease;
}

.amk-spotlight-yes.amk-lit::after { opacity: 1; }

/* ------------------------------------------------------------ continuous motion */

.amk-float-soft  { animation: amk-soft  var(--amk-float-dur, 7s)  ease-in-out var(--amk-float-delay, 0s) infinite; }
.amk-float-drift { animation: amk-drift var(--amk-float-dur, 12s) ease-in-out var(--amk-float-delay, 0s) infinite; }

@keyframes amk-soft {
	0%, 100% { translate: 0 0; }
	50%      { translate: 0 -10px; }
}

@keyframes amk-drift {
	0%, 100% { translate: 0 0; }
	33%      { translate: 6px -9px; }
	66%      { translate: -5px -4px; }
}

.amk-parallax-yes {
	transform: translate3d(0, var(--amk-py, 0px), 0);
	will-change: transform;
}

.amk-progress-x { transform-origin: left center; transform: scaleX(var(--amk-p, 0)); }
.amk-progress-y { transform-origin: center top; transform: scaleY(var(--amk-p, 0)); }
body.elementor-editor-active :is(.amk-progress-x, .amk-progress-y) { transform: none; }

.amk-glow-yes { isolation: isolate; overflow: hidden; }

.amk-glow-yes::after {
	content: "";
	position: absolute;
	inset: -25%;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(38% 46% at 28% 34%, var(--amk-glow-a, rgba(255, 170, 140, .55)) 0%, transparent 72%),
		radial-gradient(34% 42% at 74% 62%, var(--amk-glow-b, rgba(196, 181, 253, .5)) 0%, transparent 72%);
	animation: amk-glow 24s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes amk-glow {
	0%   { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1); }
	50%  { transform: translate3d(3%, 3%, 0) rotate(9deg) scale(1.08); }
	100% { transform: translate3d(-2%, 4%, 0) rotate(-6deg) scale(1.02); }
}

@media (min-width: 1025px) {
	.amk-guides-yes > .e-con-inner {
		padding-inline: 40px;
		border-inline: 1px solid var(--amk-guide, rgba(18, 20, 26, .07));
	}
}

.amk-glass-yes {
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
}

.e-con:has(> .amk-marquee-yes),
.e-con-inner:has(> .amk-marquee-yes) {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.amk-marquee-yes.amk-marquee-run {
	--width: max-content;
	width: max-content !important;
	max-width: none !important;
	flex-wrap: nowrap !important;
	padding-inline: 0 var(--column-gap, 0px) !important;
	animation: amk-marquee var(--amk-marquee-dur, 36s) linear infinite;
}

@keyframes amk-marquee {
	to { transform: translate3d(-50%, 0, 0); }
}

/* ------------------------------------------------------------ sequences (chat / task demos) */

.amk-seq-yes > .elementor-element:not(.amk-role-typing) {
	transition: opacity .55s var(--amk-ease), translate .7s var(--amk-ease);
}

html.amk-js body:not(.elementor-editor-active) .amk-seq-yes > .elementor-element:not(.is-on):not(.amk-role-typing) {
	opacity: 0;
	translate: 0 12px;
}

.amk-seq-yes.is-resetting > .elementor-element { transition-duration: .4s; }

body:not(.elementor-editor-active) .amk-role-typing {
	position: absolute;
	top: 0;
	left: var(--amk-typing-x, 0px);
	translate: 0 var(--amk-typing-y, 0px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}

.amk-seq-yes.is-typing > .amk-role-typing { opacity: 1; }

.amk-role-typing > .elementor-element { animation: amk-dot 1.1s ease-in-out infinite both; }
.amk-role-typing > .elementor-element:nth-child(2) { animation-delay: .15s; }
.amk-role-typing > .elementor-element:nth-child(3) { animation-delay: .3s; }

@keyframes amk-dot {
	0%, 80%, 100% { opacity: .35; translate: 0 0; }
	40%           { opacity: 1; translate: 0 -3px; }
}

/* ------------------------------------------------------------ paused while off screen */

.amk-off,
.amk-off::after,
.amk-off * { animation-play-state: paused !important; }

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
	html.amk-js body :is([class*="amk-reveal-"], .amk-stagger-yes > .elementor-element, .amk-stagger-yes > .e-con-inner > .elementor-element, .amk-seq-yes > .elementor-element, .amk-wi) {
		opacity: 1 !important;
		translate: none !important;
		scale: none !important;
		clip-path: none !important;
		transition: none !important;
	}

	.amk-float-soft, .amk-float-drift, .amk-glow-yes::after, .amk-marquee-yes, .amk-role-typing > .elementor-element {
		animation: none !important;
	}

	.amk-role-typing { display: none !important; }
	.amk-progress-x, .amk-progress-y { transform: none; }
	.amk-mark-yes em { transition: none; background-size: 100% .4em; }
}

/* ------------------------------------------------------------ price suffix ("/month") inside a price heading */

.amk-per {
	margin-left: .3em;
	font-family: var(--e-global-typography-text-font-family), sans-serif;
	font-size: .3em;
	font-weight: 500;
	letter-spacing: 0;
	opacity: .62;
	white-space: nowrap;
}

/* ------------------------------------------------------------ text spacing */

/* Links inside running text are underlined, so they don't rely on colour alone. */
.elementor-widget-text-editor a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* The theme adds space under every paragraph; inside cards and bubbles the last one should sit flush. */
.elementor-widget-text-editor p:last-child { margin-block-end: 0; }

/* ------------------------------------------------------------ backdrop patterns (grid / dots) */

.amk-backdrop-grid,
.amk-backdrop-dots { isolation: isolate; }

.e-con.amk-backdrop-grid::before,
.e-con.amk-backdrop-dots::before {
	content: "" !important;
	position: absolute;
	inset: 0;
	z-index: -1;
	width: auto;
	height: auto;
	opacity: 1;
	mix-blend-mode: normal;
	pointer-events: none;
	-webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 35%, transparent 80%);
	mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 35%, transparent 80%);
}

.e-con.amk-backdrop-grid::before {
	background:
		linear-gradient(to right, var(--amk-pattern, rgba(18, 20, 26, .06)) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(to bottom, var(--amk-pattern, rgba(18, 20, 26, .06)) 1px, transparent 1px) 0 0 / 56px 56px;
}

.e-con.amk-backdrop-dots::before {
	background: radial-gradient(circle, var(--amk-pattern, rgba(18, 20, 26, .16)) 1px, transparent 1.4px) 0 0 / 22px 22px;
}
