Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

11.0 KB
Raw Blame
/* first-meet.css — scoped under .first-meet-root and .fm-* */

.first-meet-root {
	position: fixed;
	inset: 0;
	z-index: 9900;
	pointer-events: none;
	font-family: system-ui, sans-serif;
}

/* ── Fade overlay ─────────────────────────────────────────────────────────── */

.fm-fade-overlay {
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 1;
	transition: opacity var(--duration-slow) var(--ease-standard);
}

.fm-fade-overlay.fm-faded {
	opacity: 0;
}

/* ── Subtitle ─────────────────────────────────────────────────────────────── */

.fm-subtitle {
	position: absolute;
	bottom: 30%;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: clamp(18px, 3vw, 26px);
	font-weight: 500;
	letter-spacing: 0.01em;
	padding: 10px 24px;
	border-radius: 8px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity var(--duration-slow) var(--ease-standard);
	backdrop-filter: blur(4px);
}

.fm-subtitle.fm-visible {
	opacity: 1;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.fm-actions {
	position: absolute;
	bottom: 18%;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	opacity: 0;
	transition: opacity var(--duration-slow) var(--ease-standard);
	pointer-events: none;
}

.fm-actions.fm-visible {
	opacity: 1;
	pointer-events: auto;
}

.fm-btn {
	padding: 11px 28px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition:
		background var(--duration-fast),
		transform var(--duration-instant);
}

.fm-btn:active {
	transform: scale(0.96);
}

.fm-btn-share {
	background: #fff;
	color: #111;
}

.fm-btn-share:hover {
	background: var(--ink);
}

.fm-btn-continue {
	background: #3d7eff;
	color: #fff;
}

.fm-btn-continue:hover {
	background: #2d6fee;
}

/* ── Confetti ─────────────────────────────────────────────────────────────── */

.fm-confetti-piece {
	position: absolute;
	top: -20px;
	border-radius: 2px;
	pointer-events: none;
	animation: fm-fall linear forwards;
}

@keyframes fm-fall {
	0% {
		transform: translateY(0) rotate(0deg);
		opacity: 1;
	}
	70% {
		opacity: 1;
	}
	100% {
		transform: translateY(110vh) rotate(720deg);
		opacity: 0;
	}
}

/* ── Screen-reader live region ────────────────────────────────────────────── */

.fm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	pointer-events: none;
}

/* ── Coach-mark spotlight ─────────────────────────────────────────────────── */

/*
 * A fixed div anchored to the target's bounding rect; the massive box-shadow
 * dims everything else without needing to fight stacking contexts on the target.
 */
.fm-spotlight {
	position: fixed;
	border-radius: 16px;
	pointer-events: none;
	z-index: 9820;
	opacity: 0;
	transition:
		opacity var(--duration-base) var(--ease-standard),
		top var(--duration-base) var(--ease-standard),
		left var(--duration-base) var(--ease-standard),
		width var(--duration-base) var(--ease-standard),
		height var(--duration-base) var(--ease-standard);
}

.fm-spotlight.fm-spotlight-on {
	opacity: 1;
	box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
}

/* ── Tour bubble ──────────────────────────────────────────────────────────── */

.fm-tour-bubble {
	position: fixed;
	z-index: 9825;
	width: 300px;
	background: #111111;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	padding: 18px 20px 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
	color: var(--ink);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 13px;
	line-height: 1.55;
	animation: fm-bubble-in 0.18s ease both;
}

@keyframes fm-bubble-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.fm-tour-meta {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 7px;
}

.fm-tour-title {
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 7px;
	line-height: 1.3;
}

.fm-tour-body {
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
}

.fm-tour-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fm-tour-ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.5);
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
	transition: background var(--duration-fast), color var(--duration-fast);
	line-height: 1;
}

.fm-tour-ghost:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--ink);
}

.fm-tour-ghost:focus-visible {
	outline: 2px solid #3d7eff;
	outline-offset: 2px;
}

.fm-tour-skip {
	margin-right: auto;
}

.fm-tour-primary {
	background: #ffffff;
	color: var(--on-bright);
	border: none;
	border-radius: 8px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	line-height: 1;
	transition: background var(--duration-fast), transform var(--duration-instant);
}

.fm-tour-primary:hover {
	background: #e0e0e0;
}

