/* ==========================================================================
   Let’s Make Decisions Wizard — all styles scoped under #lets-make-decisions
   All color values reference CSS custom properties only.
   ========================================================================== */

/* CSS variable defaults — shared by the inline wizard and any portaled containers */
#lets-make-decisions,
.lmd-portal {
	--lmd-primary:      #2D5BD0;
	--lmd-primary-dark: #2348A8;
	--lmd-bg:           #f8f8f6;
	--lmd-card-bg:      #ffffff;
	--lmd-border:       #e0e0e0;
	--lmd-text:         #1a1a2e;
	--lmd-muted:        #6b7280;
	--lmd-selected-bg:  #eaf1fd;
	--lmd-radius-card:  16px;
	--lmd-radius-btn:   8px;
	--lmd-shadow:       0 4px 24px rgba(0, 0, 0, 0.08);
	--lmd-ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--lmd-body-font:    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--lmd-heading-font: inherit;
	--lmd-body-size:    16px;
	--lmd-heading-size: 26px;

	font-family: var(--lmd-body-font);
	color: var(--lmd-text);
}

/* Portal container appended to document.body — must be invisible to body layout */
.lmd-portal {
	display: contents;
}

/* Inline wizard mount point — full-bleed layout, background */
#lets-make-decisions {
	background-color: var(--lmd-bg);

	/* Break out of the theme's content-width constraint.
	   Use margin (not transform) so position:fixed descendants stay viewport-relative. */
	width: 100vw !important;
	max-width: none !important;
	position: relative;
	margin-left: calc(50% - 50vw) !important;
}

/* Focus styles */
.lmd-scoped *:focus-visible {
	outline: 2px solid var(--lmd-primary);
	outline-offset: 2px;
}

.lmd-scoped *:focus:not(:focus-visible) {
	outline: none;
}

/* The question heading is focused programmatically for screen-reader announcements only —
   never via keyboard interaction — so suppress any visible outline regardless of browser heuristics. */
