/* "Try it now" section and the simulated AI assistant
   The .ad-* rules style the demo card: prompt picker, chat transcript,
   tool-call steps, and the result panel. Driven by js/assistant-demo.js. */
.lead {
	background: var(--green-surface);
}
.lead-note {
	text-align: center;
	font-size: 12.5px;
	color: var(--grey-50);
	margin-top: 18px;
}
.assistant-demo {
	max-width: 820px;
	margin: 44px auto 0;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 20px;
	box-shadow:
		0 2px 4px rgba(20, 40, 30, 0.04),
		0 30px 70px -34px rgba(20, 50, 35, 0.3);
	overflow: hidden;
}
.ad-picker {
	padding: 30px 30px 26px;
}
.ad-picker-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--grey-50);
	margin-bottom: 16px;
}
.ad-picker-head svg {
	width: 16px;
	height: 16px;
	color: var(--green-40);
}
.ad-prompts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.ad-prompts .ad-card:last-child {
	grid-column: 1/-1;
}
.ad-card {
	display: flex;
	gap: 13px;
	align-items: flex-start;
	text-align: left;
	background: var(--grey-light);
	border: 1px solid var(--border);
	border-radius: 13px;
	padding: 16px 17px;
	cursor: pointer;
	font-family: inherit;
	transition:
		transform 0.15s,
		box-shadow 0.15s,
		border-color 0.15s,
		background 0.15s;
}
.ad-card:hover {
	background: #fff;
	border-color: var(--green-20);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -18px rgba(20, 50, 35, 0.28);
}
.ad-card .aci {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--green-10);
	color: var(--green);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.ad-card .aci svg {
	width: 19px;
	height: 19px;
}
.ad-card .act h4 {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--grey-70);
	line-height: 1.35;
}
.ad-card .act p {
	font-size: 12.5px;
	color: var(--grey-50);
	margin-top: 4px;
	line-height: 1.4;
}
.ad-chat {
	display: flex;
	flex-direction: column;
}
.ad-chat[hidden] {
	display: none;
}
.ad-chat-scroll {
	padding: 26px 28px 8px;
	max-height: 560px;
	overflow-y: auto;
}
.ad-msg-user {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 20px;
}
.ad-msg-user .bub {
	background: var(--green);
	color: #fff;
	font-size: 14.5px;
	line-height: 1.5;
	border-radius: 14px 14px 3px 14px;
	padding: 12px 16px;
	max-width: 82%;
	font-weight: 500;
}
.ad-assistant {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.ad-avatar {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: linear-gradient(160deg, var(--green-70), var(--green-80));
	color: #bfe6cf;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-top: 2px;
}
.ad-avatar svg {
	width: 17px;
	height: 17px;
}
.ad-assistant-body {
	flex: 1;
	min-width: 0;
}
.ad-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--grey-70);
	margin-bottom: 9px;
}
.ad-steps {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 4px;
}
.ad-step {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	color: var(--grey-50);
	opacity: 0;
	transform: translateY(4px);
	animation: stepIn 0.35s ease forwards;
}
@keyframes stepIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.ad-step .si2 {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid var(--green-20);
	border-top-color: var(--green);
	flex: 0 0 auto;
	animation: spin 0.7s linear infinite;
}
.ad-step.done .si2 {
	border: none;
	background: var(--st-acc-bg);
	color: var(--st-acc-fg);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: none;
}
.ad-step.done .si2 svg {
	width: 11px;
	height: 11px;
}
.ad-step.done {
	color: var(--grey-60);
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
.ad-text {
	font-size: 15px;
	line-height: 1.65;
	color: var(--grey-70);
	margin-top: 14px;
	text-wrap: pretty;
}
.ad-text .tcur {
	display: inline-block;
	width: 2px;
	height: 1em;
	background: var(--green);
	vertical-align: -2px;
	animation: blink 1s steps(2) infinite;
	margin-left: 1px;
}
@keyframes blink {
	50% {
		opacity: 0;
	}
}
.ad-result {
	margin-top: 16px;
	opacity: 0;
	transform: translateY(6px);
	transition:
		opacity 0.4s,
		transform 0.4s;
}
.ad-result.show {
	opacity: 1;
	transform: translateY(0);
}
.ad-panel {
	border: 1px solid var(--border);
	border-radius: 13px;
	overflow: hidden;
	background: var(--grey-light);
}
.ad-panel-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	background: #fff;
	border-bottom: 1px solid var(--border);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--grey-50);
}
.ad-panel-head svg {
	width: 14px;
	height: 14px;
	color: var(--green);
}
.ad-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 16px;
	border-bottom: 1px solid var(--border);
}
.ad-row:last-child {
	border-bottom: none;
}
.ad-row .lbl {
	font-size: 13px;
	color: var(--grey-60);
	flex: 0 0 auto;
	min-width: 180px;
}
.ad-row .val {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--grey-70);
	flex: 1;
	min-width: 0;
}
.ad-row .val .mono {
	font-family: "IBM Plex Mono", monospace;
}
.ad-badge {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 6px;
	padding: 3px 8px;
	flex: 0 0 auto;
	white-space: nowrap;
}
.ad-badge.mand {
	background: var(--st-rej-bg);
	color: var(--st-rej-fg);
}
.ad-badge.rec {
	background: var(--st-inc-bg);
	color: var(--st-inc-fg);
}
.ad-badge.filled {
	background: var(--st-acc-bg);
	color: var(--st-acc-fg);
}
.ad-hero-code {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 20px 16px 8px;
}
.ad-hero-code .cd {
	font-family: "IBM Plex Mono", monospace;
	font-size: 30px;
	font-weight: 700;
	color: var(--green);
	letter-spacing: -0.01em;
}
.ad-hero-code .lb {
	font-size: 13.5px;
	color: var(--grey-60);
}
.ad-foot {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 18px 28px 26px;
	border-top: 1px solid var(--border);
	margin-top: 8px;
	background: var(--grey-light);
	opacity: 0;
	transform: translateY(6px);
	transition:
		opacity 0.4s,
		transform 0.4s;
}
.ad-foot.show {
	opacity: 1;
	transform: translateY(0);
}
.ad-foot .note {
	font-size: 12.5px;
	color: var(--grey-50);
	flex: 1;
	min-width: 180px;
}
.ad-foot .again {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--grey-60);
	cursor: pointer;
	background: none;
	border: none;
	font-family: inherit;
	padding: 8px 4px;
}
.ad-foot .again:hover {
	color: var(--green);
}
