* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body.tour {
	background: var(--color-neutral-900, #111);
	color: var(--color-neutral-50, #fff);
	font-family: var(--font-family-ui), system-ui, sans-serif;
	overflow: hidden;
}

.tour-stage {
	position: fixed;
	inset: 0;
}

.tour-step {
	position: absolute;
	inset: 0;
	display: none;
}

.tour-step.active {
	display: block;
	animation: tour-fade 0.35s ease;
}

.tour-screen.active {
	animation: tour-fade 0.35s ease;
}

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

.tour-frame {
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
	display: block;
}

.tour-caption {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: 80px;
	padding: 8px 16px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	border-radius: 999px;
	font-size: 14px;
	letter-spacing: 0.01em;
	transition: opacity 0.3s ease;
}

body.tour-idle { cursor: none; }

body.tour-idle .tour-controls,
body.tour-idle .tour-caption {
	opacity: 0;
	pointer-events: none;
}

body.tour-idle .tour-edge {
	opacity: 0 !important;
	pointer-events: none;
}

.tour-screen {
	background: var(--color-surface, var(--color-neutral-50, #fff));
	color: var(--color-neutral-900, #111);
}

.tour-screen.active {
	display: block;
	overflow-y: auto;
}

.tour-screen-inner {
	max-width: 52rem;
	margin: 0 auto;
	padding: 13vh 40px 15vh;
	text-align: left;
}

.tour-heading {
	margin: 0;
	text-align: center;
	font-size: clamp(1.9rem, 5vw, 3rem);
	line-height: 1.14;
	letter-spacing: -0.01em;
}

.tour-flourish {
	width: 3rem;
	height: 3px;
	margin: 1.5rem auto 2.25rem;
	border-radius: 2px;
	background: var(--color-action, #2d5bd1);
}

.tour-body {
	margin: 0 0 1.15rem;
	font-size: clamp(1.02rem, 1.5vw, 1.2rem);
	line-height: 1.7;
	opacity: 0.92;
}

.tour-screen:not(.tour-screen-brief) .tour-body:first-of-type::first-letter {
	font-size: 1.5em;
	font-weight: 600;
	line-height: 1;
}

.tour-body:last-child {
	margin-bottom: 0;
}

.tour-screen-brief.active {
	display: grid;
	place-items: center;
	overflow-y: auto;
}

.tour-screen-brief .tour-screen-inner {
	max-width: 46rem;
	padding: 24px 40px;
	text-align: center;
}

.tour-screen-brief .tour-heading {
	font-size: clamp(2.4rem, 6.5vw, 4rem);
}

.tour-screen-brief .tour-body {
	font-size: clamp(1.3rem, 3vw, 1.9rem);
	line-height: 1.5;
	opacity: 0.95;
}

.tour-edge {
	position: fixed;
	top: 0;
	bottom: 0;
	width: clamp(56px, 8vw, 110px);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 44px;
	line-height: 1;
	cursor: pointer;
	z-index: 9;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.tour-edge-prev {
	left: 0;
	justify-content: flex-start;
	padding-left: 14px;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.28), transparent);
}

.tour-edge-next {
	right: 0;
	justify-content: flex-end;
	padding-right: 14px;
	background: linear-gradient(to left, rgba(0, 0, 0, 0.28), transparent);
}

body.tour:hover .tour-edge { opacity: 0.65; }
.tour-edge:hover { opacity: 1; }
.tour-edge:disabled { opacity: 0; pointer-events: none; }

.tour-controls {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 14px;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(8px);
	border-radius: 999px;
	z-index: 10;
	transition: opacity 0.3s ease;
}

.tour-arrow {
	appearance: none;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	padding: 6px 10px;
	cursor: pointer;
	border-radius: 999px;
}

.tour-arrow:hover { background: rgba(255, 255, 255, 0.16); }
.tour-arrow:disabled { opacity: 0.3; cursor: default; }

.tour-dots {
	display: flex;
	gap: 8px;
}

.tour-dot {
	appearance: none;
	border: 0;
	width: 9px;
	height: 9px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
}

.tour-dot.active { background: #fff; }
