/**
 * onmethod-2027 — wow-roi.css — STREAM A (conversion)
 * ROI engine module (plan move 4) + magnetic volt CTA support (move 8).
 *
 * Volt discipline (hard rule): volt #D9FF00 appears ONLY on the
 * "Book the audit" CTA, the word "pays", and telemetry readouts (the live
 * counter numbers). Nothing else in this file uses it.
 *
 * One signature moment per section: the ROI counter is this section's
 * moment — everything else here is restrained.
 */

/* ---- Module card: dark dyno-room card matching the theme's near-black hero ---- */
.wow-roi {
	background: #111214;
	color: #f4f1ea;
	border: 1px solid #23262b;
	border-radius: var(--radius, 0.5rem);
	padding: clamp(1.25rem, 3vw, 2rem);
	margin-top: 1.5rem;
}

/* Kicker: neutral, not volt — volt stays reserved for conversion. */
.wow-roi__kicker {
	margin: 0 0 0.4rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(244, 241, 234, 0.55);
}

.wow-roi__title {
	margin: 0 0 0.25rem;
	color: #ffffff;
	font-size: clamp(1.25rem, 2.6vw, 1.7rem);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

/* ---- Slider row ---- */
.wow-roi__slider-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 1.25rem 0 0.6rem;
}

.wow-roi__label {
	font-weight: 700;
	font-size: 1rem;
}

.wow-roi__out {
	font-size: 1.5rem;
	font-weight: 800;
	color: #f4f1ea; /* neutral readout — the telemetry volt lives on the money numbers */
	font-variant-numeric: tabular-nums;
}

.wow-roi__slider {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	height: 6px;
	border-radius: 3px;
	background: rgba(244, 241, 234, 0.22);
	cursor: pointer;
	margin: 0 0 0.5rem;
	display: block;
}

/* Thumb: paper white with a dark ring — volt is not used on controls. */
.wow-roi__slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #f4f1ea;
	border: 3px solid #111214;
	box-shadow: 0 0 14px rgba(244, 241, 234, 0.35);
	cursor: grab;
}

.wow-roi__slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #f4f1ea;
	border: 3px solid #111214;
	cursor: grab;
}

.wow-roi__slider::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: rgba(244, 241, 234, 0.22);
}

/* ---- Results: counter + payback + CTA side by side ---- */
.wow-roi__results {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 1rem;
	align-items: center;
	margin: 1.25rem 0 0.75rem;
}

.wow-roi__num {
	display: block;
	font-size: clamp(1.9rem, 5vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--volt, #d9ff00); /* telemetry accent */
	font-variant-numeric: tabular-nums;
}

.wow-roi__cap {
	font-size: 0.85rem;
	color: rgba(244, 241, 234, 0.6);
	line-height: 1.4;
}

.wow-roi__pays {
	color: var(--volt, #d9ff00);
	font-weight: 800;
}

.wow-roi__cta-wrap {
	justify-self: end;
}

.wow-roi__cta {
	white-space: normal;
	text-align: center;
	line-height: 1.35;
}

/* Single pulse when payback drops under 30 days — fires once, then stops. */
@keyframes wow-roi-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(217, 255, 0, 0.55); }
	100% { box-shadow: 0 0 0 18px rgba(217, 255, 0, 0); }
}

.wow-roi__cta--pulse {
	animation: wow-roi-pulse 0.9s ease-out 1;
}

/* ---- Assumptions note: conservative, never a promise ---- */
.wow-roi__note {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(244, 241, 234, 0.6);
}

/* ---- Magnetic CTA support (move 8) ----
   JS sets inline transforms with its own easing loop; the theme's
   transform transition would fight it, so magnetic mode keeps only the
   box-shadow transition for the volt glow intensify on hover. */
html.wow-magnet .btn--volt {
	transition: box-shadow 0.25s ease;
}

html.wow-magnet .btn--volt:hover {
	box-shadow: 0 8px 40px rgba(217, 255, 0, 0.45);
}

/* ---- Responsive: stack the results on small screens ---- */
@media (max-width: 640px) {
	.wow-roi__results {
		grid-template-columns: 1fr;
	}
	.wow-roi__cta-wrap {
		justify-self: start;
	}
}

/* ---- Kill switch: html.wow-off disables the enhancement layer ---- */
html.wow-off .wow-roi {
	display: none !important;
}

html.wow-off .wow-roi__cta--pulse,
html.wow-off .btn--volt {
	animation: none !important;
}

/* ---- prefers-reduced-motion: full static experience ---- */
@media (prefers-reduced-motion: reduce) {
	.wow-roi__cta--pulse {
		animation: none !important;
	}
	.wow-roi__slider::-webkit-slider-thumb,
	.wow-roi__slider::-moz-range-thumb {
		box-shadow: none;
	}
}
