/* ═══════════════════════════════════════════════════════════════════════════
   PRICING AND VALUE PAGE
   ═══════════════════════════════════════════════════════════════════════════ */


/* ── Everything your school needs. One licence. ── */

.ce-pav-includes {
	background: #fff;
	padding: 5rem 0;
	position: relative;
	overflow: clip;
}

.ce-pav-includes::before {
	content: '';
	position: absolute;
	width: 450px;
	height: 450px;
	background: #f9f9f9;
	border-radius: 2.75rem;
	transform: rotate(45deg);
	top: -80px;
	left: -90px;
	pointer-events: none;
	z-index: 0;
}

.ce-pav-includes::after {
	content: '';
	position: absolute;
	width: 260px;
	height: 260px;
	background: #f9f9f9;
	border-radius: 2rem;
	transform: rotate(45deg);
	top: 420px;
	left: 178px;
	pointer-events: none;
	z-index: 0;
}

.ce-pav-includes .site-container {
	position: relative;
	z-index: 1;
}

.ce-pav-includes__title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin-bottom: 0.75rem;
}

.ce-pav-includes__heading {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-h2);
	font-weight: 700;
	color: #646464;
	margin: 0;
	line-height: 1.25;
}

.ce-pav-includes__sub {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-body);
	color: #7a8a9a;
	text-align: center;
	margin: 0 auto 3rem;
	line-height: 1.7;
}

.ce-pav-includes .ce-pav-includes__grid {
	grid-template-columns: repeat(2, 1fr);
}

.ce-pav-includes .ce-feature-list__item {
	padding: 1.25rem 1.5rem;
	min-height: auto !important;
}

.ce-pav-includes .ce-feature-list__header {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.ce-pav-includes .ce-feature-list__badge {
	font-size: 1.75rem;
	flex-shrink: 0;
}

@media (max-width: 680px) {
	.ce-pav-includes {
		padding: 3rem 0;
	}

	.ce-pav-includes .ce-pav-includes__grid {
		grid-template-columns: 1fr;
	}
}


/* ── Pricing cards ── */

.ce-pav-pricing {
	background: #fff;
	padding: 5rem 0;
	position: relative;
	overflow: clip;
}

.ce-pav-pricing::before {
	content: '';
	position: absolute;
	width: 450px;
	height: 450px;
	background: #f9f9f9;
	border-radius: 2.75rem;
	transform: rotate(45deg);
	top: -80px;
	left: -90px;
	pointer-events: none;
	z-index: 0;
}

.ce-pav-pricing::after {
	content: '';
	position: absolute;
	width: 260px;
	height: 260px;
	background: #f9f9f9;
	border-radius: 2rem;
	transform: rotate(45deg);
	top: 420px;
	left: 178px;
	pointer-events: none;
	z-index: 0;
}

.ce-pav-pricing .site-container {
	position: relative;
	z-index: 1;
}

.ce-pav-pricing__title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin-bottom: 0.75rem;
}

.ce-pav-pricing__heading {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-h2);
	font-weight: 700;
	color: #646464;
	margin: 0;
	line-height: 1.25;
}

.ce-pav-pricing__sub {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-body);
	color: #7a8a9a;
	text-align: center;
	margin: 0 auto 3rem;
	line-height: 1.7;
}

.ce-pav-pricing__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	max-width: 820px;
	margin: 0 auto 2rem;
}

.ce-pav-pricing__card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.75rem;
	border-radius: 1.5rem;
	backdrop-filter: blur(20px) saturate(1.3);
	-webkit-backdrop-filter: blur(20px) saturate(1.3);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ce-pav-pricing__card--orange {
	background: rgba(249, 157, 49, 0.12);
	border: 1px solid rgba(249, 157, 49, 0.28);
}

.ce-pav-pricing__card--blue {
	background: rgba(83, 141, 169, 0.12);
	border: 1px solid rgba(83, 141, 169, 0.28);
}

.ce-pav-pricing__card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ce-pav-pricing__card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	background: none;
	flex-shrink: 0;
}

