/*
 * assistant.css — S7, the assistant's reserved home.
 *
 * Two columns: the invitation and a panel standing in for the future widget.
 * The only perpetual motion on the page below the hero lives here — a slow
 * breathing dot on the live status and a typed line — because this is the one
 * component whose job is to say "someone is here".
 */

.assistant {
	background: var(--bg-alt);
}

.assistant__inner {
	display: grid;
	gap: var(--s-12);
	align-items: center;
}

.assistant__title {
	margin: var(--s-4) 0 var(--s-4);
	font-family: var(--font-display);
	font-size: var(--fs-h2);
	font-weight: 500;
	line-height: var(--lh-heading);
	text-wrap: balance;
}

.assistant__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-4);
	margin-top: var(--s-8);
}

/* ---- Live office badge ---- */
.office-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	padding: var(--s-2) var(--s-4);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	font-size: var(--fs-small);
	font-weight: 600;
	color: var(--text-muted);
}

.office-badge__dot {
	width: 8px;
	height: 8px;
	border-radius: var(--radius-pill);
	background: var(--muted);
	flex-shrink: 0;
}

.office-badge.is-open .office-badge__dot {
	background: var(--koivu-bright);
	animation: officePulse 2.6s var(--ease) infinite;
}

.office-badge.is-open {
	color: var(--ink);
}

/* A slow breath, not a blink: presence rather than an alert. */
@keyframes officePulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(115, 162, 32, 0.45); }
	60% { box-shadow: 0 0 0 7px rgba(115, 162, 32, 0); }
}

/* ---- The widget's placeholder panel ---- */
.assistant__panel {
	padding: clamp(var(--s-6), 4vw, var(--s-8));
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.assistant__panel-head {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	padding-bottom: var(--s-4);
	border-bottom: 1px solid var(--line);
}

.assistant__mark img {
	display: block;
	height: 28px;
	width: auto;
}

.assistant__panel-name {
	font-weight: 600;
}

.assistant__soon {
	margin-left: auto;
	padding: 2px var(--s-3);
	background: var(--paper);
	border-radius: var(--radius-pill);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--muted);
}

.assistant__typed {
	display: flex;
	align-items: center;
	gap: 2px;
	min-height: 3.5rem;
	margin: var(--s-6) 0 var(--s-4);
	font-size: var(--fs-body-lg);
	color: var(--ink);
}

.assistant__caret {
	display: inline-block;
	width: 2px;
	height: 1.2em;
	background: var(--koivu);
	animation: assistantCaret 1.1s steps(1) infinite;
}

@keyframes assistantCaret {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}

.assistant__prompts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin: 0;
	padding: 0;
	max-width: none;
	list-style: none;
}

.assistant__prompts li {
	margin: 0;
	padding: var(--s-2) var(--s-4);
	background: var(--paper);
	border-radius: var(--radius-pill);
	font-size: var(--fs-small);
	color: var(--muted);
}

@media (min-width: 900px) {
	.assistant__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
		gap: var(--s-16);
	}
}

/* Perpetual motion is the first thing to go when motion is unwelcome. */
@media (prefers-reduced-motion: reduce) {
	.office-badge.is-open .office-badge__dot,
	.assistant__caret {
		animation: none;
	}
}
