/**
 * Product graphics — the illustrations that replaced the screenshots.
 *
 * Markup comes from inc/graphics.php; the step player lives in motion.js. Each
 * graphic is a dark "product surface" that reads at card size: a window bar, a
 * few rows or bubbles, one number, and the yellow accent used once or twice.
 * Everything is drawn from the theme tokens, so a palette change carries.
 */


/* ---------- The stage ---------- */

.acp-g {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	padding: 22px;
	border-radius: 10px;
	background:
		radial-gradient(120% 90% at 88% 4%, rgba(239, 189, 48, .16), rgba(239, 189, 48, 0) 58%),
		radial-gradient(circle, rgba(255, 255, 255, .34) 1px, transparent 1.7px) 0 0 / 20px 20px,
		var(--wp--preset--color--dark-soft);
	background-blend-mode: normal, soft-light, normal;
	color: var(--wp--preset--color--base);
	font-size: 13px;
	line-height: 1.45;
	container-type: inline-size;
}

.acp-g::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 1px solid rgba(255, 255, 255, .07);
	pointer-events: none;
}

.acp-g-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	z-index: 1;
}

/* Steps are revealed in order by motion.js; without it they simply show. */
.acp-g [data-step] {
	opacity: 0;
	transform: translateY(9px);
	transition: opacity .45s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}

.acp-g.is-static [data-step],
.acp-g [data-step].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.acp-g [data-step] { opacity: 1; transform: none; }
}


/* ---------- Shared primitives ---------- */

.acp-g-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 12px;
	margin-bottom: 2px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: rgba(255, 255, 255, .5);
}

.acp-g-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: none; }
.acp-g-bar i:first-child { background: rgba(239, 189, 48, .75); }
.acp-g-bar span { margin-left: 8px; }

.acp-g-rows { display: flex; flex-direction: column; gap: 8px; }
.acp-g-rows.is-tight { gap: 7px; }

.acp-g-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .045);
}

.acp-g-row b { font-weight: 400; color: #fff; }
.acp-g-row em { font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 10px; text-transform: uppercase; color: rgba(255, 255, 255, .38); }
.acp-g-row .acp-g-count { margin-left: auto; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .6); }
.acp-g-row .acp-g-ok { margin-left: auto; font-family: var(--wp--preset--font-family--mono); font-size: 10px; text-transform: uppercase; color: #6ee7a8; }

.acp-g-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: none;
	border-radius: 5px;
	background: var(--wp--preset--color--accent);
	color: #0e0e14;
}

.acp-g-check svg { width: 11px; height: 11px; }

.acp-g-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }

.acp-g-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 5px;
	background: rgba(239, 189, 48, .16);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	text-transform: uppercase;
}

.acp-g-pill.is-ok { background: rgba(110, 231, 168, .14); color: #6ee7a8; }
.acp-g-total { font-size: 30px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.acp-g-foot em { font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 10px; text-transform: uppercase; color: rgba(255, 255, 255, .45); }

/* Bubbles */
.acp-g-msgs { display: flex; flex-direction: column; gap: 9px; }

.acp-g-bbl {
	max-width: 86%;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .06);
	color: rgba(255, 255, 255, .92);
}

.acp-g-bbl.user { align-self: flex-end; background: var(--wp--preset--color--accent); color: #0e0e14; border-bottom-right-radius: 3px; }
.acp-g-bbl.bot { align-self: flex-start; border-bottom-left-radius: 3px; }
.acp-g-bbl.agent { align-self: flex-start; background: rgba(110, 231, 168, .13); border-bottom-left-radius: 3px; }
.acp-g-bbl.is-honest { color: rgba(255, 255, 255, .72); }

.acp-g-src {
	display: inline-flex;
	margin-top: 7px;
	padding: 4px 8px;
	border-radius: 5px;
	background: rgba(255, 255, 255, .08);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}

.acp-g-typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px; }
.acp-g-typing span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .45); }

@media (prefers-reduced-motion: no-preference) {
	.acp-g-typing span { animation: acp-g-blink 1.3s infinite ease-in-out; }
	.acp-g-typing span:nth-child(2) { animation-delay: .17s; }
	.acp-g-typing span:nth-child(3) { animation-delay: .34s; }
	@keyframes acp-g-blink { 0%, 65%, 100% { opacity: .3; } 30% { opacity: 1; } }
}

