﻿:root {
	--category-width: 370px;
	--category-gap: 1rem;
	--category-padding-inline: var(--margin);
	--section-box-shadow: 0 0 2px color-mix(in srgb, var(--black) 20%, var(--white));
}

body header {
	transition: opacity 0.25s ease-out;
	opacity: 1;
}

body.home header {
	opacity: 0;
}

body.home :is(main, section.get-started, footer) {
	overflow: hidden !important;
	opacity: 0;
	height: 0;
}

.home-page {
	display: flex;
	flex-direction: column;
	gap: var(--margin);
}

.home-page>section {
	border-radius: var(--border-radius);
}

.home-page .demo-container {
	display: flex;
	overflow: hidden;
	flex-direction: column;
	align-items: stretch;
}

.home-page .demo-items {
	gap: var(--category-gap);
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(var(--category-width), 100%), 1fr));
	justify-content: center;
}

.home-page .demo-items li.demo-item {
	height: 100%;
	width: 100%;
	transition-delay: 0;
}

.home-page .demo-items li:hover {}

.home-page .demo-items li h2 {
	text-align: center;
}

.home-page .demo-items li.demo-item {
	position: relative;
}

.home-page .demo-items li.demo-item>div {
	display: flex;
	flex-direction: column;
	/*align-items: center;*/
	justify-content: space-around;
	gap: 2rem;
}

.home-page .demo-items li.demo-item img {
	width: 100%;
	filter: grayscale(75%);
}

.home-page .demo-items li.demo-item:hover img {
	filter: none;
}

.home-page .demo-items li.demo-item h2 {
	margin: 0;
}

.home-page .demo-items li.demo-item h2 a {
	text-decoration: none;
	border: none;
	display: flex;
	flex-direction: column;
	gap: var(--margin);
	align-items: center;
	justify-content: center;
}

.home-page .demo-items li.demo-item h2 a .title {
	border-bottom: solid 2px;
}

.home-page .demo-items li.demo-item h2 a:hover .title {
	background: yellow;
	outline: solid 5px yellow;
	color: black !important;
}

.home-page .demo-items li.demo-item .demo-item-description {
	display: block;
	flex: 1;
	margin-block: 0;
}

.home-page .demo-items li.demo-item h2 {
	margin-bottom: 0;
}

.home-page ul.demo-items li .tour-link {
	font-weight: var(--bold);
	text-decoration: none;
	width: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: 34px;
}

body:not(.inited) .home-page .demo-items.transition li.demo-item>div {
	transition: transform .4s ease-out;
	visibility: visible;
}

body:not(.inited) .home-page .demo-items li.demo-item>div {
	visibility: hidden;
}

body:not(.inited) .home-page .demo-items.transition li.demo-item>div,
body.inited .home-page .demo-items li.demo-item>div {
	transform: translate(0, 0) !important;
	background: var(--white);
	height: 100%;
	width: 100%;
	padding: var(--margin) var(--category-padding-inline);
	box-shadow: var(--section-box-shadow);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-radius: var(--border-radius);
}

.home-page .demo-items .demo-title {
	grid-area: 1 / 1 / 1 / -1;
}

.demo-title h1 {
	line-height: 130%;
	font-size: 36px;
	margin: 0;
	padding: 0;
	margin-bottom: 20px;
	text-align: center;
}

.demo-title h2 {
	line-height: 155%;
	font-size: 18px;
	font-weight: 400;
	line-height: 160%;
	margin: 0;
	padding: 0;
	margin-top: 20px;
}

body.home {
	min-height: 100vh;
}

body .initial {
	display: none;
}

body.home .initial {
	display: block;
}

body .initial {
	position: absolute;
	opacity: 0;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);
	top: 50%;
	max-width: 900px;
	font-size: 55px;
	line-height: 140%;
	font-weight: var(--bold);
	animation: home-zoom 2.5s;
	font-weight: 500;
	letter-spacing: -0px;
}

.demo-item .dropdown-button .indicator {
	border-color: var(--white);
}

.demo-item .integrations-promo {
	width: 100%;
	display: grid;
	filter: grayscale(1);
	grid-template-columns: 50% 50%;
}