.fm-tour-primary:active {
	transform: scale(0.97);
}

.fm-tour-primary:focus-visible {
	outline: 2px solid #3d7eff;
	outline-offset: 2px;
}

/* ── Next-steps checklist panel ───────────────────────────────────────────── */

.fm-checklist-panel {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9810;
	width: 284px;
	background: #111111;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 13px;
	color: var(--ink);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}

.fm-checklist-panel.fm-cl-visible {
	opacity: 1;
	transform: translateY(0);
}

.fm-cl-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fm-cl-title {
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.fm-cl-dismiss {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.35);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
	transition: color var(--duration-fast);
	font-family: inherit;
}

.fm-cl-dismiss:hover { color: rgba(255, 255, 255, 0.8); }

.fm-cl-dismiss:focus-visible {
	outline: 2px solid #3d7eff;
	outline-offset: 2px;
	border-radius: 4px;
}

.fm-cl-list {
	margin: 0;
	padding: 6px 0 8px;
	list-style: none;
}

.fm-cl-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 7px 14px;
}

.fm-cl-check {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.18);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
	transition: border-color var(--duration-fast), background var(--duration-fast);
	color: var(--success);
}

.fm-cl-item.is-done .fm-cl-check {
	border-color: var(--success);
	background: rgba(74, 222, 128, 0.12);
}

.fm-cl-content {
	flex: 1;
	min-width: 0;
}

.fm-cl-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	line-height: 1.3;
}

.fm-cl-label.fm-cl-link:hover {
	color: #fff;
	text-decoration: underline;
}

.fm-cl-label.fm-cl-link:focus-visible {
	outline: 2px solid #3d7eff;
	outline-offset: 2px;
	border-radius: 2px;
}

.fm-cl-item.is-done .fm-cl-label {
	color: rgba(255, 255, 255, 0.4);
	text-decoration: line-through;
}

.fm-cl-sub {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.35);
	margin-top: 2px;
	line-height: 1.35;
}

.fm-cl-mono {
	font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
	font-size: 10px;
	word-break: break-all;
}

/* Optional / accordion item */

.fm-cl-toggle {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	font-family: inherit;
	line-height: 1.3;
	text-align: left;
}

.fm-cl-toggle:hover { color: var(--ink); }

.fm-cl-toggle:focus-visible {
	outline: 2px solid #3d7eff;
	outline-offset: 2px;
	border-radius: 2px;
}

.fm-cl-opt-tag {
	font-size: 10px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	padding: 0 4px;
	line-height: 1.6;
}

.fm-cl-chevron {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	transition: transform var(--duration-fast) var(--ease-standard);
	opacity: 0.45;
}

.fm-cl-chevron.open {
	transform: rotate(180deg);
}

.fm-cl-collapse {
	overflow: hidden;
	max-height: 0;
	transition: max-height var(--duration-base) var(--ease-standard);
}

.fm-cl-collapse.open {
	max-height: 72px;
}

.fm-cl-cta {
	display: inline-block;
	margin-top: 5px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
}

.fm-cl-cta:hover { color: var(--ink); text-decoration: underline; }
.fm-cl-cta:focus-visible { outline: 2px solid #3d7eff; outline-offset: 2px; border-radius: 2px; }

/* Share copy button */

.fm-cl-copy {
	display: inline-block;
	margin-top: 5px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 11.5px;
	padding: 3px 10px;
	cursor: pointer;
	font-family: inherit;
	transition: background var(--duration-fast), color var(--duration-fast);
	line-height: 1.5;
}

.fm-cl-copy:hover {
	background: rgba(255, 255, 255, 0.09);
	color: var(--ink);
}

.fm-cl-copy:focus-visible {
	outline: 2px solid #3d7eff;
	outline-offset: 2px;
}

/* ── Reduced motion overrides ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.fm-fade-overlay,
	.fm-subtitle,
	.fm-actions {
		transition: none;
	}

	.fm-confetti-piece {
		display: none;
	}

	.fm-spotlight {
		transition: none;
	}

	.fm-tour-bubble {
		animation: none;
	}

	.fm-checklist-panel {
		transition: none;
	}

	.fm-cl-collapse {
		transition: none;
	}

	.fm-cl-chevron {
		transition: none;
	}
}