/* Customer-value evidence: inherit the landing page's paper / ink tokens. */
:is(#customerValue, #roi) {
	min-width: 0;
	color: var(--ink-on-paper);
	overflow-wrap: anywhere;
}

:is(#customerValue, #roi) [hidden] {
	display: none !important;
}

:is(#customerValue, #roi) .fig-title {
	letter-spacing: -0.03em;
	line-height: 1.15;
}

:is(#customerValue, #roi) h3 {
	margin-bottom: 1rem;
	font: 600 1.125rem / 1.5 var(--font-body);
	text-wrap: balance;
}

:is(#customerValue, #roi) p:not(.fig-lede) {
	max-width: 70ch;
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	line-height: 1.7;
	text-wrap: pretty;
}

.value-summary,
.value-boundaries,
.value-cost-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	margin-bottom: 2rem;
}

.value-summary > *,
.value-boundaries > *,
.value-cost-layout > * {
	min-width: 0;
}

.value-facts {
	margin: 0;
	border-top: 1px solid var(--ink-on-paper);
}

.value-facts > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1rem;
	padding-block: 0.75rem;
	border-bottom: 1px solid var(--line-strong);
}

.value-facts dt,
.value-cost-outputs dt {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--ink-on-paper-mid);
}

.value-facts dd,
.value-cost-outputs dd {
	margin: 0;
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}

.value-facts dd {
	font-size: 0.875rem;
	text-align: end;
}

.value-status,
.value-note {
	color: var(--ink-on-paper-mid);
}

.value-table-region {
	width: 100%;
	max-width: 100%;
	margin-block: 1rem 1.5rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	border-block: 1px solid var(--ink-on-paper);
}

.value-table {
	width: 100%;
	min-width: 48rem;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.875rem;
	line-height: 1.6;
}

.value-table caption {
	padding-block: 1rem;
	text-align: start;
	font-weight: 600;
}

.value-table th,
.value-table td {
	padding: 1rem 0.75rem;
	border-top: 1px solid var(--line-strong);
	text-align: start;
	vertical-align: top;
}

.value-table thead th {
	background: var(--surface);
	font-weight: 600;
}

.value-table th:first-child {
	width: 22%;
	position: sticky;
	left: 0;
	z-index: 1;
	background: var(--paper);
	box-shadow: 1px 0 0 var(--line-strong);
}

.value-table thead th:first-child {
	background: var(--surface);
}

.value-table tr[data-mismatch="true"] th:first-child {
	background: color-mix(in srgb, var(--accent) 12%, var(--paper));
}

.value-table td {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}

.value-table :is(th, td):nth-child(n + 4) {
	text-align: end;
}

.value-row-mismatch {
	display: none;
}

.value-table tr[data-mismatch="true"] {
	background: var(--accent-soft);
}

.value-table tr[data-mismatch="true"] .value-row-mismatch {
	display: block;
	margin-top: 0.5rem;
	color: var(--accent);
	font-size: 0.875rem;
	font-weight: 600;
}

.value-table tr[data-mismatch="true"] [data-matched] {
	font-weight: 700;
}

.value-mismatch-note {
	padding: 1rem;
	border: 1px solid var(--accent);
	font-weight: 500;
}

.value-method {
	margin-block: 2rem 3rem;
	border-block: 1px solid var(--line-strong);
}

.value-method > summary {
	min-height: 44px;
	padding-block: 1rem;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.6;
}

.value-method-body {
	padding-block: 0.5rem 1rem;
}

.value-boundaries {
	padding-top: 1.5rem;
	border-top: 1px solid var(--ink-on-paper);
}

.value-cost-layout {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}

.value-cost-form,
.value-field {
	display: grid;
	gap: 0.5rem;
}

.value-cost-form {
	align-content: start;
	gap: 1.5rem;
}

.value-field label {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.6;
}

.value-field :is(input, select) {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--ink-on-paper-muted);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink-on-paper);
	font: 400 1rem / 1.5 var(--font-body);
}

.value-field select:disabled {
	opacity: 1;
	color: var(--ink-on-paper-mid);
	cursor: not-allowed;
}

.value-cost-result {
	padding-top: 1.5rem;
	border-top: 1px solid var(--ink-on-paper);
}

.value-cost-outputs {
	margin-block: 1.5rem;
}

.value-cost-outputs > div {
	padding-block: 1rem;
	border-bottom: 1px solid var(--line-strong);
}

.value-cost-outputs output {
	display: block;
	margin-top: 0.5rem;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.5;
}

.value-formula {
	padding: 1rem;
	background: var(--surface);
}

.value-formula code {
	white-space: normal;
	font: 400 0.875rem / 1.7 var(--font-mono);
}

.value-cost-exclusions {
	padding-top: 1.5rem;
	border-top: 1px solid var(--line-strong);
}

.value-cost-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
}

.hero-value-link {
	margin-block: 0.5rem;
	font-size: 0.875rem;
}

.value-link,
.hero-value-link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink-on-paper);
	line-height: 1.6;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

:is(#customerValue, #roi)
	:is(a, summary, input, select, [tabindex]):focus-visible,
.hero-value-link a:focus-visible,
.roi-disclosure > summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.roi-disclosure > summary small {
	font-size: 0.875rem;
}

@media (max-width: 760px) {
	.value-summary,
	.value-boundaries,
	.value-cost-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.roi-disclosure > summary {
		flex-wrap: wrap;
	}

	.roi-disclosure > summary small {
		text-align: start;
	}
}

@media (scripting: none) {
	[data-value-status="loading"],
	[data-cost-state="loading"] {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(#customerValue, #roi),
	:is(#customerValue, #roi) * {
		animation: none;
		transition: none;
		scroll-behavior: auto;
	}
}