.ce-pav-pricing__card--orange .ce-pav-pricing__card-icon { color: #b86e10; }
.ce-pav-pricing__card--blue   .ce-pav-pricing__card-icon { color: #3f7288; }

.ce-pav-pricing__card-label {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-card-heading);
	font-weight: 700;
	color: var(--ci-color-navy);
	margin: 0;
	line-height: 1.2;
}

.ce-pav-pricing__card-desc {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-card-body);
	color: #555;
	margin: 0;
	line-height: 1.65;
}

.ce-pav-pricing__price-row {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.75rem;
}

.ce-pav-pricing__price {
	font-family: var(--ci-font-primary);
	font-size: clamp(2.2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1;
}

.ce-pav-pricing__card--orange .ce-pav-pricing__price { color: #c47a18; }
.ce-pav-pricing__card--blue   .ce-pav-pricing__price { color: #3f7288; }

.ce-pav-pricing__price-sub {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-utility);
	color: #777;
	line-height: 1.3;
}

.ce-pav-pricing__card-detail {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-utility);
	color: #666;
	margin: 0;
	line-height: 1.5;
}

.ce-pav-pricing__card-detail--offer {
	font-weight: 600;
	color: #3f7288;
}

.ce-pav-pricing__footnote {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-utility);
	color: #666;
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.75;
}

@media (max-width: 600px) {
	.ce-pav-pricing {
		padding: 3rem 0;
	}

	.ce-pav-pricing__grid {
		grid-template-columns: 1fr;
	}
}


/* ── How does Cornerstones compare? ── */

.ce-pav-compare {
	background: #253d47;
	padding: 5rem 0;
}

.ce-pav-compare__title-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.ce-pav-compare__icon-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3.25rem;
	height: 3.25rem;
	background: rgba(250, 240, 244, 0.9);
	border: 3px solid #af4d76;
	border-radius: 0.6rem;
	color: #af4d76;
	font-size: 1.6rem;
	--fa-primary-color: #af4d76;
	--fa-secondary-color: #af4d76;
	--fa-secondary-opacity: 0.4;
}

.ce-pav-compare__heading {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-h2);
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	line-height: 1.25;
}

.ce-pav-compare__sub {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-body);
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
	max-width: 700px;
	margin: 0 auto 2.5rem;
	line-height: 1.7;
}

.ce-pav-compare__caption {
	font-family: var(--ci-font-primary);
	font-size: var(--ci-text-utility);
	color: rgba(255, 255, 255, 0.35);
	text-align: center;
	margin: 1.75rem 0 0;
	line-height: 1.6;
}

/* design-comparison overrides — navy palette instead of Maestro burgundy */

.ce-pav-compare .design-comparison__table-wrap {
	max-width: 740px;
	margin: 0 auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(48px) saturate(1.6) brightness(1.12);
	-webkit-backdrop-filter: blur(48px) saturate(1.6) brightness(1.12);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 40px rgba(37, 61, 71, 0.3);
}

.ce-pav-compare .design-comparison__table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--ci-font-primary);
	background-color: transparent;
	min-width: 420px;
}

.ce-pav-compare .design-comparison__table thead th {
	padding: 1rem 1.25rem;
	font-family: var(--ci-font-primary);
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
}

.ce-pav-compare .design-comparison__col-feature {
	text-align: left !important;
	width: 58%;
	background-color: rgba(255, 255, 255, 0.35);
	color: #1e2d3d;
}

.ce-pav-compare .design-comparison__col-ci {
	width: 21%;
	background-color: #253d47;
	color: #ffffff;
}

.ce-pav-compare .design-comparison__col-other {
	width: 21%;
	background-color: rgba(220, 220, 228, 0.55);
	color: #1e2d3d;
}