/* Product cards */
.acp-g-prods { display: flex; gap: 8px; }
.acp-g-prods.is-wide { flex-direction: column; }

.acp-g-prod {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: 10px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .05);
}

.acp-g-prods.is-wide .acp-g-prod { display: grid; grid-template-columns: 46px 1fr; column-gap: 11px; align-items: center; }
.acp-g-prods.is-wide .acp-g-thumb { grid-row: 1 / 3; }
.acp-g-prod b { display: block; font-weight: 400; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acp-g-prod em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .55); }
.acp-g-prod em s { opacity: .55; }

.acp-g-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	margin-bottom: 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .05);
	color: var(--wp--preset--color--accent);
}

.acp-g-prods.is-wide .acp-g-thumb { width: 46px; height: 46px; margin: 0; flex: none; }
.acp-g-thumb svg { width: 26px; height: 26px; }

.acp-g-best {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 7px;
	border-radius: 4px;
	background: var(--wp--preset--color--accent);
	color: #0e0e14;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9px;
	text-transform: uppercase;
}

.acp-g-cart {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: auto;
	padding: 11px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .06);
}

.acp-g-cart svg { width: 15px; height: 15px; color: var(--wp--preset--color--accent); flex: none; }
.acp-g-cart b { font-weight: 400; }
.acp-g-cart span {
	margin-left: auto;
	padding: 6px 10px;
	border-radius: 5px;
	background: var(--wp--preset--color--accent);
	color: #0e0e14;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	text-transform: uppercase;
}

/* Chips */
.acp-g-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acp-g-chips span,
.acp-g-tags span {
	padding: 6px 10px;
	border-radius: 5px;
	background: rgba(255, 255, 255, .06);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .62);
}

