/** Home Solution: Figma 4283:92189; native two-column cards, no copy fallback. */
.octops-home-solution__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.octops-home-solution__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: minmax(166px, auto);
	align-items: start;
	gap: 24px;
}

.octops-home-solution__card {
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 16px;
	color: #27272a;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 150px;
	min-width: 0;
	padding: 24px;
	position: relative;
}

.octops-home-solution__card::after {
	background: linear-gradient(90deg, #afceff, #ffd496);
	border-radius: inherit;
	content: "";
	inset: -1px;
	opacity: 0;
	padding: 1px;
	pointer-events: none;
	position: absolute;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	transition: opacity 180ms ease;
}

.octops-home-solution__card:hover::after,
.octops-home-solution__card:focus-within::after {
	opacity: 1;
}

.octops-home-solution__icon-frame,
.octops-home-solution__icon {
	display: block;
	height: 24px;
	width: 24px;
	flex: 0 0 24px;
	object-fit: contain;
}

.octops-home-solution__icon-frame {
	position: relative;
}

/* Figma's light screenshot uses #3366ff; its exported SVG keeps the dark
 * variable value. Tint the uploaded decorative icon without replacing it. */
.octops-home-solution__icon {
	filter: brightness(0) saturate(100%) invert(40.497%) sepia(30.591%) saturate(2659.501%) hue-rotate(204.341deg) brightness(90.890%) contrast(123.853%);
}

html[data-theme="dark"] .octops-home-solution__icon {
	filter: none;
}

/* Use the attachment itself as an alpha mask where supported. This produces
 * the exact light-mode token without Safari's device-dependent SVG filtering;
 * the real uploaded image remains the fallback and the dark-mode artwork. */
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
	.octops-home-solution__icon-frame::before {
		background-color: #3366ff;
		content: "";
		inset: 0;
		-webkit-mask-image: var(--octops-home-solution-icon-mask);
		mask-image: var(--octops-home-solution-icon-mask);
		-webkit-mask-position: center;
		mask-position: center;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-size: contain;
		mask-size: contain;
		position: absolute;
	}

	.octops-home-solution__icon-frame .octops-home-solution__icon {
		opacity: 0;
	}

	html[data-theme="dark"] .octops-home-solution__icon-frame::before {
		display: none;
	}

	html[data-theme="dark"] .octops-home-solution__icon-frame .octops-home-solution__icon {
		opacity: 1;
	}
}

.octops-home-solution__title,
.octops-home-solution__description {
	color: inherit;
	font-family: "Manrope", "Inter", sans-serif;
	font-size: 16px;
	line-height: 24px;
	margin: 0;
	overflow-wrap: anywhere;
}

.octops-home-solution__title { font-weight: 700; }
.octops-home-solution__description { font-weight: 400; }

@media (max-width: 760px) {
	.octops-home-solution__cards {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: auto;
	}
	.octops-home-solution .octops-home-intro__description br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.octops-home-solution__card::after { transition: none; }
}