.ce-pav-compare .design-comparison__brand { color: #ffffff; }

.ce-pav-compare .design-comparison__table tbody tr {
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	transition: background-color 0.15s ease;
}

.ce-pav-compare .design-comparison__table tbody tr:last-child { border-bottom: none; }

@media (hover: hover) and (pointer: fine) {
	.ce-pav-compare .design-comparison__table tbody tr:hover { background-color: rgba(37, 61, 71, 0.05); }
}

.ce-pav-compare .design-comparison__table tbody td {
	padding: 0.85rem 1.25rem;
	font-size: var(--ci-text-utility);
	color: #3a4a5a;
	line-height: 1.5;
	text-align: center;
}

.ce-pav-compare .design-comparison__table tbody td:first-child {
	text-align: left;
	color: #1e2d3d;
	font-weight: 500;
}

.ce-pav-compare .design-comparison__table tbody td:nth-child(2) {
	background-color: rgba(37, 61, 71, 0.08);
}

.ce-pav-compare .design-comparison__table td:has(.design-comparison__cross)   { background-color: rgba(185, 28, 28, 0.06); }
.ce-pav-compare .design-comparison__table td:has(.design-comparison__tick)    { background-color: rgba(34, 197, 94, 0.06); }
.ce-pav-compare .design-comparison__table td:has(.design-comparison__limited) { background-color: rgba(198, 165, 78, 0.07); }

.ce-pav-compare .design-comparison__tick,
.ce-pav-compare .design-comparison__cross {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
}

.ce-pav-compare .design-comparison__tick  { background-color: rgba(34, 197, 94, 0.15);  color: #16a34a; }
.ce-pav-compare .design-comparison__cross { background-color: rgba(185, 28, 28, 0.10);  color: #b91c1c; }

.ce-pav-compare .design-comparison__limited {
	display: inline-block;
	font-size: var(--ci-text-utility);
	font-weight: 600;
	color: #92620a;
	background-color: rgba(198, 165, 78, 0.18);
	border-radius: 9999px;
	padding: 0.2rem 0.65rem;
}

@media (max-width: 600px) {
	.ce-pav-compare {
		padding: 3rem 0;
	}

	.ce-pav-compare .design-comparison__table-wrap { border-radius: 12px; }

	.ce-pav-compare .design-comparison__table {
		min-width: 0;
		table-layout: fixed;
		width: 100%;
	}

	/* Same three faults, and the same fix, as the Maestro table — see the
	   long note in maestro.css. This is the other instance of the shared
	   .design-comparison component and it was never updated alongside it. */

	/* Buy back the width the section's own container was spending on margin
	   beside a component that is already an inset card. */
	.ce-pav-compare .site-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	/* "Cornerstones" is one unbreakable word measuring 97.5px at this weight
	   and size. The column was 76px wide with 8px of padding — 68px of room
	   for 97.5px — so it simply spilled over the next column. "Other
	   providers" is two words and wraps at the space by itself, so it only
	   has to fit "providers" (68.5px). */
	.ce-pav-compare .design-comparison__col-feature { width: auto; }
	.ce-pav-compare .design-comparison__col-ci      { width: 112px; }
	.ce-pav-compare .design-comparison__col-other   { width: 78px; }

	.ce-pav-compare .design-comparison__table thead th {
		padding: 0.6rem 0.25rem;
		font-size: var(--ci-text-utility);
		line-height: 1.3;
		word-break: normal;
		overflow-wrap: normal;
		hyphens: none;
	}

	.ce-pav-compare .design-comparison__col-feature {
		padding-left: 0.75rem;
		text-align: center !important;
	}

	.ce-pav-compare .design-comparison__table tbody td {
		padding: 0.75rem 0.25rem;
		font-size: var(--ci-text-utility);
	}

	/* Breaking mid-word is for the long feature descriptions only, and even
	   there only when a word genuinely cannot fit a line of its own. */
	.ce-pav-compare .design-comparison__table tbody td:first-child {
		overflow-wrap: break-word;
		hyphens: none;
	}

	/* The pill is two syllables and should never break. */
	.ce-pav-compare .design-comparison__limited {
		white-space: nowrap;
		padding: 0.2rem 0.5rem;
	}
}
