/* Interactive demos: the cards that start a demo, and the player — the demo's
   screens in the stage, one step at a time in the guide beside it.

   A theme fits it to its design by setting these on .idemo (or :root):
     --idemo-ink         headings, strong text, the primary button
     --idemo-body        paragraphs
     --idemo-muted       meta lines and counts
     --idemo-line        hairlines
     --idemo-soft        poster ground, hover grounds
     --idemo-accent      the live thing: current step, focus, the hint's light
     --idemo-accent-tint the points' ticks
     --idemo-panel, --idemo-panel-line   the hint box
     --idemo-surface     the player's ground
     --idemo-focus       focus rings
     --idemo-mono        the font for meta lines and counts
     --idemo-radius      card and stage corners
     --idemo-heading-weight, --idemo-heading-tracking
     --idemo-ease        transitions
     --idemo-chrome, --idemo-chrome-ink, --idemo-chrome-body, --idemo-chrome-muted,
     --idemo-chrome-line, --idemo-chrome-soft, --idemo-chrome-accent
                         the player's dark shell on a phone (ground, text, lines, the live thing)
   and can give the parts its own classes with the interactive_demos_classes filter. */

.idemo,
.idemo-player {
	--idemo-ink: #0b0b0c;
	--idemo-body: #52525b;
	--idemo-muted: #6a6a74;
	--idemo-line: #e4e4e7;
	--idemo-soft: #f5f5f6;
	--idemo-accent: #6151e5;
	--idemo-accent-tint: #f0eefc;
	--idemo-panel: #f4f3fd;
	--idemo-panel-line: #e4e1f7;
	--idemo-surface: #fff;
	--idemo-focus: var(--idemo-accent);
	--idemo-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
	--idemo-radius: 12px;
	--idemo-heading-weight: 500;
	--idemo-heading-tracking: -.01em;
	--idemo-ease: cubic-bezier(.4, 0, .2, 1);
	--idemo-chrome: #111115;
	--idemo-chrome-ink: #fff;
	--idemo-chrome-body: rgb(255 255 255 / .74);
	--idemo-chrome-muted: rgb(255 255 255 / .56);
	--idemo-chrome-line: rgb(255 255 255 / .14);
	--idemo-chrome-soft: rgb(255 255 255 / .08);
	--idemo-chrome-accent: #a69cf6;
}

.idemo--empty { padding: 16px; border: 1px dashed var(--idemo-line); color: var(--idemo-muted); }

.idemo__header { max-width: 720px; margin: 0 0 32px; }
.idemo__label { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--idemo-muted); }
.idemo__heading {
	margin: 0;
	font-size: clamp(30px, 3.4vw, 40px);
	line-height: 1.08;
	font-weight: var(--idemo-heading-weight);
	letter-spacing: var(--idemo-heading-tracking);
	color: var(--idemo-ink);
	text-wrap: balance;
}
.idemo__intro { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--idemo-body); text-wrap: pretty; }

/* --- Cards -------------------------------------------------------------- */

.idemo__cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
	gap: 48px 40px;
}
.idemo-card { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.idemo-card__poster {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	padding: 0;
	border: 1px solid var(--idemo-line);
	border-radius: var(--idemo-radius);
	overflow: hidden;
	background: var(--idemo-soft);
	box-shadow: 0 1px 2px rgba(10, 10, 14, .04);
	cursor: pointer;
	transition: box-shadow .3s var(--idemo-ease), transform .3s var(--idemo-ease), border-color .3s var(--idemo-ease);
}
.idemo-card__poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
	transition: transform .6s var(--idemo-ease);
}
.idemo-card__poster:hover,
.idemo-card__poster:focus-visible {
	border-color: #d4d4d8;
	box-shadow: 0 14px 40px rgba(16, 16, 24, .12);
	transform: translateY(-2px);
}
.idemo-card__poster:hover img { transform: scale(1.015); }
.idemo-card__poster:focus-visible { outline: 2px solid var(--idemo-focus); outline-offset: 4px; }

.idemo-card__play {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 40px;
	padding: 0 18px 0 15px;
	border-radius: 999px;
	background: var(--idemo-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(8, 8, 12, .22);
	transition: background-color .2s var(--idemo-ease), transform .3s var(--idemo-ease);
}
.idemo-card__poster:hover .idemo-card__play,
.idemo-card__poster:focus-visible .idemo-card__play { background: var(--idemo-accent); transform: translateY(-1px); }

.idemo-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 8px;
	font-family: var(--idemo-mono);
	font-size: 12.5px;
	color: var(--idemo-muted);
}
.idemo-card__hidden {
	padding: 2px 8px;
	border-radius: 999px;
	background: #fbf0e1;
	color: #8f5a06;
	font-family: inherit;
	white-space: nowrap;
}
.idemo-card__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: var(--idemo-heading-weight);
	letter-spacing: var(--idemo-heading-tracking);
	color: var(--idemo-ink);
	text-wrap: balance;
}
.idemo-card__summary { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--idemo-body); text-wrap: pretty; }