.lmd-scoped .lmd-question-text:focus,
.lmd-scoped .lmd-question-text:focus-visible {
	outline: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-wrapper {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 5px 24px;
	min-height: 400px;
	background-color: var(--lmd-bg);
}

.lmd-scoped .lmd-card {
	width: 100%;
	max-width: min(clamp(360px, 65vw, 1080px), 100%);
	background-color: var(--lmd-card-bg);
	border-radius: var(--lmd-radius-card);
	box-shadow: var(--lmd-shadow);
	padding: 48px;
	box-sizing: border-box;
	transform-origin: center center;
	transform-style: preserve-3d;
}

.lmd-scoped .lmd-card--result {
	background: transparent;
	box-shadow: none;
}

/* Frame that holds the card + the progress bar below it. Matches the card's
   max-width so the bar always aligns flush to the card edges. */
.lmd-scoped .lmd-wizard-frame {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: min(clamp(360px, 65vw, 1080px), 100%);
}

/* Override the internal margin-bottom the bar used when it lived inside the card. */
.lmd-scoped .lmd-wizard-frame > .lmd-progress {
	margin-top: 24px;
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Progress Bar
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-progress {
	margin-bottom: 36px;
}

.lmd-scoped .lmd-progress-track {
	height: 4px;
	background-color: var(--lmd-border);
	border-radius: 100px;
	overflow: hidden;
}

.lmd-scoped .lmd-progress-fill {
	height: 100%;
	background-color: var(--lmd-primary);
	border-radius: 100px;
	transition: width 0.4s ease;
}

.lmd-scoped .lmd-step-counter {
	font-size: 12px;
	color: var(--lmd-muted);
	margin: 8px 0 0 0;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Question & Heading
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-question-text {
	font-size: var(--lmd-heading-size, 26px);
	font-family: var(--lmd-heading-font);
	font-weight: 600;
	line-height: 1.3;
	color: var(--lmd-text);
	margin: 0 0 28px 0;
}

/* --------------------------------------------------------------------------
   Answer Cards
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-answers {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lmd-scoped .lmd-multi-hint {
	font-size: 12px;
	color: var(--lmd-muted, #6b7280);
	margin: 0 0 6px;
	font-style: italic;
}

.lmd-scoped .lmd-text-answer {
	width: 100%;
}

.lmd-scoped .lmd-text-answer__input {
	width: 100%;
	min-height: 120px;
	padding: 14px 16px;
	background: var(--lmd-card-bg);
	border: 1.5px solid var(--lmd-border);
	border-radius: 10px;
	color: var(--lmd-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.6;
	resize: vertical;
	box-sizing: border-box;
	transition: border-color 0.15s var(--lmd-ease);
}

.lmd-scoped .lmd-text-answer__input:focus {
	outline: none;
	border-color: var(--lmd-primary);
}

.lmd-scoped .lmd-answer-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 20px;
	background-color: var(--lmd-card-bg);
	border: 1.5px solid var(--lmd-border);
	border-radius: 10px;
	border-left-width: 1.5px;
	cursor: pointer;
	text-align: left;
	font-size: var(--lmd-body-size, 16px);
	font-weight: 500;
	font-family: inherit;
	color: var(--lmd-text);
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
	position: relative;
}

.lmd-scoped .lmd-answer-card:hover {
	border-color: var(--lmd-primary);
	background-color: var(--lmd-selected-bg);
}

.lmd-scoped .lmd-answer-card--selected {
	border-color: var(--lmd-primary);
	border-left: 4px solid var(--lmd-primary);
	background-color: var(--lmd-selected-bg);
	box-shadow: 0 2px 12px rgba(74, 144, 164, 0.12);
	padding-left: 17px; /* compensate for extra border width */
}

.lmd-scoped .lmd-answer-label {
	flex: 1;
}

.lmd-scoped .lmd-answer-check {
	flex-shrink: 0;
	margin-left: 12px;
	display: flex;
	align-items: center;
	color: var(--lmd-primary);
}

/* --------------------------------------------------------------------------
   Navigation Buttons
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 32px;
	gap: 12px;
}

.lmd-scoped .lmd-btn {
	padding: 14px 32px;
	border-radius: var(--lmd-radius-btn);
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		opacity 0.2s ease;
	text-align: center;
	line-height: 1;
}

.lmd-scoped .lmd-btn--next {
	background-color: var(--lmd-primary);
	color: #ffffff;
	border: none;
	margin-left: auto;
}

.lmd-scoped .lmd-btn--next:hover:not(:disabled) {
	background-color: var(--lmd-primary-dark);
}

.lmd-scoped .lmd-btn--next:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.lmd-scoped .lmd-btn--back {
	background-color: transparent;
	color: var(--lmd-text);
	border: 1.5px solid var(--lmd-border);
}

.lmd-scoped .lmd-btn--back:hover {
	border-color: var(--lmd-primary);
	color: var(--lmd-primary);
}

/* --------------------------------------------------------------------------
   Card flip transition
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-wrapper {
	perspective: 1200px;
}

.lmd-scoped .lmd-card--flip-exit {
	animation: lmd-flip-exit-fwd 0.28s ease-in both;
}

.lmd-scoped .lmd-card--flip-exit-back {
	animation: lmd-flip-exit-back 0.28s ease-in both;
}

.lmd-scoped .lmd-card--flip-enter {
	animation: lmd-flip-enter-fwd 0.3s ease-out both;
}

.lmd-scoped .lmd-card--flip-enter-back {
	animation: lmd-flip-enter-back 0.3s ease-out both;
}

@keyframes lmd-flip-exit-fwd {
	from { transform: rotateY(0deg); }
	to   { transform: rotateY(90deg); }
}

@keyframes lmd-flip-exit-back {
	from { transform: rotateY(0deg); }
	to   { transform: rotateY(-90deg); }
}

@keyframes lmd-flip-enter-fwd {
	from { transform: rotateY(-90deg); }
	to   { transform: rotateY(0deg); }
}

@keyframes lmd-flip-enter-back {
	from { transform: rotateY(90deg); }
	to   { transform: rotateY(0deg); }
}

/* --------------------------------------------------------------------------
   Result Screen
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-result {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 4px 0;
}

/* Insight banner */

.lmd-scoped .lmd-insight {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--lmd-selected-bg);
	border-left: 4px solid var(--lmd-primary);
	border-radius: 10px;
	padding: 18px 24px;
	animation: lmd-fade-in 0.2s ease-out both;
}

@keyframes lmd-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.lmd-scoped .lmd-insight__icon {
	color: var(--lmd-primary);
	flex-shrink: 0;
	line-height: 1;
	margin-top: 1px;
}

.lmd-scoped .lmd-insight__text {
	font-size: 15px;
	font-style: italic;
	color: var(--lmd-text);
	line-height: 1.5;
	margin: 0;
}

/* Plan comparison layout */

.lmd-scoped .lmd-comparison {
	display: flex;
	align-items: stretch;
	gap: 16px;
}

.lmd-scoped .lmd-comparison__col {
	display: flex;
	flex-direction: column;
}

.lmd-scoped .lmd-comparison__col--recommended {
	flex: 1.4;
}

.lmd-scoped .lmd-comparison__col--runner-up {
	flex: 1;
}

.lmd-scoped .lmd-comparison--single .lmd-comparison__col--recommended {
	flex: 1;
}

/* Plan badges */

.lmd-scoped .lmd-plan-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 5px 12px;
	border-radius: 4px;
	margin-bottom: 8px;
	white-space: nowrap;
	align-self: flex-start;
}

