/* Pricing page motion. The design sheets never animate, so all of it lives here and all
   of it can go. */

/* Tabs: one pill, sliding between them. Only the motion layer shows it, so without it
   the chosen tab simply wears the pill itself. */
html.vamora-motion .vamora-price-tabs__slider {
	position: absolute;
	top: 0.1875rem;
	bottom: 0.1875rem;
	left: 0.1875rem;
	display: block;
	width: calc(50% - 0.1875rem);
	border-radius: 999px;
	background: linear-gradient(172deg, #b06ef5 0%, #8a3ae8 34%, #6a1fd8 70%, #6a26d4 100%);
	box-shadow: 0 8px 20px -6px rgb(110 40 225 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0 0 1.5px rgb(255 255 255 / 0.85);
	transition: translate var(--motion-reveal) var(--motion-spring);
}

html.vamora-motion .vamora-price-tabs:has(.vamora-price-tabs__tab:nth-of-type(2)[aria-selected="true"]) .vamora-price-tabs__slider {
	translate: 100% 0;
}

html.vamora-motion .vamora-price-tabs__tab[aria-selected="true"] {
	background: none;
	box-shadow: none;
}

.vamora-price-tabs__tab {
	transition: color var(--motion-ui) linear;
}

.vamora-price-tabs__tab .vamora-icon {
	transition: color var(--motion-ui) linear, scale var(--motion-ui) var(--motion-spring);
}

.vamora-price-tabs__tab:hover .vamora-icon {
	scale: 1.14;
}

/* The currency chips and the monthly line answer the pointer. */
.vamora-price-currency__option {
	transition: background-color var(--motion-ui) linear, color var(--motion-ui) linear;
}

.vamora-price-monthly {
	overflow: hidden;
	transition: box-shadow var(--motion-ui) var(--motion-out), translate var(--motion-ui) var(--motion-spring);
}

.vamora-price-monthly:hover,
.vamora-price-monthly:focus-visible {
	translate: 0 calc(-1 * var(--motion-lift) / 3);
	box-shadow: 0 12px 26px -12px rgb(110 50 225 / 0.5);
}

/* A soft light across the monthly line, which never quite reaches an edge. */
.vamora-price-monthly::after {
	position: absolute;
	top: -40%;
	bottom: -40%;
	left: -30%;
	width: 30%;
	background: radial-gradient(closest-side, rgb(255 255 255 / 0.75), transparent 100%);
	opacity: 0;
	content: "";
	pointer-events: none;
}

/* The offer */
.vamora-price-offer__comet {
	stroke: #fff;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-dasharray: 0.14 1;
	stroke-dashoffset: 0.14;
	filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px #e070ff);
}

/* A ring of light that goes round the card's own edge. */
.vamora-price-offer::after {
	position: absolute;
	inset: 0;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--vamora-angle), transparent 0 62%, #fff 76%, #f0b8ff 84%, transparent 96%);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	-webkit-mask-composite: xor;
	content: "";
	pointer-events: none;
}

.vamora-price-offer__button {
	translate: calc(var(--vamora-pull-x, 0px) * var(--motion-magnet)) calc(var(--vamora-pull-y, 0px) * var(--motion-magnet));
}

/* The plan cards */
.vamora-price-plan {
	transition: box-shadow var(--motion-ui) var(--motion-out), border-color var(--motion-ui) linear;
}

.vamora-price-plan:hover {
	border-color: #a160f2;
	box-shadow: 0 20px 38px -18px rgb(110 50 225 / 0.48);
}

.vamora-price-plan--popular::after {
	position: absolute;
	inset: -1.5px;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--vamora-angle), transparent 0 62%, #fff 76%, #c78bff 84%, transparent 96%);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	-webkit-mask-composite: xor;
	content: "";
	pointer-events: none;
}

.vamora-price-plan__tile {
	transition: rotate var(--motion-reveal) var(--motion-spring), scale var(--motion-reveal) var(--motion-spring), background-color var(--motion-ui) linear;
}

