/* Best Investors quiz — mobile-first, Wrapped-style immersive flow */

.bi-quiz-page {
	margin: 0;
	min-height: 100dvh;
	background: #070b14;
	color: #f8fafc;
	overflow-x: hidden;
}

.bi-quiz-page .site-footer,
.bi-quiz-page .bi-mobile-dock,
.bi-quiz-page .navbar {
	display: none !important;
}

/* Crawlable copy for SEO/AI; does not affect the Stories UI. */
.bi-quiz-seo {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#bi-quiz {
	position: relative;
	min-height: 100dvh;
	isolation: isolate;
}

#bi-quiz::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 80% 50% at 10% -10%, rgba(20, 184, 166, 0.28), transparent 55%),
		radial-gradient(ellipse 70% 45% at 100% 0%, rgba(59, 130, 246, 0.22), transparent 50%),
		radial-gradient(ellipse 60% 40% at 50% 110%, rgba(245, 158, 11, 0.14), transparent 55%),
		linear-gradient(165deg, #070b14 0%, #0f1729 48%, #0a1220 100%);
	pointer-events: none;
}

#bi-quiz::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
	pointer-events: none;
	mix-blend-mode: overlay;
}

.bi-quiz-chrome {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

/* Instagram Stories–style segment progress */
.bi-quiz-stories-bar {
	display: flex;
	gap: 3px;
	padding: 0.55rem 0.75rem 0;
	flex-shrink: 0;
}

.bi-quiz-seg {
	flex: 1;
	height: 2.5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.28);
	overflow: hidden;
}

.bi-quiz-seg i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: #fff;
	transform-origin: left center;
}

.bi-quiz-seg.is-done i {
	width: 100%;
}

.bi-quiz-seg.is-current i {
	width: 100%;
	animation: bi-quiz-seg-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bi-quiz-seg-in {
	from { width: 0; }
	to { width: 100%; }
}

.bi-quiz-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.35rem 0.55rem 0.15rem;
	min-height: 2.5rem;
}

.bi-quiz-exit,
.bi-quiz-back {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(248, 250, 252, 0.85);
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.bi-quiz-exit:hover,
.bi-quiz-back:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.bi-quiz-back[hidden] {
	visibility: hidden;
	pointer-events: none;
}

.bi-quiz-exit {
	margin-left: auto;
}

.bi-quiz-skip {
	appearance: none;
	background: transparent;
	border: 0;
	color: rgba(248, 250, 252, 0.65);
	font-family: 'DM Sans', sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	padding: 0.35rem 0.15rem;
}

.bi-quiz-skip:hover {
	color: #fff;
}

.bi-quiz-stage {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0.5rem 1.25rem 2rem;
	max-width: 28rem;
	width: 100%;
	margin: 0 auto;
}

.bi-quiz-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 0;
	transform: translate3d(28px, 0, 0);
	transition:
		opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.bi-quiz-panel.bi-quiz-enter-back {
	transform: translate3d(-28px, 0, 0);
}

.bi-quiz-panel.bi-quiz-enter-active,
.bi-quiz-panel.bi-quiz-no-anim {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.bi-quiz-panel.bi-quiz-no-anim {
	transition: none;
}

.bi-quiz-eyebrow {
	font-family: 'DM Sans', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #14b8a6;
	margin: 0 0 0.85rem;
}

.bi-quiz-title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: clamp(2rem, 7.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin: 0 0 0.75rem;
	color: #fff;
}

.bi-quiz-subtitle {
	font-family: 'DM Sans', sans-serif;
	font-size: 1.05rem;
	line-height: 1.45;
	color: rgba(248, 250, 252, 0.72);
	margin: 0 0 1.5rem;
}

.bi-quiz-why {
	font-family: 'DM Sans', sans-serif;
	font-size: 0.82rem;
	line-height: 1.4;
	color: rgba(248, 250, 252, 0.5);
	margin: 0 0 1.35rem;
	padding: 0.65rem 0.8rem;
	border-left: 2px solid rgba(20, 184, 166, 0.55);
	background: rgba(255, 255, 255, 0.03);
	border-radius: 0 10px 10px 0;
}

.bi-quiz-why span {
	display: block;
	font-weight: 600;
	color: rgba(20, 184, 166, 0.95);
	margin-bottom: 0.2rem;
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bi-quiz-choices {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.bi-quiz-choice {
	appearance: none;
	width: 100%;
	text-align: left;
	font-family: 'DM Sans', sans-serif;
	font-size: 1.02rem;
	font-weight: 500;
	color: #f8fafc;
	padding: 1rem 1.1rem;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		transform 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}

.bi-quiz-choice:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.22);
}

.bi-quiz-choice:active {
	transform: scale(0.985);
}

.bi-quiz-choice.is-selected {
	background: rgba(20, 184, 166, 0.18);
	border-color: rgba(20, 184, 166, 0.75);
	box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.35);
}

.bi-quiz-choice-label {
	display: block;
}

.bi-quiz-choice-hint {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.82rem;
	font-weight: 400;
	color: rgba(248, 250, 252, 0.55);
}

.bi-quiz-zip {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bi-quiz-zip-input {
	width: 100%;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.55rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 16px;
	padding: 1.05rem 1.15rem;
	outline: none;
	caret-color: #14b8a6;
}

.bi-quiz-zip-input::placeholder {
	color: rgba(248, 250, 252, 0.35);
}

.bi-quiz-zip-input:focus {
	border-color: rgba(20, 184, 166, 0.7);
	box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.bi-quiz-shake {
	animation: bi-quiz-shake 0.35s ease;
}

@keyframes bi-quiz-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-6px); }
	75% { transform: translateX(6px); }
}

.bi-quiz-actions,
.bi-quiz-welcome-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.bi-quiz-cta,
.bi-quiz-cta-link {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.05rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	color: #070b14;
	background: linear-gradient(135deg, #5eead4 0%, #14b8a6 45%, #f59e0b 130%);
	border: 0;
	border-radius: 999px;
	padding: 1rem 1.4rem;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.18s ease, transform 0.18s ease;
}

.bi-quiz-cta:hover,
.bi-quiz-cta-link:hover {
	filter: brightness(1.06);
	color: #070b14;
	text-decoration: none;
}

.bi-quiz-cta:active,
.bi-quiz-cta-link:active {
	transform: scale(0.98);
}

.bi-quiz-cta:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	filter: none;
}

.bi-quiz-fine {
	font-family: 'DM Sans', sans-serif;
	font-size: 0.78rem;
	line-height: 1.4;
	color: rgba(248, 250, 252, 0.45);
	text-align: center;
	margin: 0.35rem 0 0;
}

.bi-quiz-results {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bi-quiz-summary {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
}

.bi-quiz-summary li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.92rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bi-quiz-summary li:last-child {
	border-bottom: 0;
}

.bi-quiz-summary strong {
	font-weight: 600;
	color: rgba(248, 250, 252, 0.55);
}

.bi-quiz-summary span {
	text-align: right;
	color: #fff;
	font-weight: 500;
}

.bi-quiz-panel--welcome .bi-quiz-title {
	font-size: clamp(2.35rem, 9vw, 3.25rem);
}

@media (min-width: 768px) {
	.bi-quiz-stage {
		max-width: 32rem;
		padding-top: 1.5rem;
		padding-bottom: 3rem;
	}

	.bi-quiz-choice {
		font-size: 1.06rem;
		padding: 1.1rem 1.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bi-quiz-panel,
	.bi-quiz-choice,
	.bi-quiz-cta,
	.bi-quiz-seg.is-current i {
		transition: none !important;
		animation: none !important;
	}
}