.lmd-scoped .lmd-plan-badge--recommended {
	background-color: var(--lmd-primary);
	color: #ffffff;
}

.lmd-scoped .lmd-plan-badge--runner-up {
	background-color: var(--lmd-muted);
	color: #ffffff;
}

/* Plan cards */

.lmd-scoped .lmd-plan-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--lmd-radius-card);
	box-sizing: border-box;
	flex: 1;
}

.lmd-scoped .lmd-plan-card--recommended {
	background: var(--lmd-card-bg);
	border: 2.5px solid var(--lmd-primary);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	padding: 36px;
	animation: lmd-card-up 0.38s ease-out 0.1s both;
}

.lmd-scoped .lmd-plan-card--runner-up {
	background: var(--lmd-card-bg);
	border: 1.5px solid var(--lmd-border);
	box-shadow: var(--lmd-shadow);
	padding: 28px;
	animation: lmd-card-up-faded 0.38s ease-out 0.22s both;
}

@keyframes lmd-card-up {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes lmd-card-up-faded {
	from { opacity: 0;    transform: translateY(24px); }
	to   { opacity: 0.92; transform: translateY(0); }
}

.lmd-scoped .lmd-plan-card__name--recommended {
	font-size: 26px;
	font-weight: 700;
	color: var(--lmd-primary);
	margin: 0 0 8px 0;
	line-height: 1.2;
}

.lmd-scoped .lmd-plan-card__name--runner-up {
	font-size: 20px;
	font-weight: 600;
	color: var(--lmd-text);
	margin: 0 0 8px 0;
	line-height: 1.2;
}

.lmd-scoped .lmd-plan-card__price--recommended {
	font-size: 52px;
	font-weight: 800;
	color: var(--lmd-text);
	line-height: 1;
	margin: 0 0 16px 0;
	letter-spacing: -0.02em;
}

.lmd-scoped .lmd-plan-card__price--runner-up {
	font-size: 36px;
	font-weight: 700;
	color: var(--lmd-text);
	line-height: 1;
	margin: 0 0 16px 0;
}

.lmd-scoped .lmd-plan-card__divider {
	border: none;
	border-top: 1px solid var(--lmd-border);
	margin: 0 0 16px 0;
}

.lmd-scoped .lmd-plan-card__description--recommended {
	font-size: 15px;
	line-height: 1.7;
	color: var(--lmd-muted);
	margin: 0 0 28px 0;
	flex-grow: 1;
}

.lmd-scoped .lmd-plan-card__description--runner-up {
	font-size: 14px;
	line-height: 1.6;
	color: var(--lmd-muted);
	margin: 0 0 24px 0;
	flex-grow: 1;
}

.lmd-scoped .lmd-plan-card__cta {
	display: block;
	width: 100%;
	border-radius: var(--lmd-radius-btn);
	font-family: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.lmd-scoped .lmd-plan-card__cta--filled {
	background-color: var(--lmd-primary);
	color: #ffffff;
	border: none;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
}

.lmd-scoped .lmd-plan-card__cta--filled:hover {
	background-color: var(--lmd-primary-dark);
}

.lmd-scoped .lmd-plan-card__cta--ghost {
	background: transparent;
	border: 1.5px solid var(--lmd-primary);
	color: var(--lmd-primary);
	padding: 13px;
	font-size: 15px;
	font-weight: 600;
}

.lmd-scoped .lmd-plan-card__cta--ghost:hover {
	background-color: var(--lmd-selected-bg);
}

/* Scoring report */

.lmd-scoped .lmd-report__heading {
	font-size: 20px;
	font-weight: 700;
	color: var(--lmd-text);
	margin: 0 0 20px 0;
	line-height: 1.3;
}

.lmd-scoped .lmd-report__panel-inner {
	padding: 0;
}

.lmd-scoped .lmd-report__answers-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent;
	border: none;
	border-top: 1px solid var(--lmd-border);
	padding: 14px 0 0;
	margin-top: 20px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--lmd-muted);
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	transition: color 0.15s ease;
}

.lmd-scoped .lmd-report__answers-toggle:hover {
	color: var(--lmd-text);
}

.lmd-scoped .lmd-report__answers-toggle-icon {
	font-size: 11px;
	flex-shrink: 0;
	margin-left: 8px;
}

.lmd-scoped .lmd-report__answers {
	padding-top: 16px;
}

.lmd-scoped .lmd-report__section-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--lmd-muted);
	margin: 0 0 16px 0;
}

.lmd-scoped .lmd-report__answer-row {
	margin-bottom: 14px;
}

.lmd-scoped .lmd-report__answer-question {
	font-size: 14px;
	font-weight: 500;
	color: var(--lmd-text);
	margin: 0 0 4px 0;
}