.demo-item .integrations-promo>li {
	height: 30px;
	margin: 10px 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.demo-item .integrations-promo>li.docusign {
	height: 55px;
	margin: 0;
}

.demo-item .integrations-promo>li.salesforce {
	height: 50px;
}

body .demo-item .action-wrapper .dropdown-pane .action-wrapper a:before {
	margin-right: 15px;
}

html body .demo-item .action-wrapper .dropdown-pane .action-wrapper ol.demo-item-tours {
	list-style-type: decimal;
	padding-left: 20px;
}

html body .demo-item .action-wrapper .dropdown-pane .action-wrapper ol.demo-item-tours li a {
	padding: 10px 5px;
	font-weight: 500;
	font-size: 14px;
	white-space: normal;
	width: 350px;
	display: flex;
	align-items: center;
}

html body .demo-item .action-wrapper .dropdown-pane .action-wrapper ol.demo-item-tours li:not(:last-child) {
	border-bottom: 1px solid #a9a9a9;
}

body:not(.home) .initial {
	display: none;
}

.home-page .demo-items .demo-item-image {
	width: 60%;
	padding-bottom: 60%;
}

@keyframes home-zoom {
	0% {
		opacity: 0;
	}

	30% {
		opacity: 1;
	}

	70% {
		opacity: 1;
	}

	100% {
		transform: translate(-50%, -50%) scale(1.1);
		opacity: 0;
	}
}

main.home-page {
	@media (width <= 600px) {
		--border-radius: 0px;
		padding-inline: 0;
	}

	@media (width <=450px) {
		--category-padding-inline: var(--half-margin);
	}
}

section.clients {
	padding: var(--margin);
	background: color-mix(in srgb, var(--black) 10%, var(--white));

	border-radius: var(--border-radius);
	display: flex;
	flex-direction: column;
	gap: var(--margin);
}

section.clients .client-list-wrap {
	display: flex;
	flex-direction: column;
	gap: var(--half-margin);
	border-bottom: solid 1px #ccc;
	padding-bottom: var(--x2-margin);
	color: color-mix(in srgb, var(--black) 55%, var(--white));
	container-type: inline-size;

	& .client-list-container {
		max-width: 90rem;
		margin: 0 auto;

		display: grid;
		gap: 2rem 4rem;
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		width: 100%;

		@container (width <=500px) {}

		& a {
			opacity: .5;
			filter: grayscale(1);

			@media (prefers-color-scheme: dark) {
				opacity: 1;
			}

			border: none;
			transition: scale .1s ease;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		& a img {
			--_base-width: 100px;
			--_base-height: 100px;
			--_width: var(--_base-width);
			--_height: var(--_base-height);
			width: var(--_width);
			height: auto;
			max-height: var(--_height);

			@media (prefers-color-scheme: dark) {

				&.vector {
					filter: contrast(0);
				}
			}
		}

		& a img.square1 {
			--_width: calc(var(--_base-width) / 2);
		}

		& a img.square14 {
			--_width: calc(var(--_base-width) / 1.4);
		}

		& a img.square2 {
			--_width: calc(var(--_base-width) / 1.2);
		}

		& a img.rect1 {
			--_width: calc(var(--_base-width) * 1.1);
		}

		& a img.rect2 {
			--_width: calc(var(--_base-width) * 1.3);
		}

		& :is(a:hover, a:active) {
			opacity: initial;
			filter: none;
			scale: 1.5;
		}

		& a:focus {
			outline: solid 2px;
			outline-offset: 5px;
			border-radius: 1px;
			transition: scale .1s ease;
		}

	}
}

section.clients .client-list-wrap .client-ellipsis {
	font-size: 3rem;
	text-align: center;
	color: #aaa;
	cursor: default;
}

section.clients .client-list-wrap h2 {
	margin: var(--margin) 0;
	text-align: center;
}

section.clients .testimonials {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--half-margin);
	max-width: 700px;
	margin-inline: auto;
}

section.clients .testimonials .gui-carousel--pagination {
	gap: var(--half-margin);
	height: 3rem;
	margin-top: var(--margin);
	padding-inline: var(--half-margin);
}

section.clients .testimonials .gui-carousel--pagination .gui-carousel--control {
	width: 1.5rem;
	height: auto;
	aspect-ratio: 1;
	background: var(--white);

	&:hover,
	&[aria-selected="true"] {
		background-color: var(--background-color);
	}

}

section.clients .testimonials p {
	align-self: center;
	font-weight: 500;
	line-height: 1.6;
	/*font-family: 'Bad Script', cursive;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: var(--bold);*/
	display: flex;
	gap: var(--half-margin);
}

section.clients .testimonials p:before {
	content: '—';
}

section.clients .testimonials .author {
	align-self: center;
	width: 100%;
	text-align: right;
	font-weight: bold;
}

h2.main-h2 {
	font-size: 1.2rem;
	text-align: center;
	margin: var(--half-margin) 0 var(--margin) 0;
	font-weight: 500;
	text-wrap: balance;
}

section.get-started {
	padding: var(--margin);
	background: #00195e;
	display: flex;
	place-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: var(--margin);
}

section.get-started>a {
	color: var(--white);
	border: solid 3px;
	padding: 1rem 3rem;
	border-radius: 4rem;
	font-size: 1rem;
	font-weight: var(--bold);
}

section.get-started .main-cta-links {
	scale: 1.1;
}
:is(body, #a) .bridge.text-content,
dialog {
	margin: 0 auto var(--half-margin) auto;
	background: var(--white);
	color: var(--black);
	padding: var(--margin);
	max-width: 700px;
	border-radius: var(--border-radius);
	box-shadow: var(--section-box-shadow);

	& h2 {
		font-weight: 700;
	}
}

.category-icon {
	fill: var(--a-color);
	color: var(--a-color);
}

@media screen and (max-width: 1000px) {
	#carouselTestimonial {
		gap: 20px;
	}

	section.clients .testimonials {
		padding: var(--margin) 0;
	}

	.gui-carousel--scroller {
		padding: unset;
		padding-inline: unset;
	}
}