/* Live Flutter Web product tour (clinic tablet / patient phone) with floating step overlay. */

.rp-product-tour-section {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.rp-product-tour__header {
	max-width: 44rem;
	margin-inline: auto;
	text-align: center;
}

/* ---------- Homepage teaser stage ---------- */
.rp-tour-teaser {
	position: relative;
	max-width: 66rem;
	margin: 2rem auto 0;
	min-height: 22rem;
	border-radius: 1.5rem;
	overflow: hidden;
	border: 1px solid var(--rp-border, #c9d4e0);
	background:
		radial-gradient(ellipse at 25% 15%, rgba(26, 75, 122, 0.1), transparent 55%),
		linear-gradient(165deg, var(--rp-bg-app, #f5f9fd) 0%, var(--rp-bg-wash, #e8eef4) 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 22px 50px rgba(10, 18, 32, 0.08);
	display: grid;
	place-items: center;
	padding: 2rem 1.25rem;
}

.rp-tour-teaser__stage {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.rp-tour-teaser__devices {
	position: absolute;
	inset: 1.5rem 2rem -4rem;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 1.5rem;
	opacity: 0.72;
	filter: saturate(0.95);
}

.rp-tour-teaser__tablet {
	width: min(56%, 29rem);
	height: auto;
	transform: translateY(0.5rem);
	filter: drop-shadow(0 18px 34px rgba(10, 18, 32, 0.16));
}

.rp-tour-teaser__phone {
	width: min(24%, 12.5rem);
	height: auto;
	transform: translateY(2.2rem);
	filter: drop-shadow(0 18px 34px rgba(10, 18, 32, 0.18));
}

.rp-tour-teaser__veil {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% 50%, rgba(245, 249, 253, 0.86) 0%, rgba(235, 242, 249, 0.74) 48%, rgba(232, 238, 244, 0.56) 100%);
	backdrop-filter: blur(3px);
}

.rp-tour-teaser__card {
	position: relative;
	z-index: 1;
	width: auto;
	max-width: min(100%, 32rem);
	padding: 1.05rem 1.25rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.95);
	box-shadow:
		0 20px 48px rgba(10, 18, 32, 0.14),
		0 2px 6px rgba(10, 18, 32, 0.05);
	text-align: center;
}

.rp-tour-teaser__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
}

.rp-tour-teaser__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 46px;
	min-width: 11.25rem;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rp-tour-teaser__icon {
	flex: 0 0 auto;
}

.rp-tour-teaser__btn--clinic {
	background: var(--rp-brand, #1a4b7a);
	color: #ffffff;
	box-shadow: 0 8px 20px rgba(26, 75, 122, 0.24);
}

.rp-tour-teaser__btn--clinic:hover,
.rp-tour-teaser__btn--clinic:focus-visible {
	background: #143b61;
	transform: translateY(-1px);
}

.rp-tour-teaser__btn--patient {
	background: #ffffff;
	color: var(--rp-ink, #0a1220);
	border-color: var(--rp-border, #c9d4e0);
	box-shadow: 0 4px 12px rgba(10, 18, 32, 0.05);
}

.rp-tour-teaser__btn--patient:hover,
.rp-tour-teaser__btn--patient:focus-visible {
	background: var(--rp-bg-app, #f5f9fd);
	border-color: var(--rp-brand, #1a4b7a);
	transform: translateY(-1px);
}

.rp-tour-teaser__btn:focus-visible {
	outline: 3px solid var(--rp-brand, #1a4b7a);
	outline-offset: 2px;
}

/* ---------- Modal shell ---------- */
html.rp-tour-lock {
	overflow: hidden;
}

.rp-tour-modal[hidden] {
	display: none !important;
}

/* Pre-warm offscreen with real tablet dimensions before the user opens the modal,
   so CanvasKit renders at full size without painting on screen or costing LCP/CLS. */
.rp-tour-modal.is-warming[hidden] {
	display: grid !important;
	visibility: hidden !important;
	pointer-events: none !important;
	opacity: 0 !important;
	left: -9999px !important;
	right: auto !important;
	width: 1280px !important;
	height: 860px !important;
	contain: strict;
}

.rp-tour-modal {
	position: fixed;
	inset: 0;
	z-index: 10040;
	display: grid;
	place-items: center;
	padding: clamp(0.45rem, 1.2vw, 1rem);
}

.rp-tour-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 18, 32, 0.72);
	backdrop-filter: blur(6px);
}

.rp-tour-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(100%, 1440px);
	height: min(95dvh, 930px);
	max-height: calc(100dvh - 0.9rem);
	border-radius: 1.35rem;
	background: var(--rp-bg-app, #f5f9fd);
	border: 1px solid rgba(255, 255, 255, 0.78);
	box-shadow:
		0 32px 90px rgba(6, 12, 24, 0.44),
		0 2px 8px rgba(6, 12, 24, 0.16);
	overflow: hidden;
}

/* ---------- Compact Topbar ---------- */
.rp-tour-modal__topbar {
	display: flex;
	align-items: center;
	gap: 0.65rem 0.9rem;
	padding: 0.5rem 0.95rem;
	background: #ffffff;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	flex: 0 0 auto;
}

.rp-tour-modal__title {
	margin: 0;
	font-family: var(--rp-font-display, inherit);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--rp-ink, #0a1220);
	white-space: nowrap;
}

.rp-tour-modal__switch {
	display: inline-flex;
	padding: 0.2rem;
	border-radius: 999px;
	background: var(--rp-bg-wash, #e8eef4);
	border: 1px solid rgba(15, 23, 42, 0.06);
	gap: 0.12rem;
	flex: 0 0 auto;
}

.rp-tour-modal__steps {
	margin-inline: auto;
	display: flex;
	align-items: center;
}

.rp-tour-dots[hidden] {
	display: none !important;
}

.rp-tour-dots {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.rp-tour-dot {
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #ffffff;
	color: #334155;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	display: inline-grid;
	place-items: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rp-tour-dot:hover {
	background: var(--rp-bg-app, #f5f9fd);
	border-color: rgba(26, 75, 122, 0.35);
}

.rp-tour-dot.is-active,
.rp-tour-dot[aria-pressed="true"] {
	background: var(--rp-brand, #1a4b7a);
	border-color: var(--rp-brand, #1a4b7a);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(26, 75, 122, 0.26);
}

.rp-tour-modal__tools {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-left: auto;
	flex: 0 0 auto;
}

.rp-tour-modal__persona,
.rp-tour-modal__reset,
.rp-tour-modal__close {
	min-height: 44px;
	border: 0;
	font: inherit;
	cursor: pointer;
}

.rp-tour-modal__persona {
	min-width: 5.5rem;
	padding: 0.38rem 0.9rem;
	border-radius: 999px;
	background: transparent;
	color: #334155;
	font-size: 0.88rem;
	font-weight: 700;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rp-tour-modal__persona.is-active,
.rp-tour-modal__persona[aria-pressed="true"] {
	background: var(--rp-brand, #1a4b7a);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(26, 75, 122, 0.28);
}

.rp-tour-modal__persona:focus-visible,
.rp-tour-modal__reset:focus-visible,
.rp-tour-modal__close:focus-visible,
.rp-tour-dot:focus-visible,
.rp-tour-callout__min:focus-visible,
.rp-tour-callout__prev:focus-visible,
.rp-tour-callout__next:focus-visible,
.rp-tour-callout__pill-main:focus-visible,
.rp-tour-callout__pill-nav:focus-visible,
.rp-tour-callout__demo-inline:focus-visible,
.rp-tour-float-cta:focus-visible {
	outline: 3px solid var(--rp-brand, #1a4b7a);
	outline-offset: 2px;
}

.rp-tour-modal__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 44px;
	padding: 0.38rem 0.8rem;
	border-radius: 999px;
	background: var(--rp-bg-app, #f5f9fd);
	border: 1px solid var(--rp-border, #c9d4e0);
	color: var(--rp-ink, #0a1220);
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
}

.rp-tour-modal__reset:hover {
	background: var(--rp-bg-wash, #e8eef4);
}

.rp-tour-modal__close {
	width: 44px;
	padding: 0;
	border-radius: 999px;
	display: inline-grid;
	place-items: center;
	background: var(--rp-bg-app, #f5f9fd);
	color: var(--rp-ink, #0a1220);
}

.rp-tour-modal__close:hover {
	background: var(--rp-bg-wash, #e8eef4);
}

/* ---------- Full-bleed stage (100% width & height, no sidebar) ---------- */
.rp-tour-modal__body {
	flex: 1 1 auto;
	display: flex;
	min-height: 0;
	padding: 0.65rem;
}

.rp-tour-modal__stage {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(0.35rem, 0.9vw, 0.75rem);
	border-radius: 1.05rem;
	background:
		radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.85), transparent 45%),
		linear-gradient(160deg, #e8eef5 0%, #dbe4ef 100%);
	border: 1px solid rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.rp-tour-live {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
}

/* Match RehabPilot .rp-device__bezel silver hardware rim */
.rp-tour-live__bezel {
	--rp-tour-frame: 10px;
	--rp-tour-chin: 2.5px;
	--rp-tour-r: 22px;
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 1180px;
	max-height: 820px;
	padding: var(--rp-tour-frame);
	border-radius: var(--rp-tour-r);
	background: linear-gradient(
		155deg,
		#f8f9fb 0%,
		#e4e7ec 20%,
		#c5c9d1 45%,
		#d9dce3 70%,
		#a8adb8 100%
	);
	border: 1px solid rgba(255, 255, 255, 0.78);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.92),
		inset 0 -1px 1px rgba(55, 65, 81, 0.22),
		0 20px 50px rgba(15, 23, 42, 0.22),
		0 4px 12px rgba(15, 23, 42, 0.1);
}

.rp-tour-live__bezel::before {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
	inset: calc(var(--rp-tour-frame) - var(--rp-tour-chin));
	border-radius: calc(var(--rp-tour-r) - var(--rp-tour-frame) + var(--rp-tour-chin));
	background: #0b0d12;
}

/* Phone hardware proportions on desktop/tablet — sized from modal height */
.rp-tour-live[data-device="phone"] .rp-tour-live__bezel {
	--rp-tour-frame: 8px;
	--rp-tour-chin: 2px;
	--rp-tour-r: 30px;
	width: auto;
	height: 100%;
	max-height: 820px;
	aspect-ratio: 390 / 812;
	max-width: min(100%, 405px);
}

.rp-tour-live__screen {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: calc(var(--rp-tour-r) - var(--rp-tour-frame));
	background: #f5f9fd;
}

.rp-tour-live__loading {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	padding: 1rem;
	text-align: center;
	color: var(--rp-ink, #0a1220);
	font-size: 0.95rem;
	font-weight: 600;
	background: linear-gradient(180deg, #f5f9fd 0%, #ebf2f9 100%);
}

.rp-tour-live.is-ready .rp-tour-live__loading {
	display: none;
}

.rp-tour-live__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #f5f9fd;
}

.rp-tour-live__frame[hidden] {
	visibility: hidden;
}

/* ---------- Floating guided step callout overlay ---------- */
/* Base / Mobile / Tablet (< 960px): always fixed at the exact same spot, never shifting */
.rp-tour-callout {
	position: absolute;
	z-index: 6;
	bottom: 4.5rem;
	right: 1.35rem;
	left: auto;
	top: auto;
	width: min(21rem, calc(100% - 2.5rem));
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.22s ease, top 0.22s ease, bottom 0.22s ease, left 0.22s ease, right 0.22s ease;
}

/* Desktop (>= 960px) ONLY: device (tablet / phone) stays 100% stationary in the exact center of the stage;
   only the explanation bubble moves to unobstructed spots per step! */
@media (min-width: 960px) {
	/* Fixed centered landscape tablet (840px wide) so standard desktop stages have ~270px symmetric
	   left & right gutters and the tablet NEVER shifts by a single pixel between steps! */
	.rp-tour-live[data-device="tablet"] .rp-tour-live__bezel {
		max-width: min(100%, 840px);
	}

	/* Clinic 1-4: stationary centered tablet leaves symmetric left & right stage gutters.
	   Alternate Left -> Right -> Left -> Right completely outside the tablet bezel! */
	.rp-tour-callout:not(.is-minimized)[data-persona="clinic"] {
		width: min(15.25rem, calc(50% - 27.5rem));
		min-width: 13.75rem;
		transform: none;
	}

	/* Clinic 1/4 (Roster): upper-left stage gutter pointing right at Anna Mueller & Search */
	.rp-tour-callout:not(.is-minimized)[data-step="clinic_roster"] {
		top: 15%;
		bottom: auto;
		right: auto;
		left: 0.65rem;
	}

	/* Clinic 2/4 (Library): upper-right stage gutter pointing left at Exercise form & Library */
	.rp-tour-callout:not(.is-minimized)[data-step="clinic_library"] {
		top: 20%;
		bottom: auto;
		left: auto;
		right: 0.65rem;
	}

	/* Clinic 3/4 (Plans): mid-left stage gutter pointing right at Therapy Plans & Week */
	.rp-tour-callout:not(.is-minimized)[data-step="clinic_plan"] {
		top: 34%;
		bottom: auto;
		right: auto;
		left: 0.65rem;
	}

	/* Clinic 4/4 (Adherence & Info): mid-right stage gutter pointing left at 11/14 Progress & Austausch */
	.rp-tour-callout:not(.is-minimized)[data-step="clinic_adherence"] {
		top: 38%;
		bottom: auto;
		left: auto;
		right: 0.65rem;
	}

	/* Patient 1-4: centered phone stays fixed in the middle; bubble alternates Left -> Right -> Left -> Right
	   in the wide stage gutters completely outside the phone bezel! */
	.rp-tour-callout:not(.is-minimized)[data-persona="patient"] {
		width: min(20.5rem, calc(50% - 14.5rem));
		min-width: 15.5rem;
		transform: none;
	}

	/* Patient 1/4 (Today): upper-left gutter pointing right at Today plan cards */
	.rp-tour-callout:not(.is-minimized)[data-step="patient_today"] {
		top: 15%;
		bottom: auto;
		left: auto;
		right: calc(50% + 13.75rem);
	}

	/* Patient 2/4 (Workout Player): mid-right gutter pointing left at video/chips & set check-off */
	.rp-tour-callout:not(.is-minimized)[data-step="patient_workout"] {
		top: 38%;
		bottom: auto;
		right: auto;
		left: calc(50% + 13.75rem);
	}

	/* Patient 3/4 (Calendar & Notes): mid-left gutter pointing right at training calendar & notes */
	.rp-tour-callout:not(.is-minimized)[data-step="patient_progress"] {
		top: 34%;
		bottom: auto;
		left: auto;
		right: calc(50% + 13.75rem);
	}

	/* Patient 4/4 (Messages): upper-right gutter pointing left at Julia Schmidt's chat reply */
	.rp-tour-callout:not(.is-minimized)[data-step="patient_messages"] {
		top: 17%;
		bottom: auto;
		right: auto;
		left: calc(50% + 13.75rem);
	}
}

.rp-tour-callout__beacon {
	position: absolute;
	top: 1.35rem;
	left: -0.95rem;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: var(--rp-brand, #1a4b7a);
	box-shadow: 0 0 0 5px rgba(26, 75, 122, 0.22);
	animation: rpTourBeaconPulse 2.2s ease-out infinite;
}

.rp-tour-callout[data-anchor="right"] .rp-tour-callout__beacon {
	left: auto;
	right: -0.95rem;
}

.rp-tour-callout[data-anchor="left"] .rp-tour-callout__beacon {
	right: auto;
	left: -0.95rem;
}

.rp-tour-callout[data-anchor="bottom"] .rp-tour-callout__beacon {
	top: auto;
	bottom: -0.95rem;
	left: calc(50% - 7px);
	right: auto;
}

.rp-tour-callout[data-anchor="top"] .rp-tour-callout__beacon {
	bottom: auto;
	top: -0.95rem;
	left: calc(50% - 7px);
	right: auto;
}

.rp-tour-callout.is-minimized .rp-tour-callout__beacon {
	display: none;
}

@keyframes rpTourBeaconPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(26, 75, 122, 0.42);
	}
	70% {
		box-shadow: 0 0 0 11px rgba(26, 75, 122, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(26, 75, 122, 0);
	}
}

.rp-tour-callout__card[hidden],
.rp-tour-callout__pill[hidden],
.rp-tour-callout__pill-nav[hidden],
.rp-tour-callout__prev[hidden] {
	display: none !important;
}

.rp-tour-callout__card {
	pointer-events: auto;
	position: relative;
	padding: 0.9rem 1rem 0.95rem;
	border-radius: 1.05rem;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(26, 75, 122, 0.24);
	box-shadow:
		0 20px 48px rgba(10, 18, 32, 0.24),
		0 2px 8px rgba(10, 18, 32, 0.08);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.rp-tour-callout__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.rp-tour-callout__counter {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	background: var(--rp-brand, #1a4b7a);
	color: #ffffff;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.rp-tour-callout__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.94rem;
	font-weight: 700;
	line-height: 1.28;
	color: var(--rp-ink, #0a1220);
}

.rp-tour-callout__min {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin: -0.35rem -0.45rem -0.35rem 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #475569;
	display: inline-grid;
	place-items: center;
	cursor: pointer;
}

.rp-tour-callout__min:hover {
	background: var(--rp-bg-wash, #e8eef4);
	color: var(--rp-ink, #0a1220);
}

.rp-tour-callout__min:active {
	background: rgba(15, 23, 42, 0.1);
}

.rp-tour-callout__body {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.44;
	color: #334155;
}

.rp-tour-callout__tip {
	margin: 0;
	padding: 0.4rem 0.6rem;
	border-radius: 0.55rem;
	background: var(--rp-accent-subtle, #edf2f8);
	color: var(--rp-brand, #1a4b7a);
	font-size: 0.79rem;
	font-weight: 700;
	line-height: 1.35;
}

.rp-tour-callout__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	margin-top: 0.2rem;
}

.rp-tour-callout__prev,
.rp-tour-callout__next {
	min-height: 44px;
	padding: 0.42rem 0.9rem;
	border-radius: 999px;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

.rp-tour-callout__prev {
	margin-right: auto;
	border: 1px solid var(--rp-border, #c9d4e0);
	background: #ffffff;
	color: var(--rp-ink, #0a1220);
}

.rp-tour-callout__prev:hover {
	background: var(--rp-bg-app, #f5f9fd);
}

.rp-tour-callout__prev:active {
	background: var(--rp-bg-wash, #e8eef4);
}

.rp-tour-callout__next {
	border: 0;
	background: var(--rp-brand, #1a4b7a);
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(26, 75, 122, 0.24);
}

.rp-tour-callout__next:hover {
	background: #143b61;
}

.rp-tour-callout__next:active {
	background: #0f2e4c;
}

.rp-tour-callout__demo-inline {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 0.1rem;
	padding: 0.3rem 0.5rem;
	color: var(--rp-brand, #1a4b7a);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rp-tour-callout__demo-inline:active {
	color: #0f2e4c;
}

/* Minimized compact pill bar: ultra-subtle glass capsule with Title + Prev/Next + Info expand */
.rp-tour-callout__pill {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	max-width: 100%;
	min-height: 44px;
	padding: 0.18rem;
	border-radius: 999px;
	border: 1px solid rgba(26, 75, 122, 0.2);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(12px);
	color: var(--rp-ink, #0a1220);
	box-shadow:
		0 14px 34px rgba(10, 18, 32, 0.2),
		0 2px 6px rgba(10, 18, 32, 0.08);
}

.rp-tour-callout__pill-main {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	margin: -0.18rem 0;
	padding: 0.25rem 0.6rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--rp-ink, #0a1220);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	cursor: pointer;
	text-align: left;
}

.rp-tour-callout__pill-main:hover {
	background: rgba(26, 75, 122, 0.06);
}

.rp-tour-callout__pill-main:active {
	background: rgba(26, 75, 122, 0.12);
}

.rp-tour-callout__pill-main svg {
	flex: 0 0 auto;
	color: var(--rp-brand, #1a4b7a);
	opacity: 0.88;
}

.rp-tour-callout__pill-badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.16rem 0.5rem;
	border-radius: 999px;
	background: var(--rp-brand, #1a4b7a);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.rp-tour-callout__pill-title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rp-tour-callout__pill-nav {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin: -0.18rem 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--rp-ink, #0a1220);
	display: inline-grid;
	place-items: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.rp-tour-callout__pill-nav:hover {
	background: var(--rp-bg-wash, #e8eef4);
}

.rp-tour-callout__pill-nav:active {
	background: rgba(26, 75, 122, 0.16);
}

.rp-tour-callout__pill-nav--next {
	background: var(--rp-brand, #1a4b7a);
	color: #ffffff;
	width: 38px;
	height: 38px;
	margin: 0 0.1rem 0 0.15rem;
}

/* Keep >= 44x44px hit area on the next chevron button */
.rp-tour-callout__pill-nav--next {
	position: relative;
}

.rp-tour-callout__pill-nav--next::after {
	content: "";
	position: absolute;
	inset: -4px;
}

.rp-tour-callout__pill-nav--next:hover {
	background: #143b61;
	color: #ffffff;
}

.rp-tour-callout__pill-nav--next:active {
	background: #0f2e4c;
}

.rp-tour-callout.is-minimized {
	width: auto;
	max-width: min(22rem, calc(100% - 2.5rem));
	bottom: 4.5rem;
	right: 1.25rem;
	left: auto;
	top: auto;
	transform: none;
}

/* ---------- Floating bottom-right conversion CTA (like reference tour) ---------- */
.rp-tour-float-cta {
	position: absolute;
	z-index: 5;
	right: 1.25rem;
	bottom: 1.05rem;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.52rem 1.05rem;
	border-radius: 999px;
	background: var(--rp-ink, #0a1220);
	color: #ffffff;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 12px 28px rgba(10, 18, 32, 0.28);
	transition: transform 0.15s ease, background 0.15s ease;
}

.rp-tour-float-cta:hover {
	background: var(--rp-brand, #1a4b7a);
	color: #ffffff;
	transform: translateY(-1px);
}

.rp-tour-float-cta:active {
	background: #0f2e4c;
	transform: none;
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 960px) {
	.rp-tour-modal__title {
		display: none;
	}

	.rp-tour-modal__reset-label {
		display: none;
	}

	.rp-tour-modal__reset {
		padding: 0;
		width: 44px;
	}
}

/* ---------- Responsive: Mobile (full-screen native-sized live app + compact floating overlay) ---------- */
@media (max-width: 680px) {
	.rp-tour-modal {
		padding: 0;
	}

	.rp-tour-modal__dialog {
		width: 100%;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
		border: 0;
	}

	.rp-tour-modal__topbar {
		flex-wrap: nowrap;
		gap: 0.25rem;
		padding: 0.35rem 0.45rem;
	}

	.rp-tour-modal__persona {
		min-width: 0;
		padding: 0.35rem 0.65rem;
		font-size: 0.8rem;
	}

	/* Hide redundant 1-4 topbar numbers on mobile so the header stays clean (Praxis|Patient + Reset + X) */
	.rp-tour-modal__steps {
		display: none;
	}

	.rp-tour-modal__tools {
		gap: 0.25rem;
	}

	/* Zero outer padding & zero heavy bezel on mobile so the Flutter app fills 100% of the screen! */
	.rp-tour-modal__body {
		padding: 0;
	}

	.rp-tour-modal__stage {
		padding: 0;
		border-radius: 0;
		border: 0;
		background: #f5f9fd;
	}

	.rp-tour-live__bezel,
	.rp-tour-live[data-device="phone"] .rp-tour-live__bezel {
		--rp-tour-frame: 0px;
		--rp-tour-chin: 0px;
		--rp-tour-r: 0px;
		width: 100%;
		height: 100%;
		max-width: none;
		max-height: none;
		aspect-ratio: auto;
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.rp-tour-live__bezel::before {
		display: none;
	}

	.rp-tour-live__screen {
		border-radius: 0;
	}

	/* Hide separate desktop bottom-right CTA pill on mobile; keep link inside expandable card */
	.rp-tour-float-cta {
		display: none;
	}

	.rp-tour-callout__demo-inline {
		display: inline-flex;
	}

	.rp-tour-callout {
		left: 0.6rem;
		right: 0.6rem;
		bottom: 4.5rem;
		top: auto;
		width: auto;
		transform: none;
	}

	.rp-tour-callout__beacon {
		display: none;
	}

	.rp-tour-callout__card {
		padding: 0.68rem 0.82rem 0.7rem;
		gap: 0.3rem;
		border-radius: 0.95rem;
	}

	.rp-tour-callout__title {
		font-size: 0.88rem;
	}

	.rp-tour-callout__body {
		font-size: 0.8rem;
		line-height: 1.38;
	}

	.rp-tour-callout__tip {
		display: none;
	}

	.rp-tour-callout.is-minimized {
		left: 0.65rem;
		right: 0.65rem;
		bottom: 4.5rem;
		max-width: none;
		display: flex;
		justify-content: center;
	}

	.rp-tour-callout__pill {
		width: min(100%, 23rem);
	}

	.rp-tour-teaser__card {
		width: min(100%, 22rem);
		border-radius: 1.25rem;
	}

	.rp-tour-teaser__btn {
		width: 100%;
	}

	.rp-tour-teaser__phone {
		display: none;
	}

	.rp-tour-teaser__tablet {
		width: 88%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rp-tour-teaser__btn,
	.rp-tour-dot,
	.rp-tour-modal__persona,
	.rp-tour-callout,
	.rp-tour-float-cta {
		transition: none;
	}

	.rp-tour-callout__beacon {
		animation: none;
	}
}