.lmd-scoped .lmd-report__answer-selected {
	font-size: 14px;
	font-weight: 600;
	color: var(--lmd-primary);
	margin: 0;
}

.lmd-scoped .lmd-report__divider {
	border: none;
	border-top: 1px solid var(--lmd-border);
	margin: 20px 0;
}

.lmd-scoped .lmd-report__score-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.lmd-scoped .lmd-report__score-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--lmd-text);
	min-width: 80px;
	flex-shrink: 0;
}

.lmd-scoped .lmd-report__score-star {
	color: var(--lmd-primary);
}

.lmd-scoped .lmd-report__score-bar-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.lmd-scoped .lmd-report__score-bar-track {
	flex: 1;
	height: 8px;
	background: var(--lmd-border);
	border-radius: 4px;
	overflow: hidden;
}

.lmd-scoped .lmd-report__score-bar-fill {
	height: 100%;
	border-radius: 4px;
	width: 0;
	transition: width 0.6s ease-out;
}

.lmd-scoped .lmd-report__score-number {
	font-size: 13px;
	color: var(--lmd-muted);
	min-width: 24px;
	text-align: right;
	flex-shrink: 0;
}

/* Result footer — used in zero-state fallback */

.lmd-scoped .lmd-result-footer {
	text-align: center;
}

/* Restart button — appears in panel-footer on the last panel, and in
   lmd-result-footer for the zero-state fallback. */
.lmd-scoped .lmd-result-restart {
	background: transparent;
	border: 1.5px solid var(--lmd-border);
	border-radius: var(--lmd-radius-btn);
	font-size: 13px;
	font-weight: 500;
	font-family: inherit;
	color: var(--lmd-muted);
	cursor: pointer;
	padding: 8px 20px;
	transition:
		border-color 0.2s ease,
		color        0.2s ease;
	pointer-events: auto;
}

.lmd-scoped .lmd-result-restart:hover {
	border-color: var(--lmd-primary);
	color: var(--lmd-primary);
}

/* --------------------------------------------------------------------------
   Loading Spinner
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-card--loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
}

.lmd-scoped .lmd-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--lmd-border);
	border-top-color: var(--lmd-primary);
	border-radius: 50%;
	animation: lmd-spin 0.7s linear infinite;
}

@keyframes lmd-spin {
	to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Load Error
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-load-error {
	font-size: 15px;
	color: var(--lmd-muted);
	text-align: center;
	line-height: 1.6;
	padding: 40px 0;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive — under 600px
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.lmd-scoped .lmd-wrapper {
		padding: 0;
		align-items: stretch;
	}

	.lmd-scoped .lmd-card {
		max-width: 100%;
		border-radius: 0;
		box-shadow: none;
		padding: 24px;
		min-height: 100vh;
	}

	.lmd-scoped .lmd-wizard-frame {
		max-width: 100%;
	}

	.lmd-scoped .lmd-question-text {
		font-size: 22px;
	}

	.lmd-scoped .lmd-answer-card {
		font-size: 15px;
	}

	.lmd-scoped .lmd-nav {
		flex-direction: column-reverse;
		gap: 0;
	}

	.lmd-scoped .lmd-btn--next {
		width: 100%;
		margin-left: 0;
	}

	.lmd-scoped .lmd-btn--back {
		background: none;
		border: none;
		color: var(--lmd-muted);
		font-weight: 500;
		padding: 12px 0 0 0;
		text-decoration: underline;
		text-underline-offset: 2px;
	}

}

/* --------------------------------------------------------------------------
   Responsive — result screen under 640px
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
	.lmd-scoped .lmd-comparison {
		flex-direction: column;
		gap: 16px;
	}

	.lmd-scoped .lmd-comparison__col--recommended,
	.lmd-scoped .lmd-comparison__col--runner-up {
		flex: none;
	}

	.lmd-scoped .lmd-plan-card--recommended,
	.lmd-scoped .lmd-plan-card--runner-up {
		padding: 28px;
	}

	.lmd-scoped .lmd-plan-card__price--recommended {
		font-size: 40px;
	}

	.lmd-scoped .lmd-email-capture__row {
		flex-direction: column;
	}

	.lmd-scoped .lmd-email-capture__btn {
		width: 100%;
		justify-content: center;
	}
}

/* --------------------------------------------------------------------------
   Email capture (result screen)
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-email-capture {
	margin: 24px 0;
	padding: 20px 24px;
	background: var(--lmd-card-bg);
	border: 1px solid var(--lmd-border);
	border-radius: var(--lmd-radius-card);
}

.lmd-scoped .lmd-email-capture__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--lmd-text);
	margin: 0 0 12px 0;
}

.lmd-scoped .lmd-email-capture__row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.lmd-scoped .lmd-email-capture__input {
	flex: 1;
	padding: 10px 14px;
	font-size: 14px;
	font-family: inherit;
	color: var(--lmd-text);
	background: var(--lmd-bg);
	border: 1px solid var(--lmd-border);
	border-radius: var(--lmd-radius-btn);
	outline: none;
	transition: border-color 0.15s ease;
}

.lmd-scoped .lmd-email-capture__input:focus {
	border-color: var(--lmd-primary);
}

.lmd-scoped .lmd-email-capture__input:disabled {
	opacity: 0.6;
}

.lmd-scoped .lmd-email-capture__btn {
	padding: 10px 20px;
	background: var(--lmd-primary);
	color: #fff;
	border: none;
	border-radius: var(--lmd-radius-btn);
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.lmd-scoped .lmd-email-capture__btn:hover:not(:disabled) {
	background: var(--lmd-primary-dark);
}

.lmd-scoped .lmd-email-capture__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.lmd-scoped .lmd-email-capture__btn--error {
	background: #dc2626;
}

.lmd-scoped .lmd-email-capture--sent {
	text-align: center;
	padding: 16px 24px;
}

.lmd-scoped .lmd-email-capture__success {
	font-size: 14px;
	font-weight: 600;
	color: var(--lmd-primary);
	margin: 0;
}

.lmd-scoped .lmd-spinner--sm {
	width: 14px;
	height: 14px;
	border-width: 2px;
}

/* --------------------------------------------------------------------------
   Result layout — Hero + Alternatives
   -------------------------------------------------------------------------- */