/* One demo on its own: the poster beside its text. */
.idemo--single .idemo__cards { grid-template-columns: 1fr; }
@media (min-width: 900px) {
	.idemo--single .idemo-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
}
.idemo__more { margin: 28px 0 0; }
.idemo__link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--idemo-ink); text-decoration: none; }
.idemo__link:hover { color: var(--idemo-accent); }

.idemo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--idemo-ink);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s var(--idemo-ease), transform .18s var(--idemo-ease);
}
.idemo-btn:hover { background: var(--idemo-accent); color: #fff; }
.idemo-btn:active { transform: scale(.97); }
.idemo-btn:focus-visible { outline: 2px solid var(--idemo-focus); outline-offset: 3px; }

/* --- Player ------------------------------------------------------------- */

html.idemo-open { overflow: hidden; }
/* Nothing of the page shows around the player, also below a phone browser's floating toolbar. */
html.idemo-open body { visibility: hidden; }
html.idemo-open .idemo-player { visibility: visible; }

.idemo-player {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--idemo-surface);
	color: var(--idemo-ink);
	overflow: hidden;
}
.idemo-player[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: idemo-in .32s var(--idemo-ease); }
.idemo-player::backdrop { background: rgba(10, 10, 14, .5); }

@keyframes idemo-in {
	from { opacity: 0; transform: scale(.985); }
	to { opacity: 1; transform: none; }
}

.idemo-player__bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto auto auto;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding: 10px 16px 10px 24px;
	border-bottom: 1px solid var(--idemo-line);
}
.idemo-player__name { min-width: 0; }
.idemo-player__sample {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 2px;
	font-size: 12.5px;
	color: var(--idemo-muted);
}
.idemo-player__sample[hidden] { display: none; }
.idemo-player__sample i { width: 6px; height: 6px; border-radius: 50%; background: var(--idemo-accent); }
.idemo-player__title {
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 500;
	letter-spacing: -.005em;
	color: var(--idemo-ink);
	text-wrap: balance;
}

.idemo-player__progress-wrap { display: flex; align-items: center; gap: 12px; margin-right: 8px; }
.idemo-player__progress { display: flex; gap: 4px; }
.idemo-player__progress span {
	position: relative;
	width: 28px;
	height: 4px;
	border-radius: 2px;
	background: var(--idemo-line);
	overflow: hidden;
	transition: background-color .35s var(--idemo-ease);
}
.idemo-player__progress span.is-done { background: var(--idemo-ink); }
/* The current step lights up; while the voice speaks it fills as it goes. */
.idemo-player__progress span.is-current::after {
	content: "";
	position: absolute;
	inset: 0;
	width: var(--idemo-p, 100%);
	border-radius: inherit;
	background: var(--idemo-accent);
	transition: width .25s linear;
}
.idemo-player__count {
	min-width: 48px;
	font-family: var(--idemo-mono);
	font-size: 12.5px;
	color: var(--idemo-muted);
	font-variant-numeric: tabular-nums;
}

.idemo-player__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--idemo-line);
	border-radius: 999px;
	background: var(--idemo-surface);
	color: var(--idemo-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .18s var(--idemo-ease), border-color .18s var(--idemo-ease), color .18s var(--idemo-ease);
}
.idemo-player__chip:hover { background: var(--idemo-soft); border-color: #d4d4d8; }
.idemo-player__chip:focus-visible { outline: 2px solid var(--idemo-focus); outline-offset: 3px; }
.idemo-player__chip[hidden] { display: none; }

/* The voice switch: on, it wears the accent; the icon says which state it is in. */
.idemo-player__voice .idemo-voice-on,
.idemo-player__voice[aria-pressed="true"] .idemo-voice-off { display: none; }
.idemo-player__voice[aria-pressed="true"] .idemo-voice-on { display: block; }
.idemo-player__voice[aria-pressed="true"] {
	border-color: var(--idemo-panel-line);
	background: var(--idemo-panel);
	color: var(--idemo-accent);
}
.idemo-player__voice[aria-pressed="true"] .idemo-voice-on path:last-child { animation: idemo-wave 1.4s var(--idemo-ease) 2; transform-origin: 9px 8px; }
@keyframes idemo-wave {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}

/* The layout switch: the product's mobile or desktop layout, on any screen. */
.idemo-player__views {
	display: inline-flex;
	gap: 2px;
	height: 40px;
	padding: 3px;
	border: 1px solid var(--idemo-line);
	border-radius: 999px;
	background: var(--idemo-surface);
}
.idemo-player__view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 32px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--idemo-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s var(--idemo-ease), color .2s var(--idemo-ease);
}
.idemo-player__view svg { flex: none; }
.idemo-player__view:hover { color: var(--idemo-ink); background: var(--idemo-soft); }
.idemo-player__view:focus-visible { outline: 2px solid var(--idemo-focus); outline-offset: 2px; }
.idemo-player__view[aria-pressed="true"] { background: var(--idemo-panel); color: var(--idemo-accent); cursor: default; }
.idemo-player__view[aria-pressed="true"] svg { animation: idemo-pop .36s var(--idemo-ease); }
@keyframes idemo-pop {
	0% { transform: scale(.7); }
	60% { transform: scale(1.12); }
	100% { transform: none; }
}

