/**
 * CRM Why cards — Figma node 47:7 (Culinary CRM landing).
 * Scoped under .lsq-crm-why-cards / .lsq-crm-why-card
 */

.lsq-crm-why-cards {
	--lsq-cwc-cols: 1;
	box-sizing: border-box;
}

.lsq-crm-why-cards *,
.lsq-crm-why-cards *::before,
.lsq-crm-why-cards *::after {
	box-sizing: border-box;
}

.lsq-crm-why-cards__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.lsq-crm-why-cards[data-columns="2"] .lsq-crm-why-cards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lsq-crm-why-cards[data-columns="3"] .lsq-crm-why-cards__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Single card */
.lsq-crm-why-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: stretch;
	width: 100%;
	padding: 36px;
	background: #ffffff;
	border: 1px solid #e6e2df;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(13, 3, 0, 0.08);
	overflow: hidden;
}

.lsq-crm-why-card__top {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	gap: 16px;
}

.lsq-crm-why-card__index {
	margin: 0;
	padding: 0;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -1.12px;
	color: #e6e2df;
	white-space: nowrap;
}

.lsq-crm-why-card__index--empty {
	min-width: 1px;
	min-height: 1px;
}

.lsq-crm-why-card__icon-wrap {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--lsq-cwc-icon-tile-bg, #d6e6ff);
	border-radius: 14px;
	overflow: hidden;
}

.lsq-crm-why-card__icon-wrap--empty {
	visibility: hidden;
	width: 56px;
	height: 56px;
}

.lsq-crm-why-card__icon {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.lsq-crm-why-card__title {
	margin: 0;
	padding: 0;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #0d0300;
	width: 100%;
}

.lsq-crm-why-card__intro {
	width: 100%;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: #4b423a;
}

.lsq-crm-why-card__intro p {
	margin: 0 0 0.75em;
}

.lsq-crm-why-card__intro p:last-child {
	margin-bottom: 0;
}

.lsq-crm-why-card__rule {
	display: block;
	width: 100%;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #e6e2df;
}

/* Checklist: native ul from TinyMCE */
.lsq-crm-why-card__checklist {
	width: 100%;
}

.lsq-crm-why-card__checklist ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lsq-crm-why-card__checklist li {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: #0d0300;
}

/* Bullet tile + icon (custom icon via --lsq-cwc-checklist-icon on .lsq-crm-why-card__checklist) */
.lsq-crm-why-card__checklist li::before {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border-radius: 10px;
	background-color: var(--lsq-cwc-icon-tile-bg, #d6e6ff);
	background-image: var(
		--lsq-cwc-checklist-icon,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M10 3L4.5 8.5 2 6' stroke='%231d4ed8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
	);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
}

.lsq-crm-why-card__checklist--custom-bullet li::before {
	background-size: contain;
}

@media (max-width: 767px) {
	.lsq-crm-why-card {
		padding: 28px 24px;
	}

	.lsq-crm-why-card__index {
		font-size: 44px;
	}
}
