/* Cookie consent (biscuit) and lead popup. Kombato brand colours, fixed on purpose. */

.kb-cookie {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 9990;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	box-sizing: border-box;
	width: min(420px, calc(100vw - 32px));
	padding: 20px 22px 20px 18px;
	border: 1px solid #d5d8ce;
	border-radius: 28px;
	background: #fffdf8;
	color: #171817;
	font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
	box-shadow: 0 30px 70px -30px rgb(0 0 0 / 45%);
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.5s ease,
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.kb-cookie[hidden] {
	display: none;
}

.kb-cookie.is-visible {
	opacity: 1;
	transform: none;
}

.kb-cookie.is-leaving {
	opacity: 0;
	transform: translateY(16px) scale(0.98);
}

.kb-cookie__art {
	flex: none;
	width: 64px;
	height: 64px;
	transform-origin: 50% 50%;
	animation: kb-cookie-wobble 2.8s ease-in-out 0.6s 2;
}

.kb-cookie.is-leaving .kb-cookie__art {
	animation: kb-cookie-bite 0.45s ease forwards;
}

@keyframes kb-cookie-wobble {

	0%,
	100% {
		transform: rotate(0);
	}

	30% {
		transform: rotate(-12deg);
	}

	60% {
		transform: rotate(8deg);
	}
}

@keyframes kb-cookie-bite {

	to {
		transform: scale(0.6) rotate(-30deg);
		opacity: 0;
	}
}

.kb-cookie__body {
	display: grid;
	gap: 8px;
}

.kb-cookie .kb-cookie__title {
	margin: 0;
	color: #171817;
	font-size: 17px;
	font-weight: 700;
}

.kb-cookie .kb-cookie__text {
	margin: 0;
	color: #3a3d39;
	font-size: 14px;
	line-height: 1.5;
}

.kb-cookie__text a {
	color: inherit;
}

.kb-cookie__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.kb-cookie__btn {
	padding: 10px 16px;
	border: 1px solid #171817;
	border-radius: 999px;
	background: transparent;
	color: #171817;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.kb-cookie__btn.is-primary,
.kb-cookie__btn:hover {
	background: #171817;
	color: #f2f4eb;
}

.kb-cookie__btn.is-primary:hover {
	background: #2c2f2c;
}

@media (max-width: 520px) {

	.kb-cookie {
		right: 16px;
		bottom: 16px;
		left: 16px;
		width: auto;
		padding: 16px;
	}

	.kb-cookie__art {
		width: 48px;
		height: 48px;
	}
}

/* Lead popup */

html:has(.kb-lpop[open]) {
	overflow: hidden;
}

.kb-lpop {
	width: min(920px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 28px;
	background: #f3f3ef;
	color: #171817;
	font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
	box-shadow: 0 40px 120px -40px rgb(0 0 0 / 50%);
	opacity: 0;
	transform: translateY(20px) scale(0.98);
	transition:
		opacity 0.35s ease,
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		overlay 0.45s allow-discrete,
		display 0.45s allow-discrete;
}

.kb-lpop[open] {
	opacity: 1;
	transform: none;
}

@starting-style {

	.kb-lpop[open] {
		opacity: 0;
		transform: translateY(20px) scale(0.98);
	}
}

.kb-lpop::backdrop {
	background: rgb(23 24 23 / 55%);
	backdrop-filter: blur(6px);
}

.kb-lpop__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 42px;
	height: 42px;
	border: 1px solid #bfc3b7;
	border-radius: 50%;
	background: #fff;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.kb-lpop__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	overflow-y: auto;
	max-height: calc(100dvh - 32px);
}

.kb-lpop__intro {
	display: grid;
	gap: 16px;
	align-content: start;
	padding: 44px 36px;
	background: #171817;
	color: #f2f4eb;
}

.kb-lpop__eyebrow {
	margin: 0;
	color: #d4ef72;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.kb-lpop .kb-lpop__title {
	margin: 0;
	color: #f2f4eb;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.kb-lpop .kb-lpop__text {
	margin: 0;
	color: #b9beb4;
	font-size: 16px;
	line-height: 1.55;
}

.kb-lpop__points {
	display: grid;
	gap: 10px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.kb-lpop__points li {
	position: relative;
	padding-left: 26px;
}

.kb-lpop__points li::before {
	position: absolute;
	top: 0.45em;
	left: 2px;
	width: 11px;
	height: 6px;
	border-bottom: 2px solid #d4ef72;
	border-left: 2px solid #d4ef72;
	content: "";
	rotate: -45deg;
}

.kb-lpop__form {
	padding: 36px 32px 28px;
}

@media (max-width: 760px) {

	.kb-lpop {
		width: 100vw;
		max-height: 100dvh;
		margin: auto 0 0;
		border-radius: 24px 24px 0 0;
	}

	.kb-lpop__grid {
		grid-template-columns: minmax(0, 1fr);
		max-height: 92dvh;
	}

	.kb-lpop__intro {
		padding: 32px 20px 24px;
	}

	.kb-lpop__points {
		display: none;
	}

	.kb-lpop__form {
		padding: 24px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.kb-cookie,
	.kb-lpop,
	.kb-cookie__art {
		transition: none;
		animation: none !important;
	}
}

/* Email action sheet on phones */

.kb-mailsheet {
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	margin: auto 0 0;
	padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
	border: 0;
	border-radius: 24px 24px 0 0;
	background: #fffdf8;
	color: #171817;
	font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.kb-mailsheet:focus {
	outline: none;
}

.kb-mailsheet[open] {
	display: grid;
	gap: 10px;
}

.kb-mailsheet::backdrop {
	background: rgb(23 24 23 / 45%);
}

.kb-mailsheet .kb-mailsheet__address {
	margin: 0 0 6px;
	color: #565b55;
	font-size: 15px;
	text-align: center;
}

.kb-mailsheet__btn {
	box-sizing: border-box;
	display: block;
	width: 100%;
	padding: 15px;
	border: 1px solid #171817;
	border-radius: 14px;
	background: #fff;
	color: #171817;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.kb-mailsheet__btn.is-primary {
	background: #171817;
	color: #f2f4eb;
}

.kb-mailsheet__btn.is-ghost {
	border-color: transparent;
	background: transparent;
}

.kb-mailsheet__btn:active {
	transform: scale(0.98);
}

.kb-mailsheet__btn:focus-visible {
	outline: 2px solid #171817;
	outline-offset: 2px;
}