.idemo-player__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	min-height: 0;
}

.idemo-player__stage {
	position: relative;
	min-width: 0;
	min-height: 0;
	margin: 20px;
	margin-right: 0;
}
.idemo-player__frame {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border: 1px solid var(--idemo-line);
	border-radius: var(--idemo-radius);
	background: #fff;
	box-shadow: 0 1px 2px rgba(10, 10, 14, .05), 0 18px 48px rgba(16, 16, 24, .09);
}
.idemo-player__frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	border: 0;
	transform-origin: 0 0;
	background: #fff;
	transition: opacity .35s var(--idemo-ease), filter .35s var(--idemo-ease);
}
.idemo-player.is-end .idemo-player__frame iframe {
	opacity: .42;
	filter: blur(4px) saturate(.7);
}
/* Mobile layout on a wide stage: a phone-sized screen in the middle. */
.idemo-player[data-view="mobile"] .idemo-player__frame {
	width: min(100%, 390px);
	height: min(100%, 860px);
	margin: auto;
	border-radius: 28px;
}
/* While the layout switches, the screen fades out and back in. */
.idemo-player__frame { transition: opacity .18s var(--idemo-ease); }
.idemo-player.is-switching .idemo-player__frame { opacity: 0; }
.idemo-player.has-camera .idemo-player__frame { background: #f4f4f6; }

/* End-card frosted veil and single structured sheet over the final screen. */
.idemo-stage-end {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: clamp(16px, 2.8vw, 32px);
	border-radius: var(--idemo-radius);
	background: rgba(244, 243, 253, .82);
	backdrop-filter: blur(12px);
	opacity: 1;
	translate: 0 0;
	transition:
		display .32s,
		opacity .32s var(--idemo-ease),
		translate .32s var(--idemo-ease);
	transition-behavior: allow-discrete;
}
@starting-style {
	.idemo-stage-end {
		opacity: 0;
		translate: 0 10px;
	}
}
.idemo-stage-end[hidden] {
	display: none;
	opacity: 0;
	translate: 0 10px;
}
.idemo-stage-end__sheet {
	flex: none;
	width: 100%;
	max-width: 780px;
	margin: auto;
	overflow: hidden;
	border: 1px solid var(--idemo-line);
	border-radius: 16px;
	background: var(--idemo-surface);
	box-shadow: 0 24px 60px rgba(14, 14, 24, .12), 0 2px 8px rgba(14, 14, 24, .05);
	container-type: inline-size;
}
.idemo-stage-end__hero[hidden],
.idemo-stage-end__more[hidden] { display: none; }

.idemo-stage-end__hero {
	padding: 20px 22px 22px;
	border-bottom: 1px solid var(--idemo-line);
	background: linear-gradient(180deg, var(--idemo-panel) 0%, var(--idemo-surface) 88%);
}
.idemo-stage-end__eyebrow {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	font-family: var(--idemo-mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--idemo-muted);
}
.idemo-stage-end__hero .idemo-stage-end__eyebrow {
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--idemo-accent);
}
.idemo-stage-end__dot {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.idemo-stage-rec {
	display: grid;
	gap: 16px;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: transparent;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
}
.idemo-stage-rec:focus-visible { outline: 2px solid var(--idemo-focus); outline-offset: 6px; }
.idemo-stage-rec__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid var(--idemo-line);
	background: var(--idemo-soft);
	aspect-ratio: 16 / 9;
	max-height: 168px;
	box-shadow: 0 2px 10px rgba(14, 14, 24, .06);
	transition: border-color .2s var(--idemo-ease), box-shadow .25s var(--idemo-ease);
}
.idemo-stage-rec__media[hidden] { display: none; }
.idemo-stage-rec:hover .idemo-stage-rec__media,
.idemo-stage-rec:focus-visible .idemo-stage-rec__media {
	border-color: rgba(97, 81, 229, .42);
	box-shadow: 0 10px 26px rgba(16, 16, 28, .12);
}
.idemo-stage-rec__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
	transition: transform .45s var(--idemo-ease);
}
.idemo-stage-rec:hover .idemo-stage-rec__media img { transform: scale(1.025); }
.idemo-stage-rec__play {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--idemo-ink);
	color: #fff;
	box-shadow: 0 6px 16px rgba(14, 14, 20, .24);
	transition: background-color .2s var(--idemo-ease), transform .2s var(--idemo-ease);
}
.idemo-stage-rec:hover .idemo-stage-rec__play {
	background: var(--idemo-accent);
	transform: scale(1.05);
}
.idemo-stage-rec__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	min-width: 0;
}
.idemo-stage-rec__meta {
	font-family: var(--idemo-mono);
	font-size: 11.5px;
	color: var(--idemo-muted);
}
.idemo-stage-rec__title {
	font-size: 20px;
	line-height: 1.22;
	font-weight: var(--idemo-heading-weight);
	letter-spacing: var(--idemo-heading-tracking);
	color: var(--idemo-ink);
	text-wrap: balance;
}
.idemo-stage-rec__summary {
	font-size: 14px;
	line-height: 1.55;
	color: var(--idemo-body);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.idemo-stage-rec__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	height: 38px;
	margin-top: 8px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--idemo-ink);
	font-size: 13.5px;
	font-weight: 500;
	color: #fff;
	transition: background-color .2s var(--idemo-ease), transform .2s var(--idemo-ease);
}
.idemo-stage-rec__cta svg {
	transition: transform .2s var(--idemo-ease);
}
.idemo-stage-rec:hover .idemo-stage-rec__cta,
.idemo-stage-rec:focus-visible .idemo-stage-rec__cta {
	background: var(--idemo-accent);
}
.idemo-stage-rec:hover .idemo-stage-rec__cta svg {
	transform: translateX(2px);
}

