:root {
	--finn-cream: #fbf7f1;
	--finn-paper: #fffdf9;
	--finn-sage: #64715b;
	--finn-sage-dark: #43503d;
	--finn-copper: #a96f47;
	--finn-brown: #3d3028;
	--finn-border: rgba(100, 113, 91, 0.22);
	--finn-shadow: 0 18px 48px rgba(54, 42, 33, 0.18), 0 3px 10px rgba(54, 42, 33, 0.08);
}

.finn-guide,
.finn-guide * {
	box-sizing: border-box;
}

.finn-guide {
	position: fixed;
	right: max(22px, env(safe-area-inset-right));
	bottom: max(22px, env(safe-area-inset-bottom));
	z-index: 99980;
	font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--finn-brown);
}

.finn-guide__launcher {
	position: relative;
	display: grid;
	width: 70px;
	height: 70px;
	padding: 2px;
	place-items: center;
	border: 1px solid rgba(169, 111, 71, 0.3);
	border-radius: 50%;
	background: radial-gradient(circle at 42% 34%, #fffdf8 0 38%, #f1e3d4 100%);
	box-shadow: 0 10px 28px rgba(61, 48, 40, 0.2);
	cursor: pointer;
	animation: finn-arrive 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
	-webkit-tap-highlight-color: transparent;
}

.finn-guide__launcher:hover {
	transform: translateY(-2px) rotate(-1.5deg);
	border-color: rgba(169, 111, 71, 0.58);
	box-shadow: 0 13px 32px rgba(61, 48, 40, 0.24);
}

.finn-guide__launcher:focus-visible,
.finn-guide__close:focus-visible,
.finn-guide__choice:focus-visible,
.finn-guide__back:focus-visible,
.finn-guide__cta:focus-visible {
	outline: 3px solid rgba(169, 111, 71, 0.48);
	outline-offset: 3px;
}

.finn-guide__launcher img {
	display: block;
	width: 66px;
	height: 66px;
	object-fit: contain;
	transform: translateY(1px);
	transform-origin: center bottom;
	pointer-events: none;
	animation: finn-breathe 5.8s ease-in-out infinite;
}

.finn-guide__hint {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	width: max-content;
	max-width: 250px;
	padding: 9px 13px;
	border: 1px solid var(--finn-border);
	border-radius: 999px;
	background: rgba(255, 253, 249, 0.97);
	box-shadow: 0 8px 24px rgba(61, 48, 40, 0.12);
	color: var(--finn-sage-dark);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
	opacity: 0;
	pointer-events: none;
	transform: translate(6px, -50%);
	transition: opacity 160ms ease, transform 160ms ease;
}

.finn-guide__launcher:hover .finn-guide__hint,
.finn-guide__launcher:focus-visible .finn-guide__hint {
	opacity: 1;
	transform: translate(0, -50%);
}

.finn-guide__panel {
	position: absolute;
	right: 0;
	bottom: 86px;
	width: min(370px, calc(100vw - 32px));
	max-height: min(620px, calc(100vh - 116px));
	overflow: hidden auto;
	border: 1px solid var(--finn-border);
	border-radius: 24px;
	background:
		radial-gradient(circle at 98% 4%, rgba(169, 111, 71, 0.1), transparent 36%),
		linear-gradient(145deg, var(--finn-paper), var(--finn-cream));
	box-shadow: var(--finn-shadow);
	opacity: 0;
	transform: translateY(10px) scale(0.985);
	transform-origin: right bottom;
	transition: opacity 180ms ease, transform 180ms ease;
}

.finn-guide__panel[hidden] {
	display: none;
}

.finn-guide__panel.is-open {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.finn-guide__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 13px 18px;
	border-bottom: 1px solid var(--finn-border);
	background: rgba(255, 253, 249, 0.72);
	backdrop-filter: blur(8px);
}

.finn-guide__identity {
	display: flex;
	align-items: center;
	gap: 10px;
}

.finn-guide__identity img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.finn-guide__eyebrow {
	margin: 0 0 1px;
	color: var(--finn-sage);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.15em;
	line-height: 1.2;
	text-transform: uppercase;
}

.finn-guide__header h2 {
	margin: 0;
	color: var(--finn-brown);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
}

.finn-guide__close {
	display: grid;
	width: 38px;
	height: 38px;
	padding: 0 0 3px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--finn-sage-dark);
	font: 300 30px/1 Georgia, serif;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease;
}