/* ── Entry animations ── */

@keyframes lmd-slide-in-left {
	from { transform: translateX(-24px); opacity: 0; }
	to   { transform: translateX(0);     opacity: 1; }
}

@keyframes lmd-slide-in-right {
	from { transform: translateX(24px); opacity: 0; }
	to   { transform: translateX(0);    opacity: 1; }
}

@keyframes lmd-slide-up {
	from { transform: translateY(20px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/* ── Hero ── */

.lmd-scoped .lmd-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.lmd-scoped .lmd-hero-card {
	background: var(--lmd-card-bg);
	border: 2px solid var(--lmd-primary);
	border-radius: var(--lmd-radius-card);
	padding: 36px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.10);
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.lmd-scoped .lmd-hero-badge {
	display: inline-block;
	background: var(--lmd-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 4px;
	padding: 5px 12px;
	margin-bottom: 16px;
	align-self: flex-start;
}

.lmd-scoped .lmd-hero-logo {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 8px;
	margin-bottom: 14px;
}

.lmd-scoped .lmd-hero-name {
	font-size: 26px;
	font-weight: 700;
	color: var(--lmd-primary);
	margin: 0 0 8px 0;
	line-height: 1.2;
}

.lmd-scoped .lmd-hero-price {
	font-size: 52px;
	font-weight: 800;
	color: var(--lmd-text);
	line-height: 1;
	margin: 0 0 20px 0;
	letter-spacing: -0.02em;
}

.lmd-scoped .lmd-hero-divider {
	border: none;
	border-top: 1px solid var(--lmd-border);
	margin: 0 0 20px 0;
}

.lmd-scoped .lmd-hero-description {
	font-size: 15px;
	line-height: 1.7;
	color: var(--lmd-muted);
	margin: 0;
	flex-grow: 1;
}

.lmd-scoped .lmd-hero-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
}

.lmd-scoped .lmd-hero-insight {
	font-size: 17px;
	font-style: italic;
	color: var(--lmd-text);
	line-height: 1.6;
	padding-left: 16px;
	border-left: 3px solid var(--lmd-primary);
	margin: 0;
}

.lmd-scoped .lmd-hero-fit-reason {
	font-size: 15px;
	color: var(--lmd-muted);
	line-height: 1.6;
	margin: 0;
}

.lmd-scoped .lmd-hero-section-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--lmd-primary);
	margin-bottom: 6px;
}

.lmd-scoped .lmd-hero-section-label--features {
	margin-bottom: 10px;
}

.lmd-scoped .lmd-hero-why {
	display: flex;
	flex-direction: column;
}

.lmd-scoped .lmd-hero-why__text {
	font-size: 15px;
	font-weight: 500;
	color: var(--lmd-text);
	line-height: 1.6;
	margin: 0;
}

.lmd-scoped .lmd-hero-features {
	display: flex;
	flex-direction: column;
}

.lmd-scoped .lmd-hero-cta {
	display: block;
	width: 100%;
	background-color: var(--lmd-primary);
	color: #fff;
	border: none;
	border-radius: var(--lmd-radius-btn);
	font-family: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
	box-sizing: border-box;
	line-height: 1;
	transition: background-color 0.2s ease;
	margin-top: auto;
}

.lmd-scoped .lmd-hero-cta:hover {
	background-color: var(--lmd-primary-dark);
}

/* ── Feature checklist (shared by hero and alt cards) ── */

.lmd-scoped .lmd-features-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lmd-scoped .lmd-features-list__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 8px;
}

