/**
 * Sweans CIE Addon — CIE Product Features (ACF section3_*)
 * Cards column is max 1620px (shell); grid top/bottom rules are full viewport (pseudos).
 */

.sweans-cpf-wrap {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	background-color: #f0f0f0;
	font-family: "Barlow", sans-serif;
	color: #1a1a1a;
}

.sweans-cpf-wrap *,
.sweans-cpf-wrap *::before,
.sweans-cpf-wrap *::after {
	box-sizing: border-box;
}

.sweans-cpf-head {
	width: 100%;
	max-width: 1620px;
	margin-left: auto;
	margin-right: auto;
}

.sweans-cpf-editor-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #666;
	background: rgba(255, 255, 255, 0.95);
	padding: 5px 10px;
	border-radius: 2px;
	border: 1px solid #ddd;
}

.sweans-cpf-section-title {
	text-align: center;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 400;
	font-size: 52px;
	letter-spacing: 4px;
	margin: 0;
	text-transform: uppercase;
}

.sweans-cpf-cards-shell {
	position: relative;
	width: 100%;
	max-width: 1620px;
	margin-left: auto;
	margin-right: auto;
}

.sweans-cpf-cards-grid {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
}

/* Full-screen width horizontal rules; stack above .sweans-cpf-card so opaque cards
   after fade-in do not cover the lines (they were visible through opacity:0 cards first). */
.sweans-cpf-cards-grid::before,
.sweans-cpf-cards-grid::after {
	content: "";
	position: absolute;
	left: calc(50% - 50vw);
	width: 100vw;
	max-width: none;
	pointer-events: none;
	z-index: 2;
	box-sizing: border-box;
}

.sweans-cpf-cards-grid::before {
	top: 0;
	border-top: 1px solid #ddd;
}

.sweans-cpf-cards-grid::after {
	bottom: 0;
	border-bottom: 1px solid #ddd;
}

.sweans-cpf-card {
	position: relative;
	z-index: 0;
	flex: 1;
	padding: 40px 35px 45px;
	border-right: 1px solid #cccccc;
	background-color: #f0f0f0;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.25s ease;
}

.sweans-cpf-card:first-child {
	border-left: 1px solid #cccccc;
}

.sweans-cpf-card.sweans-cpf-card--visible {
	opacity: 1;
	transform: translateY(0);
}

.sweans-cpf-shape {
	background-color: #0078ae;
	width: 75px;
	height: 53px;
	display: flex;
	justify-content: center;
	align-items: center;
	transform: skewX(-25deg);
	margin-bottom: 28px;
}

.sweans-cpf-shape span {
	display: inline-block;
	transform: skewX(25deg);
	color: #ffffff;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 1px;
}

.sweans-cpf-card-title {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 14px;
	line-height: 1.35;
}

.sweans-cpf-card-text {
	font-family: "Barlow", sans-serif;
	font-size: 14.5px;
	color: #444444;
	line-height: 1.6;
	font-weight: 400;
	margin: 0;
}

.sweans-cpf-card-body {
	font-family: "Barlow", sans-serif;
	font-size: 14.5px;
	line-height: 1.6;
	font-weight: 400;
}

.sweans-cpf-card-body p {
	margin: 0 0 0.75em;
}

.sweans-cpf-card-body p:last-child {
	margin-bottom: 0;
}

@media (max-width: 900px) {
	.sweans-cpf-section-title {
		font-size: 38px;
		letter-spacing: 2px;
	}

	.sweans-cpf-cards-grid {
		flex-wrap: wrap;
	}

	.sweans-cpf-card {
		flex: 0 0 50%;
		max-width: 50%;
		border-right: 1px solid #cccccc;
		border-bottom: 1px solid #cccccc;
	}

	.sweans-cpf-card:first-child {
		border-left: 1px solid #cccccc;
	}

	.sweans-cpf-card:nth-child(3) {
		border-left: 1px solid #cccccc;
		border-bottom: none;
	}

	.sweans-cpf-card:nth-child(4) {
		border-bottom: none;
	}
}

@media (max-width: 540px) {
	.sweans-cpf-section-title {
		font-size: 28px;
		letter-spacing: 1px;
	}

	.sweans-cpf-cards-grid {
		flex-direction: column;
	}

	.sweans-cpf-card {
		flex: 0 0 100%;
		max-width: 100%;
		border-right: none !important;
		border-left: none !important;
		border-bottom: 1px solid #cccccc;
		padding: 30px 20px;
	}

	.sweans-cpf-card:first-child {
		border-left: none;
	}

	.sweans-cpf-card:last-child {
		border-bottom: 1px solid #cccccc;
	}
}