.acp-g-chips span.is-on,
.acp-g-tags span.is-on { background: var(--wp--preset--color--accent); color: #0e0e14; }


/* ---------- Chat ---------- */

.acp-g-win { display: flex; flex-direction: column; height: 100%; }

.acp-g-win-head {
	display: flex;
	align-items: center;
	gap: 9px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.acp-g-ava {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--wp--preset--color--accent);
	color: #0e0e14;
	flex: none;
}

.acp-g-ava svg { width: 16px; height: 16px; }
.acp-g-win-head b { font-weight: 400; color: #fff; }
.acp-g-win-head i {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	font-style: normal;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .45);
}

.acp-g-dot { width: 6px; height: 6px; border-radius: 50%; background: #6ee7a8; }
.acp-g-win .acp-g-msgs { padding-top: 12px; gap: 8px; }


/* ---------- Answers: the searching bars ---------- */

.acp-g-scan { display: flex; align-items: center; gap: 5px; align-self: flex-start; padding: 9px 11px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.acp-g-scan span { width: 3px; height: 13px; border-radius: 2px; background: var(--wp--preset--color--accent); opacity: .5; }
.acp-g-scan em { font-style: normal; margin-left: 4px; font-family: var(--wp--preset--font-family--mono); font-size: 9.5px; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

@media (prefers-reduced-motion: no-preference) {
	.acp-g-scan span { animation: acp-g-scan 1.1s infinite ease-in-out; }
	.acp-g-scan span:nth-child(2) { animation-delay: .15s; }
	.acp-g-scan span:nth-child(3) { animation-delay: .3s; }
	@keyframes acp-g-scan { 0%, 100% { transform: scaleY(.55); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
}


/* ---------- Widget design ---------- */

.acp-g-design { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.acp-g-swatches { display: flex; gap: 8px; }
.acp-g-swatches i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); }
.acp-g-swatches i:first-child { box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }

.acp-g-widget {
	position: relative;
	flex: 1;
	min-height: 0;
	margin: 0 6px;
	padding: 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .05);
}

.acp-g-widget-head { display: flex; align-items: center; gap: 8px; }
.acp-g-widget-head span { width: 22px; height: 22px; border-radius: 6px; background: var(--wp--preset--color--accent); }
.acp-g-widget-head b { display: block; width: 74px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.acp-g-widget-body { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.acp-g-widget-body span { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .11); }
.acp-g-widget-body .l1 { width: 82%; }
.acp-g-widget-body .l2 { width: 58%; align-self: flex-end; background: rgba(239, 189, 48, .5); }
.acp-g-widget-body .l3 { width: 70%; }

.acp-g-widget-launch {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: #0e0e14;
}

.acp-g-widget-launch svg { width: 17px; height: 17px; }
.acp-g-tags { display: flex; gap: 6px; }

@media (prefers-reduced-motion: no-preference) {
	.acp-g.is-live .acp-g-widget-launch { animation: acp-g-launch 3.4s 1.4s infinite ease-in-out; }
	@keyframes acp-g-launch { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.12); } 86% { transform: scale(.97); } }
}


/* ---------- Handoff ---------- */

.acp-g-join {
	display: flex;
	align-items: center;
	gap: 9px;
	align-self: stretch;
	padding: 9px 11px;
	border-radius: 8px;
	background: rgba(110, 231, 168, .1);
}

.acp-g-face {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #6ee7a8;
	color: #0e0e14;
	font-size: 12px;
	flex: none;
}

.acp-g-join b { font-weight: 400; color: #fff; }
.acp-g-join em { margin-left: auto; font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 9.5px; text-transform: uppercase; color: rgba(255, 255, 255, .45); }


/* ---------- Leads ---------- */

.acp-g-lead { padding: 14px; border-radius: 9px; background: rgba(255, 255, 255, .05); }
.acp-g-lead-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.acp-g-lead-row + .acp-g-lead-row { border-top: 1px solid rgba(255, 255, 255, .06); }
.acp-g-lead-row em { font-style: normal; width: 84px; flex: none; font-family: var(--wp--preset--font-family--mono); font-size: 10px; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.acp-g-lead-row b { font-weight: 400; color: #fff; }


/* ---------- Analytics ---------- */

.acp-g-chart { display: flex; align-items: flex-end; gap: 9px; flex: 1; min-height: 0; padding: 14px 2px 0; }

.acp-g-chart i {
	flex: 1;
	height: var(--h);
	border-radius: 5px 5px 2px 2px;
	background: linear-gradient(to top, rgba(239, 189, 48, .22), rgba(239, 189, 48, .7));
	transform-origin: bottom;
}

.acp-g.is-live .acp-g-chart i { animation: acp-g-grow .7s cubic-bezier(.22, 1, .36, 1) var(--d) both; }
@keyframes acp-g-grow { from { transform: scaleY(.04); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }

.acp-g-legend { display: flex; gap: 8px; }
.acp-g-stat { flex: 1; padding: 11px; border-radius: 8px; background: rgba(255, 255, 255, .045); }
.acp-g-stat b { display: block; font-size: 22px; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.acp-g-stat em { font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 9.5px; text-transform: uppercase; color: rgba(255, 255, 255, .45); }


/* ---------- Providers ---------- */

.acp-g-provs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.acp-g-prov { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; background: rgba(255, 255, 255, .045); }
.acp-g-prov b { font-weight: 400; font-size: 12px; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acp-g-radio { width: 13px; height: 13px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); }
.acp-g-prov.is-on { background: rgba(239, 189, 48, .13); }
.acp-g-prov.is-on b { color: #fff; }
.acp-g-prov.is-on .acp-g-radio { border-color: var(--wp--preset--color--accent); background: radial-gradient(circle, var(--wp--preset--color--accent) 0 45%, transparent 46%); }

.acp-g-key { margin-top: auto; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.acp-g-key em { font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 10px; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.acp-g-key b { font-family: var(--wp--preset--font-family--mono); font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .75); }
.acp-g-key .acp-g-pill { margin-left: auto; }


/* ---------- Privacy ---------- */

.acp-g-privacy { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: center; }
.acp-g-db, .acp-g-cloud { display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: 9px; background: rgba(255, 255, 255, .05); }
.acp-g-db { border: 1px solid rgba(239, 189, 48, .3); }
.acp-g-db svg, .acp-g-cloud svg { width: 24px; height: 24px; flex: none; color: var(--wp--preset--color--accent); }
.acp-g-cloud svg { color: rgba(255, 255, 255, .5); }
.acp-g-db b, .acp-g-cloud b { display: block; font-weight: 400; color: #fff; }
.acp-g-db em { display: block; font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 9.5px; text-transform: uppercase; color: rgba(255, 255, 255, .42); margin-top: 2px; }

.acp-g-flow { display: flex; align-items: center; gap: 6px; padding-left: 16px; }
.acp-g-flow span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.acp-g-flow em { font-style: normal; margin-left: 6px; font-family: var(--wp--preset--font-family--mono); font-size: 9.5px; text-transform: uppercase; color: rgba(255, 255, 255, .4); }

@media (prefers-reduced-motion: no-preference) {
	.acp-g.is-live .acp-g-flow span { animation: acp-g-travel 2.2s infinite ease-in-out; }
	.acp-g.is-live .acp-g-flow span:nth-child(2) { animation-delay: .25s; }
	.acp-g.is-live .acp-g-flow span:nth-child(3) { animation-delay: .5s; }
	@keyframes acp-g-travel { 0%, 100% { opacity: .25; transform: translateX(0); } 50% { opacity: 1; transform: translateX(4px); } }
}


/* ---------- Cost ---------- */

.acp-g-cost { display: flex; flex-direction: column; gap: 20px; flex: 1; justify-content: center; }
.acp-g-cost-fig { font-size: 40px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.acp-g-cost-fig em { display: block; margin-top: 9px; font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 10px; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.acp-g-meters { display: flex; flex-direction: column; gap: 14px; }
.acp-g-meter { position: relative; display: flex; align-items: center; gap: 8px; padding-top: 13px; }
.acp-g-meter span { position: absolute; top: 0; left: 0; height: 5px; width: var(--w); border-radius: 3px; background: var(--wp--preset--color--accent); }
.acp-g-meter.is-cache span { background: rgba(255, 255, 255, .26); }
.acp-g-meter b { font-weight: 400; font-size: 12px; color: rgba(255, 255, 255, .8); }
.acp-g-meter em { margin-left: auto; font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: 11px; color: rgba(255, 255, 255, .5); }

@media (prefers-reduced-motion: no-preference) {
	.acp-g.is-live .acp-g-meter span { animation: acp-g-meter .8s cubic-bezier(.22, 1, .36, 1) both; }
	@keyframes acp-g-meter { from { width: 0; } }
}

/* ---------- Placements ---------- */

/* In a showcase card the graphic fills the image slot. */
.acp-shotcard-img .acp-g { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 10px; padding-bottom: 58px; }
.acp-shotcard-img .acp-g::after { border: 0; }

/* On a feature page the graphic leads the main column, wider and calmer. */
.acp-feature-graphic { margin: 0 0 2.4rem; max-width: 520px; }
.acp-feature-graphic .acp-g { aspect-ratio: auto; min-height: 300px; }

/* In a service card it sits where the screenshot did. */
.acp-svc .acp-g { margin-bottom: 40px; aspect-ratio: auto; }

/* In the collage the stages are a little taller than wide and set tighter, so
   a five-bubble conversation still fits without clipping. */
.acp-collage .acp-g { aspect-ratio: 4 / 5; padding: 18px; font-size: 12.5px; }
.acp-collage .acp-g-bar { padding-bottom: 10px; font-size: 10px; }
.acp-collage .acp-g-bbl { padding: 9px 11px; }
.acp-collage .acp-g-inner { gap: 10px; }
.acp-collage .acp-g-lead { padding: 12px; }

/* Small stages (the closing strip, the mosaic) drop a little detail. */
.acp-g.is-sm { padding: 16px; font-size: 12px; }
.acp-g.is-sm .acp-g-bar { padding-bottom: 9px; font-size: 9.5px; }
.acp-g.is-sm .acp-g-row { padding: 9px 10px; }

@container (max-width: 300px) {
	.acp-g-legend { display: none; }
	.acp-g-provs { grid-template-columns: 1fr; }
	.acp-g-prov:nth-child(n+4) { display: none; }
}

/* The hero's chat: sized by its own content rather than a square, so the
   conversation never gets cropped at the bottom of the stage. */
.acp-hero-chat .acp-g { aspect-ratio: auto; padding: 24px; font-size: 13.5px; }
.acp-hero-chat .acp-g-bbl { padding: 10px 13px; }