.idemo-stage-end__more {
	padding: 18px 22px 14px;
}
.idemo-stage-end__more .idemo-stage-end__eyebrow {
	margin-bottom: 6px;
}
.idemo-stage-more {
	list-style: none;
	margin: 0;
	padding: 0;
}
.idemo-stage-more li + li {
	border-top: 1px solid var(--idemo-line);
}
.idemo-stage-more__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: calc(100% + 20px);
	margin: 0 -10px;
	padding: 11px 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
	transition: background-color .16s var(--idemo-ease);
}
.idemo-stage-more__row:hover,
.idemo-stage-more__row:focus-visible {
	background: var(--idemo-panel);
}
.idemo-stage-more__row:focus-visible { outline: 2px solid var(--idemo-focus); outline-offset: -2px; }
.idemo-stage-more__body {
	display: grid;
	gap: 3px;
	min-width: 0;
}
.idemo-stage-more__title {
	font-size: 14.5px;
	line-height: 1.35;
	font-weight: 500;
	color: var(--idemo-ink);
}
.idemo-stage-more__meta {
	font-family: var(--idemo-mono);
	font-size: 11.5px;
	color: var(--idemo-muted);
}
.idemo-stage-more__arrow {
	display: inline-grid;
	place-items: center;
	color: var(--idemo-muted);
	transition: color .16s var(--idemo-ease), transform .16s var(--idemo-ease);
}
.idemo-stage-more__row:hover .idemo-stage-more__arrow,
.idemo-stage-more__row:focus-visible .idemo-stage-more__arrow {
	color: var(--idemo-accent);
	transform: translateX(3px);
}

.idemo-stage-end__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 12px 22px;
	border-top: 1px solid var(--idemo-line);
	background: var(--idemo-soft);
}
.idemo-stage-end__util {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
}
.idemo-stage-action {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-block-size: 34px;
	padding: 4px 2px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	color: var(--idemo-body);
	text-decoration: none;
	cursor: pointer;
	transition: color .16s var(--idemo-ease);
}
.idemo-stage-action[hidden] { display: none; }
.idemo-stage-action:hover,
.idemo-stage-action:focus-visible { color: var(--idemo-ink); }
.idemo-stage-action:focus-visible { outline: 2px solid var(--idemo-focus); outline-offset: 2px; }
.idemo-stage-action--cta { color: var(--idemo-accent); font-weight: 600; }
.idemo-stage-action--cta:hover,
.idemo-stage-action--cta:focus-visible { color: var(--idemo-ink); }

@container (min-width: 540px) {
	.idemo-stage-end__hero { padding: 24px 26px 26px; }
	.idemo-stage-rec {
		grid-template-columns: 268px minmax(0, 1fr);
		gap: 24px;
		align-items: center;
	}
	.idemo-stage-rec__media {
		aspect-ratio: 16 / 10;
		max-height: none;
	}
	.idemo-stage-rec__title { font-size: 21px; }
	.idemo-stage-end__more { padding: 18px 26px 14px; }
	.idemo-stage-more__body {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 16px;
	}
	.idemo-stage-more__meta {
		flex: none;
		white-space: nowrap;
	}
	.idemo-stage-end__foot { padding: 12px 26px; }
}
.idemo-player__loading,
.idemo-player__error {
	position: absolute;
	inset: 0;
	display: none;
	place-content: center;
	gap: 14px;
	margin: 0;
	padding: 24px;
	text-align: center;
	font-size: 15px;
	color: var(--idemo-body);
	background: rgba(255, 255, 255, .86);
	border-radius: var(--idemo-radius);
}
.idemo-player.is-loading .idemo-player__loading { display: grid; justify-items: center; }
.idemo-player__error:not([hidden]) { display: grid; }
.idemo-player__loading span {
	width: 22px;
	height: 22px;
	border: 2px solid var(--idemo-line);
	border-top-color: var(--idemo-accent);
	border-radius: 50%;
	animation: idemo-spin .8s linear infinite;
}
@keyframes idemo-spin { to { transform: rotate(360deg); } }