.lmd-scoped .lmd-features-list__item:last-child {
	margin-bottom: 0;
}

.lmd-scoped .lmd-features-list__icon {
	color: var(--lmd-primary);
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 1px;
	line-height: 1.4;
}

.lmd-scoped .lmd-features-list--missing .lmd-features-list__icon {
	color: #e05252;
}

.lmd-scoped .lmd-features-list--missing .lmd-features-list__label {
	color: var(--lmd-muted);
	text-decoration: line-through;
	text-decoration-color: rgba(224, 82, 82, 0.45);
}

.lmd-scoped .lmd-features-list__label {
	font-size: 14px;
	color: var(--lmd-text);
	line-height: 1.4;
}

.lmd-scoped .lmd-alt-upsell--downgrade .lmd-alt-upsell__label {
	color: #e05252;
}

/* ── Alternatives section ── */

.lmd-scoped .lmd-alternatives {
	margin-bottom: 0;
}

.lmd-scoped .lmd-alternatives__label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--lmd-muted);
	margin: 0 0 20px 0;
}

.lmd-scoped .lmd-alternatives-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.lmd-scoped .lmd-alternatives-grid--single {
	grid-template-columns: 1fr;
}

.lmd-scoped .lmd-alt-card {
	background: var(--lmd-card-bg);
	border: 1.5px solid var(--lmd-border);
	border-radius: var(--lmd-radius-card);
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-sizing: border-box;
}

.lmd-scoped .lmd-alt-card--priority {
	padding: 28px;
	box-shadow: var(--lmd-shadow);
}

.lmd-scoped .lmd-alt-card--secondary {
	padding: 24px;
	opacity: 0.88;
	box-shadow: none;
}

.lmd-scoped .lmd-alt-logo {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 6px;
	margin-bottom: 10px;
}

.lmd-scoped .lmd-alt-name {
	font-weight: 700;
	color: var(--lmd-text);
	margin: 0;
	line-height: 1.2;
}

.lmd-scoped .lmd-alt-card--priority .lmd-alt-name {
	font-size: 20px;
}

.lmd-scoped .lmd-alt-card--secondary .lmd-alt-name {
	font-size: 18px;
}

.lmd-scoped .lmd-alt-price {
	font-weight: 800;
	color: var(--lmd-text);
	line-height: 1;
	margin: 0;
	letter-spacing: -0.02em;
}

.lmd-scoped .lmd-alt-card--priority .lmd-alt-price {
	font-size: 36px;
}

.lmd-scoped .lmd-alt-card--secondary .lmd-alt-price {
	font-size: 30px;
}

.lmd-scoped .lmd-alt-divider {
	border: none;
	border-top: 1px solid var(--lmd-border);
	margin: 0;
}

.lmd-scoped .lmd-alt-fit-reason {
	font-size: 13px;
	font-style: italic;
	color: var(--lmd-muted);
	line-height: 1.5;
	margin: 0;
}

.lmd-scoped .lmd-alt-upsell {
	background: var(--lmd-selected-bg);
	border-left: 3px solid var(--lmd-primary);
	border-radius: 6px;
	padding: 12px 16px;
}

.lmd-scoped .lmd-alt-upsell__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--lmd-primary);
	margin-bottom: 6px;
}

.lmd-scoped .lmd-alt-upsell__text {
	font-size: 13px;
	color: var(--lmd-text);
	line-height: 1.5;
	margin: 0;
}

.lmd-scoped .lmd-alt-features {
	display: flex;
	flex-direction: column;
}

.lmd-scoped .lmd-alt-features__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--lmd-muted);
	margin-bottom: 8px;
}

.lmd-scoped .lmd-alt-description {
	font-size: 14px;
	color: var(--lmd-muted);
	line-height: 1.6;
	margin: 0;
}

.lmd-scoped .lmd-alt-cta {
	display: block;
	width: 100%;
	background: transparent;
	border: 1.5px solid var(--lmd-primary);
	color: var(--lmd-primary);
	border-radius: var(--lmd-radius-btn);
	font-family: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	padding: 13px;
	font-size: 15px;
	font-weight: 600;
	box-sizing: border-box;
	line-height: 1;
	transition: background-color 0.2s ease;
	margin-top: auto;
}

.lmd-scoped .lmd-alt-cta:hover {
	background-color: var(--lmd-selected-bg);
}

/* ── Scroll-reveal sections ── */

/* ── Panel container ── */