.vamora-price-plan:hover .vamora-price-plan__tile {
	rotate: -8deg;
	scale: 1.12;
	background-color: #dcc7fb;
}

.vamora-price-plan__amount {
	transition: scale var(--motion-reveal) var(--motion-spring);
}

.vamora-price-plan:hover .vamora-price-plan__amount {
	scale: 1.05;
}

.vamora-price-plan__button {
	isolation: isolate;
	overflow: hidden;
	translate: calc(var(--vamora-pull-x, 0px) * var(--motion-magnet)) calc(var(--vamora-pull-y, 0px) * var(--motion-magnet));
	transition:
		translate var(--motion-reveal) var(--motion-elastic),
		box-shadow var(--motion-ui) var(--motion-out),
		color var(--motion-ui) linear;
}

/* A fill that grows from wherever the pointer came in. */
.vamora-price-plan__button::before {
	position: absolute;
	top: var(--btn-y, 50%);
	left: var(--btn-x, 50%);
	z-index: -1;
	width: 240%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: linear-gradient(175deg, #8d36ef, #5a12c8);
	transform: translate(-50%, -50%) scale(0);
	transition: transform var(--motion-reveal) var(--motion-out);
	content: "";
}

.vamora-price-plan--popular .vamora-price-plan__button::before {
	background: rgb(255 255 255 / 0.18);
}

.vamora-price-plan__button:hover::before,
.vamora-price-plan__button:focus-visible::before {
	transform: translate(-50%, -50%) scale(1);
}

.vamora-price-plan__button:hover,
.vamora-price-plan__button:focus-visible {
	color: #fff;
}

.vamora-price-plan__button .vamora-icon {
	transition: translate var(--motion-ui) var(--motion-spring);
}

.vamora-price-plan__button:hover .vamora-icon,
.vamora-price-plan__button:focus-visible .vamora-icon {
	translate: 0.28em 0;
}

/* What is included, and what the flow gives you: whichever has the turn. */
.vamora-price-included__label,
.vamora-price-flow__label {
	transition: color var(--motion-ui) linear;
}

.vamora-price-included__item.is-active .vamora-price-included__label,
.vamora-price-flow__point.is-active .vamora-price-flow__label {
	color: #6a1fe0;
}

.vamora-price-included__icon,
.vamora-price-flow__icon {
	transition: filter var(--motion-ui) linear;
}

.vamora-price-included__item.is-active .vamora-price-included__icon,
.vamora-price-flow__point.is-active .vamora-price-flow__icon {
	filter: drop-shadow(0 0 5px rgb(150 80 245 / 0.65));
}

/* Explore */
.vamora-price-explore__button {
	translate: calc(var(--vamora-pull-x, 0px) * var(--motion-magnet)) calc(var(--vamora-pull-y, 0px) * var(--motion-magnet));
	transition: translate var(--motion-reveal) var(--motion-elastic), box-shadow var(--motion-ui) var(--motion-out), background-color var(--motion-ui) linear;
}

.vamora-price-explore__button:hover,
.vamora-price-explore__button:focus-visible {
	background-color: #fff;
	box-shadow: 0 14px 26px -12px rgb(90 40 205 / 0.6);
}

.vamora-price-explore__button .vamora-icon {
	transition: translate var(--motion-ui) var(--motion-spring), rotate var(--motion-ui) var(--motion-spring);
}

.vamora-price-explore__button--main:hover .vamora-icon {
	translate: 0.28em 0;
}

.vamora-price-explore__button--quote:hover .vamora-icon {
	rotate: -12deg;
}

/* The questions open; the height eases where the browser can interpolate to auto. */
.vamora-price-faq__item {
	transition: border-color var(--motion-ui) linear, box-shadow var(--motion-ui) var(--motion-out), background-color var(--motion-ui) linear;
}

.vamora-price-faq__item:hover {
	border-color: #a160f2;
	background-color: #fff;
}

.vamora-price-faq__item[open] {
	border-color: #a160f2;
	box-shadow: 0 10px 22px -14px rgb(110 50 225 / 0.45);
}

.vamora-price-faq__toggle,
.vamora-price-faq__more-toggle .vamora-icon {
	transition: transform var(--motion-reveal) var(--motion-spring);
}

@supports (interpolate-size: allow-keywords) {
	.vamora-price-faq__item,
	.vamora-price-faq__more {
		interpolate-size: allow-keywords;
	}

	.vamora-price-faq__item::details-content,
	.vamora-price-faq__more::details-content {
		block-size: 0;
		overflow: hidden;
		transition:
			block-size var(--motion-ui) var(--motion-out),
			content-visibility var(--motion-ui) allow-discrete;
	}

	.vamora-price-faq__item[open]::details-content,
	.vamora-price-faq__more[open]::details-content {
		block-size: auto;
	}
}

/* The CTA */
.vamora-price-cta__title {
	perspective: 800px;
}

@media (min-width: 64em) {
	html.vamora-motion .vamora-price-tabs__slider {
		top: calc(2 * var(--u));
		bottom: calc(2 * var(--u));
		left: calc(2 * var(--u));
		width: calc(50% - 2 * var(--u));
	}
}

@media (prefers-reduced-motion: no-preference) {
	.vamora-price-tabs__tab[aria-selected="true"] .vamora-icon {
		animation: vamora-price-hop 0.7s var(--motion-spring) both;
	}

	.vamora-price-hero.is-live .vamora-price-hero__eyebrow-icon {
		animation: vamora-price-twinkle var(--motion-pulse-cycle) var(--motion-inout) infinite;
	}

	.vamora-price-plans.is-live .vamora-price-offer__rocket {
		animation: vamora-price-flight 5.6s var(--motion-inout) infinite alternate;
	}

	.vamora-price-plans.is-live .vamora-price-offer__flame {
		animation: vamora-price-flame 1.3s var(--motion-inout) infinite alternate;
		transform-box: fill-box;
		transform-origin: 40% 0%;
	}

	.vamora-price-plans.is-live .vamora-price-offer__comet {
		animation: vamora-price-comet 3.8s var(--motion-inout) infinite;
	}

	.vamora-price-plans.is-live .vamora-price-offer__clouds {
		animation: vamora-price-drift 9s var(--motion-inout) infinite alternate;
	}

	.vamora-price-plans.is-live .vamora-price-offer::after,
	.vamora-price-plans.is-live .vamora-price-plan--popular::after {
		animation: vamora-turn var(--motion-ring-cycle) linear infinite;
	}

	.vamora-price-plans.is-live .vamora-price-plan--popular .vamora-price-plan__badge .vamora-icon {
		animation: vamora-price-crown var(--motion-pulse-cycle) var(--motion-inout) infinite;
	}

	.vamora-price-plans.is-live .vamora-price-plan--best .vamora-price-plan__badge .vamora-icon {
		animation: vamora-price-star 4.2s var(--motion-inout) infinite;
	}

	.vamora-price-plans.is-live .vamora-price-monthly__icon {
		animation: vamora-price-twinkle var(--motion-pulse-cycle) var(--motion-inout) infinite;
	}

	.vamora-price-plans.is-live .vamora-price-monthly::after {
		animation: vamora-price-pass 6s var(--motion-inout) infinite;
	}

	/* Each item shows what it does when its turn comes. */
	.vamora-price-included__item.is-active .vamora-price-included__icon,
	.vamora-price-flow__point.is-active .vamora-price-flow__icon {
		animation: vamora-price-hop 0.8s var(--motion-spring) both;
	}

	.vamora-price-included__item--qr-bold.is-active .vamora-price-included__icon {
		animation-name: vamora-price-scan;
	}

	.vamora-price-included__item--layers.is-active .vamora-price-included__icon {
		animation-name: vamora-price-stack;
	}

	.vamora-price-flow__point--zap.is-active .vamora-price-flow__icon {
		animation: vamora-price-zap 0.9s linear both;
	}

	.vamora-price-explore.is-live .vamora-price-explore__art,
	.vamora-price-explore__band.is-live .vamora-price-explore__art {
		animation: vamora-price-lift var(--motion-float-cycle) var(--motion-inout) infinite alternate;
	}

	.vamora-price-cta.is-live .vamora-price-cta__ring {
		animation: vamora-price-ring var(--motion-float-cycle) var(--motion-inout) infinite alternate;
	}
}

@keyframes vamora-price-hop {
	0% {
		translate: 0 0;
		scale: 1;
	}

	40% {
		translate: 0 -22%;
		scale: 1.16;
	}

	100% {
		translate: 0 0;
		scale: 1;
	}
}

@keyframes vamora-price-twinkle {
	50% {
		scale: 1.18;
		rotate: 8deg;
		filter: drop-shadow(0 0 4px rgb(160 90 245 / 0.8));
	}
}

@keyframes vamora-price-flight {
	from {
		translate: -3px 5px;
		rotate: -2deg;
	}

	to {
		translate: 4px -7px;
		rotate: 2.5deg;
	}
}

@keyframes vamora-price-flame {
	from {
		opacity: 0.72;
		transform: scaleY(0.93);
	}

	to {
		opacity: 1;
		transform: scaleY(1.05);
	}
}

@keyframes vamora-price-comet {
	0% {
		stroke-dashoffset: 0.14;
		opacity: 0;
	}

	12% {
		opacity: 1;
	}

	70% {
		opacity: 1;
	}

	85%,
	100% {
		stroke-dashoffset: -1;
		opacity: 0;
	}
}

@keyframes vamora-price-drift {
	from {
		translate: -5px 2px;
	}

	to {
		translate: 6px -3px;
	}
}

@keyframes vamora-price-crown {
	0%,
	100% {
		translate: 0 0;
		rotate: 0deg;
	}

	35% {
		translate: 0 -14%;
		rotate: -8deg;
	}

	65% {
		translate: 0 -4%;
		rotate: 6deg;
	}
}

@keyframes vamora-price-star {
	0%,
	70%,
	100% {
		rotate: 0deg;
		scale: 1;
	}

	85% {
		rotate: 144deg;
		scale: 1.24;
	}
}

@keyframes vamora-price-pass {
	0%,
	55% {
		translate: 0 0;
		opacity: 0;
	}

	62%,
	92% {
		opacity: 1;
	}

	100% {
		translate: 450% 0;
		opacity: 0;
	}
}

@keyframes vamora-price-scan {
	0%,
	100% {
		scale: 1;
		clip-path: inset(0);
	}

	30% {
		scale: 1.14;
		clip-path: inset(0 0 45% 0);
	}

	60% {
		scale: 1.14;
		clip-path: inset(0);
	}
}

@keyframes vamora-price-stack {
	0%,
	100% {
		scale: 1 1;
	}

	40% {
		scale: 1.06 1.24;
	}

	70% {
		scale: 1.02 0.92;
	}
}

@keyframes vamora-price-zap {
	0%,
	100% {
		opacity: 1;
		scale: 1;
	}

	15%,
	45% {
		opacity: 0.3;
	}

	30% {
		opacity: 1;
		scale: 1.2;
	}

	60% {
		opacity: 1;
		scale: 1.14;
	}
}

@keyframes vamora-price-lift {
	from {
		translate: 0 3px;
		rotate: -1.2deg;
	}

	to {
		translate: 0 -5px;
		rotate: 1.2deg;
	}
}

@keyframes vamora-price-ring {
	from {
		translate: 0 3px;
		rotate: -3deg;
	}

	to {
		translate: 0 -5px;
		rotate: 3deg;
	}
}