.idemo-player__guide {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 36px 32px 28px;
	overflow-y: auto;
}
.idemo-player__step,
.idemo-player__end { flex: 1 0 auto; }
.idemo-player__step[hidden],
.idemo-player__end[hidden] { display: none; }
.idemo-player__guide.is-in .idemo-player__step > * { animation: idemo-rise .45s var(--idemo-ease) both; }
.idemo-player__guide.is-in .idemo-player__step > :nth-child(2) { animation-delay: .04s; }
.idemo-player__guide.is-in .idemo-player__step > :nth-child(3) { animation-delay: .08s; }
.idemo-player__guide.is-in .idemo-player__step > :nth-child(n+4) { animation-delay: .12s; }
@keyframes idemo-rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.idemo-player__eyebrow {
	margin: 0 0 12px;
	font-family: var(--idemo-mono);
	font-size: 12.5px;
	color: var(--idemo-muted);
}
.idemo-player__trail {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
}
.idemo-player__trail[hidden] { display: none; }
.idemo-player__trail li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--idemo-accent-tint);
	color: var(--idemo-accent);
	font-size: 12px;
	line-height: 1.3;
	font-weight: 500;
}
.idemo-player__trail li::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}
.idemo-player__heading {
	margin: 0;
	font-size: 28px;
	line-height: 1.15;
	font-weight: var(--idemo-heading-weight);
	letter-spacing: var(--idemo-heading-tracking);
	color: var(--idemo-ink);
	text-wrap: balance;
}
.idemo-player__heading:focus { outline: none; }
.idemo-player__text { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--idemo-body); text-wrap: pretty; }
.idemo-player__text[hidden] { display: none; }

.idemo-player__points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.idemo-player__points[hidden] { display: none; }
.idemo-player__points li {
	position: relative;
	padding-left: 28px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--idemo-ink);
	text-wrap: pretty;
}
.idemo-player__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--idemo-accent-tint);
}
.idemo-player__points li::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 7px;
	width: 10px;
	height: 8px;
	background: var(--idemo-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1.2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 8px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1.2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 8px no-repeat;
}

.idemo-player__choices {
	margin: 22px 0 0;
	padding: 14px;
	border-radius: 14px;
	background: var(--idemo-panel);
	box-shadow: inset 0 0 0 1px var(--idemo-panel-line);
	transition: opacity .28s var(--idemo-ease);
}
.idemo-player__choices[hidden] { display: none; }
.idemo-player__choices-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--idemo-accent);
}
.idemo-player__choices-eyebrow i {
	position: relative;
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--idemo-accent);
}
.idemo-player__choices.is-ready .idemo-player__choices-eyebrow i::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--idemo-accent);
	animation: idemo-ping 1.8s var(--idemo-ease) 3;
}
.idemo-player__choices-sub {
	margin: 4px 0 12px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--idemo-muted);
}
.idemo-player__choices-list {
	display: grid;
	gap: 8px;
}
.idemo-choice {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	width: 100%;
	min-block-size: 44px;
	padding: 11px 12px;
	border: 1px solid var(--idemo-panel-line);
	border-radius: 11px;
	background: var(--idemo-surface);
	color: var(--idemo-ink);
	text-align: left;
	font: inherit;
	cursor: pointer;
	transition: border-color .18s var(--idemo-ease), background-color .18s var(--idemo-ease), transform .18s var(--idemo-ease), box-shadow .18s var(--idemo-ease);
}
.idemo-choice:hover,
.idemo-choice:focus-visible {
	border-color: var(--idemo-accent);
	box-shadow: 0 4px 14px rgba(97, 81, 229, .12);
	transform: translateY(-1px);
}
.idemo-choice:focus-visible { outline: 2px solid var(--idemo-focus); outline-offset: 2px; }
.idemo-choice:active { transform: scale(.99); }
.idemo-choice__num {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--idemo-accent-tint);
	color: var(--idemo-accent);
	font-family: var(--idemo-mono);
	font-size: 11.5px;
	font-weight: 600;
}
.idemo-choice:hover .idemo-choice__num {
	background: var(--idemo-accent);
	color: #fff;
}
.idemo-choice__body { display: grid; gap: 3px; min-width: 0; }
.idemo-choice__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.idemo-choice__label { font-size: 14.5px; line-height: 1.35; font-weight: 500; color: var(--idemo-ink); }
.idemo-choice__badge {
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--idemo-soft);
	color: var(--idemo-muted);
	font-family: var(--idemo-mono);
	font-size: 10.5px;
}
.idemo-choice__desc { font-size: 13px; line-height: 1.45; color: var(--idemo-body); }