.lmd-scoped .lmd-result--panels {
	position: relative;
	/* Fills the card content area minus a small margin so the card shadow/border
	   stays visible. svh = "small viewport height" (excludes mobile browser chrome). */
	height: min(calc(100vh - 260px), 700px);
	height: min(calc(100svh - 260px), 700px);
	min-height: 440px;
	overflow: hidden;
	/* Override the default flex layout used by the zero-state fallback. */
	display: block;
	padding: 0;
	gap: 0;
}

/* ── Individual panels — each fills the container and scrolls internally ── */

.lmd-scoped .lmd-panel {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overflow-x: hidden;
	opacity: 0;
	pointer-events: none;
	scrollbar-width: none;
}

.lmd-scoped .lmd-panel::-webkit-scrollbar { display: none; }

.lmd-scoped .lmd-panel--active {
	opacity: 1;
	pointer-events: auto;
}

/* ── Panel transition animations ── */
/* Entry is slower (760ms) than exit (580ms) so they overlap — the new panel is
   still rising into view as the old one fades out, creating a layered crossfade. */

.lmd-scoped .lmd-panel--entering-fwd {
	animation: lmd-panel-enter-fwd 760ms var(--lmd-ease) both;
	pointer-events: auto;
	z-index: 2;
}
.lmd-scoped .lmd-panel--entering-back {
	animation: lmd-panel-enter-back 760ms var(--lmd-ease) both;
	pointer-events: auto;
	z-index: 2;
}
.lmd-scoped .lmd-panel--exiting-fwd {
	animation: lmd-panel-exit-fwd 580ms ease-in both;
	pointer-events: none;
	z-index: 1;
}
.lmd-scoped .lmd-panel--exiting-back {
	animation: lmd-panel-exit-back 580ms ease-in both;
	pointer-events: none;
	z-index: 1;
}

