/* ==========================================================
   Service page kit, shared base
   Engineering and Growth service pages: sections, tabs, before/after, cards.
   Used with kit-engineering.css or kit-growth.css.
   ========================================================== */

.k {
	--tone: var(--blue);
	--tone-2: var(--cyan);
}
.k .h2 {
	font-size: clamp(2rem, 3.9vw, 3.25rem);
	line-height: 1.1;
	letter-spacing: -0.028em;
	text-wrap: balance;
}
.k .eyebrow {
	color: color-mix(in srgb, var(--tone) 90%, #101820);
}
.k .grad-text {
	background: linear-gradient(100deg, var(--tone), var(--tone-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.k .btn-primary {
	background: color-mix(in srgb, var(--tone) 92%, #101820);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--tone) 30%, transparent);
}
.k .btn-primary:hover {
	background: color-mix(in srgb, var(--tone) 78%, #101820);
	box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--tone) 55%, transparent);
}
.k-sec {
	padding: clamp(44px, 5.3vw, 80px) 0;
	position: relative;
}
.k-sec:not(.k-white):not(.g-dark):not(.g-mint) + .k-sec:not(.k-white):not(.g-dark):not(.g-mint),
.k-sec.k-white + .k-sec.k-white {
	padding-top: clamp(16px, 2vw, 32px);
}
.k ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
.k-white {
	background: var(--white);
}
.k-sand {
	background: var(--cloud-dancer);
}
.k-crumbs {
	display: inline-flex;
	flex-wrap: nowrap;
	max-width: 100%;
	white-space: nowrap;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 4px 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.78);
	box-shadow: inset 0 0 0 1px var(--line-strong);
	font: 400 12px/1.3 var(--font-mono);
	color: var(--muted);
}
.k-crumbs a {
	flex-shrink: 0;
}
.k-crumbs b {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 420px) {
	.k-crumbs {
		gap: 6px;
		padding: 4px 12px;
		font-size: 11px;
	}
}
.k-crumbs a:hover {
	color: var(--ink);
}
.k-crumbs b {
	font-weight: 400;
	color: color-mix(in srgb, var(--tone) 85%, #101820);
}
.k-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}
.k-note {
	font: 400 11px/1 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--subtle);
}

/* FAQ */
.k-faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(48px, 8vw, 128px);
	align-items: start;
}
.k-faq-intro {
	position: sticky;
	top: calc(var(--header-h) + 48px);
}
.k-faq-intro .h2 {
	margin-top: 20px;
	max-width: 12ch;
}
.k-faq-intro p {
	margin-top: 24px;
	max-width: 36ch;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.75;
}
.k-faq-intro .btn {
	margin-top: 32px;
}
.k-faq details {
	border-bottom: 1px solid var(--line-strong);
}
.k-faq details:first-child {
	border-top: 1px solid var(--line-strong);
}
.k-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 26px 0;
	cursor: pointer;
	list-style: none;
	font: 400 1.15rem/1.4 var(--font-display);
	letter-spacing: -0.01em;
	transition: color 0.2s;
}
.k-faq summary:hover {
	color: color-mix(in srgb, var(--tone) 90%, #101820);
}
.k-faq summary::-webkit-details-marker {
	display: none;
}
.k-faq summary i {
	position: relative;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line-strong);
	transition:
		background 0.3s,
		transform 0.4s var(--ease);
}
.k-faq summary i::before,
.k-faq summary i::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 1.5px;
	background: currentColor;
	transform: translate(-50%, -50%);
}
.k-faq summary i::after {
	transform: translate(-50%, -50%) rotate(90deg);
}
.k-faq details[open] summary i {
	background: var(--ink);
	color: #fff;
	box-shadow: none;
	transform: rotate(45deg);
}
.k-faq details p {
	padding: 0 56px 28px 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.75;
	animation: k-fade 0.4s var(--ease);
}
@keyframes k-fade {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

/* before/after drag */
.k-ba {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	user-select: none;
	touch-action: pan-y;
	--x: 50%;
	box-shadow:
		var(--shadow-md),
		0 0 0 1px var(--line);
}
.k-ba-top {
	position: absolute;
	inset: 0;
	clip-path: inset(0 0 0 var(--x));
}
.k-ba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--x);
	z-index: 3;
	width: 2px;
	margin-left: -1px;
	background: var(--ink);
	cursor: ew-resize;
}
.k-ba-handle button {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border: 0;
	border-radius: 50%;
	cursor: ew-resize;
	display: grid;
	place-items: center;
	color: #fff;
	background: var(--ink);
	box-shadow:
		0 10px 24px -8px rgba(16, 24, 32, 0.5),
		0 0 0 6px rgba(255, 255, 255, 0.7);
}
.k-ba-handle svg {
	width: 20px;
	height: 20px;
}
.k-ba-lab {
	position: absolute;
	top: 14px;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 999px;
	font: 400 11px/1 var(--font-mono);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(16, 24, 32, 0.75);
}

/* toggle switch */
.k-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 14.5px;
	color: var(--ink-2);
	user-select: none;
}
.k-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.k-switch i {
	position: relative;
	width: 46px;
	height: 26px;
	border-radius: 26px;
	background: var(--line-strong);
	transition: background 0.3s;
}
.k-switch i::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.35s var(--ease);
}
.k-switch input:checked + i {
	background: var(--tone);
}
.k-switch input:checked + i::after {
	transform: translateX(20px);
}
.k-switch input:focus-visible + i {
	outline: 2px solid var(--tone);
	outline-offset: 3px;
}

@media (max-width: 1000px) {
	.k-faq-grid {
		grid-template-columns: 1fr;
	}
	.k-faq-intro {
		position: static;
	}
}
@media (max-width: 640px) {
	.k-faq details p {
		padding-right: 0;
	}
}

/* phones: a little more room between sections */
@media (max-width: 640px) {
	.k-sec {
		padding-top: 60px;
		padding-bottom: 60px;
	}
}