.idemo-player__recap {
	margin: 22px 0 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--idemo-soft);
	border: 1px solid var(--idemo-line);
}
.idemo-player__recap[hidden] { display: none; }
.idemo-player__recap-label {
	margin: 0 0 10px;
	font-family: var(--idemo-mono);
	font-size: 12px;
	color: var(--idemo-muted);
}
.idemo-player__recap-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.idemo-player__recap-list li {
	position: relative;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--idemo-ink);
}
.idemo-player__recap-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--idemo-accent);
}

.idemo-player__hint {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 26px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--idemo-panel);
	box-shadow: inset 0 0 0 1px var(--idemo-panel-line);
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--idemo-body);
	opacity: .55;
	transition: opacity .3s var(--idemo-ease);
}
.idemo-player__hint[hidden] { display: none; }
.idemo-player__hint.is-ready { opacity: 1; }
.idemo-player__hint b { font-weight: 500; color: var(--idemo-ink); }
.idemo-player__hint i {
	position: relative;
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: 7px;
	border-radius: 50%;
	background: var(--idemo-accent);
}
.idemo-player__hint.is-ready i::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--idemo-accent);
	animation: idemo-ping 1.8s var(--idemo-ease) 3;
}
@keyframes idemo-ping {
	from { transform: scale(1); opacity: .6; }
	to { transform: scale(3); opacity: 0; }
}

.idemo-player__transcript { margin: 22px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--idemo-body); }
.idemo-player__transcript[hidden] { display: none; }
.idemo-player__transcript summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--idemo-muted);
	cursor: pointer;
	list-style: none;
}
.idemo-player__transcript summary::-webkit-details-marker { display: none; }
.idemo-player__transcript summary::before {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .2s var(--idemo-ease);
}
.idemo-player__transcript[open] summary::before { transform: rotate(45deg); }
.idemo-player__transcript summary:hover { color: var(--idemo-ink); }
.idemo-player__transcript summary:focus-visible { outline: 2px solid var(--idemo-focus); outline-offset: 3px; border-radius: 4px; }
.idemo-player__transcript p { margin: 10px 0 0; padding-left: 12px; border-left: 2px solid var(--idemo-panel-line); white-space: pre-line; }

.idemo-player__nav {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 24px;
	margin-top: 24px;
	border-top: 1px solid var(--idemo-line);
}
.idemo-player__nav .idemo-player__next { margin-left: auto; height: 44px; }
.idemo-player__next[hidden] { display: none; }
.idemo-player__audio .idemo-audio-play,
.idemo-player__audio.is-playing .idemo-audio-pause { display: block; }
.idemo-player__audio .idemo-audio-pause,
.idemo-player__audio.is-playing .idemo-audio-play { display: none; }
.idemo-player__audio:not(.is-playing) { border-color: var(--idemo-panel-line); background: var(--idemo-panel); color: var(--idemo-accent); }

.idemo-player__end-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.idemo-player__end-actions > * { height: 44px; }

.idemo-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 1200px) {
	.idemo-player__view span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.idemo-player__view { width: 34px; padding: 0; }
	.idemo-player__body { grid-template-columns: minmax(0, 1fr) 340px; }
	.idemo-player__guide { padding: 28px 24px 22px; }
	.idemo-player__heading { font-size: 26px; }
}

/* Narrow windows: the screen above, the guide below. */
@media (max-width: 900px) {
	.idemo-player__bar { grid-template-columns: minmax(0, 1fr) auto auto auto; row-gap: 8px; }
	.idemo-player__progress-wrap { grid-column: 1 / -1; grid-row: 2; margin-right: 0; }
	.idemo-player__progress { flex: 1; }
	.idemo-player__progress span { flex: 1; width: auto; }
	.idemo-player__body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
	.idemo-player__stage { margin: 14px 14px 0; }
	/* A fixed height, so the screen above keeps its size from step to step; a long step scrolls inside. */
	.idemo-player__guide { position: relative; z-index: 2; height: 42dvh; padding: 20px 20px 0; background: var(--idemo-surface); }
	.idemo-player__step,
	.idemo-player__end { padding-bottom: 12px; }
	.idemo-player__heading { font-size: 23px; }
	.idemo-player__text { margin-top: 10px; font-size: 15.5px; }
	.idemo-player__points { margin-top: 14px; }
	.idemo-player__choices { margin-top: 14px; padding: 12px; }
	.idemo-player__hint,
	.idemo-player__transcript { margin-top: 16px; }
	.idemo-player__nav { position: sticky; bottom: 0; z-index: 1; padding: 12px 0 16px; margin-top: 14px; background: var(--idemo-surface); }
	.idemo-stage-end { padding: 12px; }
	.idemo-stage-end__hero { padding: 16px; }
	.idemo-stage-end__more { padding: 14px 16px 10px; }
	.idemo-stage-end__foot { padding: 10px 16px; }
}
/* Phones: one row of controls on top, the screen as a rounded window in the player's dark
   shell, and the guide as a sheet under it that is only as tall as the step needs, so the
   product keeps most of the screen. More, the grabber or a swipe up opens the whole step. */