@keyframes lmd-panel-enter-fwd {
	from { opacity: 0; transform: translateY(64px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes lmd-panel-enter-back {
	from { opacity: 0; transform: translateY(-64px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes lmd-panel-exit-fwd {
	from { opacity: 1; transform: translateY(0); }
	to   { opacity: 0; transform: translateY(-48px); }
}
@keyframes lmd-panel-exit-back {
	from { opacity: 1; transform: translateY(0); }
	to   { opacity: 0; transform: translateY(48px); }
}

/* ── Panel inner — padding so content never hides behind the footer chrome ── */

.lmd-scoped .lmd-panel__inner {
	padding: 48px 48px 100px;
}

/* ── Bottom chrome: dots + scroll hint ── */

.lmd-scoped .lmd-panel-footer {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding-bottom: 14px;
	z-index: 10;
	pointer-events: none;
	/* Fade to the page/wrapper background so the footer mask still works
	   when the result card is transparent. */
	background: linear-gradient(
		to bottom,
		transparent 0%,
		var(--lmd-bg) 52%
	);
}

.lmd-scoped .lmd-scroll-hint {
	font-size: 18px;
	color: var(--lmd-muted);
	opacity: 0.55;
	animation: lmd-panel-bounce 1.8s ease-in-out infinite;
	pointer-events: none;
}

@keyframes lmd-panel-bounce {
	0%, 100% { transform: translateY(0);   opacity: 0.55; }
	50%       { transform: translateY(5px); opacity: 0.9; }
}

.lmd-scoped .lmd-panel-dots {
	display: flex;
	align-items: center;
	gap: 7px;
	pointer-events: auto;
}

.lmd-scoped .lmd-panel-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lmd-border);
	border: none;
	padding: 0;
	cursor: pointer;
	transition:
		width            0.25s var(--lmd-ease),
		border-radius    0.25s var(--lmd-ease),
		background-color 0.25s var(--lmd-ease);
}

.lmd-scoped .lmd-panel-dot--active {
	width: 22px;
	border-radius: 4px;
	background: var(--lmd-primary);
}

/* ── Reduced motion: skip all panel animations ── */

@media (prefers-reduced-motion: reduce) {
	.lmd-scoped .lmd-panel--entering-fwd,
	.lmd-scoped .lmd-panel--entering-back,
	.lmd-scoped .lmd-panel--exiting-fwd,
	.lmd-scoped .lmd-panel--exiting-back {
		animation: none;
		opacity:   1;
		transform: none;
	}
	.lmd-scoped .lmd-scroll-hint {
		animation: none;
	}
}

/* ── Zero-state fallback ── */

.lmd-scoped .lmd-result__zero-state {
	text-align: center;
	font-size: 18px;
	color: var(--lmd-text);
	margin: 0 0 24px 0;
}

.lmd-scoped .lmd-result__zero-cta {
	display: block;
	max-width: 280px;
	margin: 0 auto 24px;
}

/* --------------------------------------------------------------------------
   Responsive — mobile (< 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.lmd-scoped .lmd-hero {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.lmd-scoped .lmd-hero-card {
		height: auto;
		padding: 28px;
	}

	.lmd-scoped .lmd-hero-price {
		font-size: 40px;
	}

	.lmd-scoped .lmd-hero-content {
		gap: 16px;
	}

	.lmd-scoped .lmd-alternatives-grid {
		grid-template-columns: 1fr;
	}
}

/* On small screens the wrapper padding drops to 0 and the card goes full-height,
   so the panel container can use nearly the full viewport height. */
@media (max-width: 600px) {
	.lmd-scoped .lmd-result--panels {
		height: calc(100vh - 52px);
		height: calc(100svh - 52px);
		min-height: 360px;
	}
}

/* ── Result modal overlay ─────────────────────────────────────────────────────
   Rendered via React portal onto document.body so it sits above all page content.
   ──────────────────────────────────────────────────────────────────────────── */

.lmd-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	animation: lmd-overlay-in 0.2s ease;
}

@keyframes lmd-overlay-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.lmd-modal {
	position: relative;
	width: 85vw;
	height: 85vh;
	max-width: 1200px;
	background: var(--lmd-card-bg, #fff);
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: lmd-modal-in 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes lmd-modal-in {
	from { opacity: 0; transform: scale(0.94) translateY(12px); }
	to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ResultScreen fills the modal height; panels use 100% of that instead of the
   viewport-relative calc used when the result is shown inline in the card. */
.lmd-modal .lmd-result {
	flex: 1;
	min-height: 0;
}

.lmd-modal .lmd-result--panels {
	height: 100%;
	min-height: 0;
	max-height: none;
}

.lmd-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 10;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.lmd-modal-close:hover {
	background: rgba(0, 0, 0, 0.16);
}

@media (max-width: 768px) {
	.lmd-modal {
		width: 95vw;
		height: 92vh;
		border-radius: 12px;
	}

	.lmd-scoped .lmd-panel__inner {
		padding: 24px 24px 100px;
	}
}

/* --------------------------------------------------------------------------
   Watermark — "Brought to you by Let’s Make Decisions"
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-watermark {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--lmd-border);
	opacity: 0.55;
	transition: opacity 0.2s ease;
	text-decoration: none;
}

.lmd-scoped .lmd-watermark:hover {
	opacity: 0.85;
}

.lmd-scoped .lmd-watermark__text {
	font-size: 13px;
	font-weight: 500;
	color: var(--lmd-muted);
	letter-spacing: 0.02em;
	white-space: nowrap;
	line-height: 1;
	margin-top: 17px;
	margin-right: -10px;
}

.lmd-scoped .lmd-watermark__logo {
	height: 34px;
	width: auto;
	display: block;
}

@media (max-width: 600px) {
	.lmd-scoped .lmd-watermark__logo {
		height: 28px;
	}
	.lmd-scoped .lmd-watermark__text {
		font-size: 12px;
		margin-top: 13px;
		margin-right: -8px;
	}
}


/* --------------------------------------------------------------------------
   Capture gate — the contact step shown before results
   -------------------------------------------------------------------------- */

.lmd-scoped .lmd-capture__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 20px;
}

.lmd-scoped .lmd-capture__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lmd-scoped .lmd-capture__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--lmd-text);
	letter-spacing: 0.01em;
}

.lmd-scoped .lmd-capture__req {
	color: var(--lmd-primary);
}

.lmd-scoped .lmd-capture__input {
	width: 100%;
	padding: 13px 16px;
	background: var(--lmd-card-bg);
	border: 1.5px solid var(--lmd-border);
	border-radius: 10px;
	color: var(--lmd-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
	transition: border-color 0.15s var(--lmd-ease);
}

.lmd-scoped .lmd-capture__input:focus {
	outline: none;
	border-color: var(--lmd-primary);
}

.lmd-scoped .lmd-capture__input--textarea {
	min-height: 84px;
	resize: vertical;
}

.lmd-scoped .lmd-capture__meeting {
	display: inline-block;
	padding: 12px 20px;
	background: transparent;
	border: 1.5px solid var(--lmd-primary);
	border-radius: var(--lmd-radius-btn);
	color: var(--lmd-primary);
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.lmd-scoped .lmd-capture__meeting:hover:not(:disabled) {
	background: var(--lmd-primary);
	color: #ffffff;
}

.lmd-scoped .lmd-capture__meeting:disabled {
	opacity: 0.6;
	cursor: default;
}

.lmd-scoped .lmd-capture__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--lmd-muted);
	cursor: pointer;
	margin-bottom: 4px;
}

.lmd-scoped .lmd-capture__consent input {
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: var(--lmd-primary);
}

.lmd-scoped .lmd-capture__error {
	color: #b91c1c;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 8px;
}
