/*
 * ROI calculator page (/roi-calculator/) styles.
 * Loads on that page only. The calculator script is assets/js/pages/roi-calculator.js.
 */

/* Intro: headline and lead above the calculator. */
.cm-section > .cm-roi__intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-block: clamp(56px, 7vw, 80px) 40px;
}

body .cm-roi__title {
	max-width: 900px;
	font-size: clamp(36px, 4.2vw, 54px);
	line-height: 1.12;
}

.cm-roi__lead {
	max-width: 720px;
	font-size: 19px;
	line-height: 1.55;
	color: var(--wp--preset--color--text-2);
}

/* Sliders on the left, results on the right; stacked on narrow screens. */
.cm-section > .cm-roi__body {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
	padding-block: 0 clamp(64px, 8vw, 96px);
}

.cm-roi__form,
.cm-roi__card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 32px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 24px;
	background: var(--wp--preset--color--white);
}

.cm-roi__form {
	flex: 1 1 460px;
	gap: 26px;
}

.cm-roi__field-head {
	display: flex;
	gap: 16px;
	justify-content: space-between;
	align-items: baseline;
}

.cm-roi__field-head label {
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--navy-deep);
}

.cm-roi__field-head output {
	flex-shrink: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--wp--preset--color--teal);
}

.cm-roi__field input[type="range"] {
	display: block;
	width: 100%;
	height: 28px;
	margin: 6px 0 4px;
	accent-color: var(--wp--preset--color--teal);
	cursor: pointer;
}

.cm-roi__hint {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.cm-roi__results {
	display: flex;
	flex: 1 1 440px;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.cm-roi__card {
	gap: 10px;
}

.cm-roi__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--teal);
}

.cm-roi__label--teal {
	color: var(--wp--preset--color--teal);
}

.cm-roi__unit {
	display: block;
	font-size: 15px;
	font-weight: 400;
	color: var(--wp--preset--color--on-dark);
}

/* Staff time card, on light mint. */
.cm-roi__card--dark {
	gap: 22px;
	border-color: var(--wp--preset--color--mint);
	background: var(--wp--preset--color--pill);
	color: var(--wp--preset--color--navy-deep);
}

.cm-roi__big-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
}

.cm-roi__big {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cm-roi__big > span:first-child {
	font-size: 56px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1;
}

.cm-roi__split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.cm-roi__split p {
	padding: 16px;
	border-radius: 14px;
	background: var(--wp--preset--color--panel);
}

.cm-roi__split .cm-roi__unit {
	margin-bottom: 4px;
	font-size: 13px;
}

.cm-roi__split strong {
	font-size: 20px;
}

.cm-roi__worth {
	font-size: 16px;
	color: var(--wp--preset--color--on-dark);
}

.cm-roi__worth strong {
	color: var(--wp--preset--color--navy-deep);
}

/* Care program billing card. */
.cm-roi__revenue {
	font-size: 48px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.05;
	color: var(--wp--preset--color--navy-deep);
}

.cm-roi__note {
	font-size: 15px;
	color: var(--wp--preset--color--text-2);
}

.cm-roi__assumptions {
	font-size: 13px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 600px) {
	.cm-roi__form,
	.cm-roi__card {
		padding: 24px 20px;
	}

	.cm-roi__big > span:first-child {
		font-size: 44px;
	}

	.cm-roi__revenue {
		font-size: 40px;
	}
}

/* Screen reader summary of the results, read once the sliders stop moving. */
.cm-roi__announce {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