@media (max-width: 720px) {
	.idemo-player__bar { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; min-height: 0; padding: 8px 8px 8px 14px; }
	/* The step heading below says where the visitor is; the demo's name stays for screen readers. */
	.idemo-player__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.idemo-player__progress-wrap { grid-column: 1; grid-row: 1; gap: 10px; margin-right: 0; }
	.idemo-player__progress { flex: 1; }
	.idemo-player__progress span { flex: 1; width: auto; height: 3px; }
	.idemo-player__count { min-width: 0; font-size: 11.5px; }
	.idemo-player__bar .idemo-player__chip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.idemo-player__bar .idemo-player__chip { width: 36px; height: 36px; padding: 0; justify-content: center; }
	.idemo-player__views { height: 36px; padding: 2px; }
	.idemo-player__view { width: 30px; min-width: 30px; }
	.idemo-player__stage { margin: 0 6px; }
	.idemo-player__frame,
	.idemo-player[data-view="mobile"] .idemo-player__frame { width: 100%; height: 100%; border: 0; border-radius: 14px; box-shadow: none; }
	.idemo-player__loading,
	.idemo-player__error,
	.idemo-stage-end { border-radius: 14px; }

	.idemo-player__guide { height: auto; max-height: none; padding: 0 16px; }
	.idemo-player__guide.is-expanded { max-height: 72dvh; }
	/* The bar already counts the steps. */
	.idemo-player__step > .idemo-player__eyebrow { display: none; }
	.idemo-player__heading { font-size: 17px; line-height: 1.3; }
	.idemo-player__text { margin-top: 4px; font-size: 14.5px; line-height: 1.45; }
	.idemo-player__guide:not(.is-expanded) .idemo-player__text {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
	}
	/* Closed, the sheet holds only what the step needs: the heading; the text while no voice
	   reads it; the choices and the hint once it is the visitor's turn. */
	.idemo-player__guide:not(.is-expanded) :is(.idemo-player__trail, .idemo-player__points, .idemo-player__transcript, .idemo-player__choices:not(.is-ready), .idemo-player__hint:not(.is-ready)) { display: none; }
	.idemo-player__guide.is-told:not(.is-expanded) .idemo-player__text { display: none; }
	.idemo-player__trail { margin-bottom: 8px; }
	.idemo-player__points { margin-top: 12px; }
	.idemo-player__transcript { margin-top: 12px; }
	.idemo-player__hint { margin-top: 10px; padding: 8px 12px; font-size: 13.5px; line-height: 1.4; }
	.idemo-player__hint i { margin-top: 5px; }
	.idemo-player__guide.is-expanded .idemo-player__step > :not(.idemo-player__heading, .idemo-player__text, .idemo-player__more),
	.idemo-player__guide.is-expanded.is-told .idemo-player__text { animation: idemo-rise .3s var(--idemo-ease) both; }

	/* Choices: one row of numbered pills that scrolls sideways; the screen shows the same numbers. */
	.idemo-player__choices { margin: 10px -16px 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
	.idemo-player__choices-eyebrow,
	.idemo-player__choices-sub,
	.idemo-choice__desc,
	.idemo-choice__badge { display: none; }
	.idemo-player__choices-list { display: flex; gap: 8px; padding: 2px 16px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
	.idemo-player__choices-list::-webkit-scrollbar { display: none; }
	.idemo-choice { flex: none; width: auto; align-items: center; gap: 8px; min-block-size: 40px; padding: 7px 14px 7px 8px; border-radius: 999px; white-space: nowrap; scroll-snap-align: start; }
	.idemo-choice__label { font-size: 14px; }

	/* One row: More on the left; Back and Pause as icons beside Next. */
	.idemo-player__nav { justify-content: flex-end; gap: 8px; margin-top: 8px; padding: 4px 0 max(10px, env(safe-area-inset-bottom)); border-top: 0; }
	.idemo-player__nav .idemo-player__chip { width: 42px; height: 42px; padding: 0; justify-content: center; }
	.idemo-player__nav .idemo-player__chip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.idemo-player__nav .idemo-player__next { height: 42px; margin-left: 0; }

	/* The end: the closing line and its button; the screen above offers the next demo. */
	.idemo-player__end .idemo-player__eyebrow,
	.idemo-player__recap,
	.idemo-player__end .idemo-player__transcript,
	.idemo-stage-end__foot { display: none; }
	.idemo-player__end .idemo-player__text {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
	}
	.idemo-player__end-actions { margin-top: 12px; gap: 8px; }
	.idemo-player .idemo-player__end-actions > * { height: 42px; }
	.idemo-player.is-end .idemo-player__guide { max-height: none; }
	.idemo-player.is-end .idemo-player__nav { margin-top: 0; }
	.idemo-stage-end { padding-bottom: 26px; }

	/* The player's dark shell: the bar and the guide are the player, the light window between
	   them is the product. */
	.idemo-player { background: var(--idemo-chrome); }
	.idemo-player__bar,
	.idemo-player__guide {
		--idemo-ink: var(--idemo-chrome-ink);
		--idemo-body: var(--idemo-chrome-body);
		--idemo-muted: var(--idemo-chrome-muted);
		--idemo-line: var(--idemo-chrome-line);
		--idemo-soft: var(--idemo-chrome-soft);
		--idemo-surface: var(--idemo-chrome);
		--idemo-accent: var(--idemo-chrome-accent);
		--idemo-accent-tint: color-mix(in srgb, var(--idemo-chrome-accent) 18%, transparent);
		--idemo-panel: color-mix(in srgb, var(--idemo-chrome-accent) 14%, transparent);
		--idemo-panel-line: color-mix(in srgb, var(--idemo-chrome-accent) 30%, transparent);
		--idemo-focus: var(--idemo-chrome-accent);
		color-scheme: dark;
	}
	.idemo-player__bar { border-bottom: 0; }
	.idemo-player__chip:hover { border-color: rgb(255 255 255 / .3); }
	.idemo-choice { background: var(--idemo-chrome-soft); border-color: var(--idemo-chrome-line); }
	.idemo-choice:hover .idemo-choice__num { color: var(--idemo-chrome); }
	/* The primary button is the light one on the dark sheet. */
	.idemo-player .idemo-player__guide .idemo-btn { --sheen: rgb(97 81 229 / .13); background: var(--idemo-chrome-ink); color: var(--idemo-chrome); }
	.idemo-player .idemo-player__guide .idemo-btn:hover { background: rgb(255 255 255 / .86); color: var(--idemo-chrome); }
}
/* The More toggle and the grabber exist only for the phone sheet. The grabber shows only
   when there is more to open; a tap on it or a swipe on the sheet opens and closes it. */
.idemo-player__more,
.idemo-player__grabber { display: none; }
@media (max-width: 720px) {
	.idemo-player__grabber {
		position: relative;
		display: block;
		flex: none;
		width: 36px;
		height: 4px;
		margin: 8px auto 8px;
		border-radius: 2px;
		background: rgb(255 255 255 / .28);
		opacity: 0;
		cursor: pointer;
		transition: opacity .25s var(--idemo-ease);
	}
	.idemo-player__grabber::after { content: ""; position: absolute; inset: -10px -32px; }
	.idemo-player__guide.can-expand .idemo-player__grabber { opacity: 1; }
	.idemo-player__guide:not(.can-expand) .idemo-player__grabber { pointer-events: none; }
	.idemo-player__more:not([hidden]) {
		display: inline-flex;
		align-items: center;
		gap: 5px;
		min-height: 42px;
		margin: 0 auto 0 0;
		padding: 0 4px 0 0;
		border: 0;
		background: none;
		color: var(--idemo-accent);
		font: inherit;
		font-size: 14px;
		font-weight: 500;
		cursor: pointer;
	}
	.idemo-player__more svg { transition: transform .25s var(--idemo-ease); }
	.idemo-player__more[aria-expanded="true"] svg { transform: rotate(180deg); }
	.idemo-player__more:focus-visible { outline: 2px solid var(--idemo-focus); outline-offset: 2px; border-radius: 4px; }
}
@media (max-width: 380px) {
	.idemo-player__nav [data-idemo-back] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.idemo-player__nav [data-idemo-back] { width: 40px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.idemo-player[open],
	.idemo-player__guide.is-in .idemo-player__step > *,
	.idemo-player__hint.is-ready i::after,
	.idemo-player__choices.is-ready .idemo-player__choices-eyebrow i::after,
	.idemo-player__voice[aria-pressed="true"] .idemo-voice-on path:last-child,
	.idemo-player__view[aria-pressed="true"] svg,
	.idemo-player__guide.is-expanded .idemo-player__step > * { animation: none; }
	.idemo-player__more svg,
	.idemo-player__grabber { transition: none; }
	.idemo-card__poster,
	.idemo-card__poster img,
	.idemo-card__play,
	.idemo-choice,
	.idemo-stage-rec__media,
	.idemo-stage-rec__media img,
	.idemo-stage-rec__play,
	.idemo-stage-rec__cta,
	.idemo-stage-rec__cta svg,
	.idemo-stage-more__row,
	.idemo-stage-more__arrow,
	.idemo-stage-action,
	.idemo-player__frame,
	.idemo-player__frame iframe,
	.idemo-player__progress span.is-current::after { transition: none; }
	.idemo-stage-end { translate: none; transition-duration: .1s; }
	@starting-style { .idemo-stage-end { translate: none; } }
	.idemo-stage-end[hidden] { translate: none; }
	.idemo-card__poster:hover,
	.idemo-choice:hover,
	.idemo-stage-rec:hover .idemo-stage-rec__play,
	.idemo-stage-rec:hover .idemo-stage-rec__cta svg,
	.idemo-stage-more__row:hover .idemo-stage-more__arrow { transform: none; }
	.idemo-card__poster:hover img,
	.idemo-stage-rec:hover .idemo-stage-rec__media img { transform: none; }
}