.finn-guide__close:hover {
	background: rgba(100, 113, 91, 0.1);
	transform: rotate(3deg);
}

.finn-guide__body {
	padding: 20px;
}

.finn-guide__greeting,
.finn-guide__body h3 {
	margin: 0;
	color: var(--finn-brown);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 25px;
	font-weight: 500;
	line-height: 1.18;
}

.finn-guide__body h3 {
	font-size: 23px;
}

.finn-guide__intro {
	margin: 6px 0 17px;
	color: #5d5149;
	font-size: 14px;
	line-height: 1.55;
}

.finn-guide__choices {
	display: grid;
	gap: 9px;
}

.finn-guide__choice {
	display: grid;
	grid-template-columns: 26px 1fr auto;
	align-items: center;
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	gap: 9px;
	border: 1px solid var(--finn-border);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.74);
	color: var(--finn-sage-dark);
	font: 500 14px/1.35 "Raleway", system-ui, sans-serif;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.finn-guide__choice:hover {
	border-color: rgba(169, 111, 71, 0.44);
	background: #fffdfa;
	color: var(--finn-brown);
	transform: translateX(2px);
	text-decoration: none;
}

.finn-guide__choice-icon {
	display: grid;
	width: 25px;
	height: 25px;
	place-items: center;
	border-radius: 50%;
	background: rgba(169, 111, 71, 0.1);
	color: var(--finn-copper);
	font-family: Georgia, serif;
	font-size: 15px;
}

.finn-guide__choice-arrow {
	color: var(--finn-copper);
	font: 22px/1 Georgia, serif;
}

.finn-guide__back {
	margin: -4px 0 13px;
	padding: 5px 3px;
	border: 0;
	background: transparent;
	color: var(--finn-sage);
	font: 500 12px/1.3 "Raleway", system-ui, sans-serif;
	cursor: pointer;
}

.finn-guide__back:hover {
	color: var(--finn-copper);
}

.finn-guide__answer {
	margin: 12px 0 7px;
	padding: 14px 15px;
	border-left: 3px solid rgba(169, 111, 71, 0.5);
	border-radius: 0 12px 12px 0;
	background: rgba(255, 255, 255, 0.65);
	color: #51463f;
	font-size: 14px;
	line-height: 1.62;
}

.finn-guide__note {
	margin: 8px 0 15px;
	color: var(--finn-sage);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 17px;
	font-style: italic;
}

.finn-guide__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 43px;
	padding: 10px 16px;
	border: 1px solid var(--finn-sage-dark);
	border-radius: 999px;
	background: var(--finn-sage-dark);
	color: #fffdf9;
	font: 500 13px/1.3 "Raleway", system-ui, sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease;
}

.finn-guide__cta:hover {
	background: var(--finn-copper);
	border-color: var(--finn-copper);
	color: #fffdf9;
	transform: translateY(-1px);
	text-decoration: none;
}

@keyframes finn-arrive {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.94);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes finn-breathe {
	0%, 100% {
		transform: translateY(1px) rotate(0deg) scale(1);
	}
	50% {
		transform: translateY(-1px) rotate(0.4deg) scale(1.012);
	}
}

@media (max-width: 480px) {
	.finn-guide {
		right: max(12px, env(safe-area-inset-right));
		bottom: max(12px, env(safe-area-inset-bottom));
	}

	.finn-guide__launcher {
		width: 62px;
		height: 62px;
	}

	.finn-guide__launcher img {
		width: 58px;
		height: 58px;
	}

	.finn-guide__hint {
		display: none;
	}

	.finn-guide__panel {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: max(86px, calc(74px + env(safe-area-inset-bottom)));
		width: auto;
		max-height: calc(100dvh - 106px - env(safe-area-inset-bottom));
		border-radius: 20px;
	}

	.finn-guide__body {
		padding: 18px;
	}

	.finn-guide__choice {
		min-height: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.finn-guide__launcher,
	.finn-guide__panel,
	.finn-guide__choice,
	.finn-guide__close,
	.finn-guide__cta,
	.finn-guide__hint {
		animation: none !important;
		transition: none !important;
	}
}
