/**
 * Feature tiles (wpi/feature-tiles): a bento of theme features, each with a
 * small live interface. Ported from the wpinterface--fse theme; its design
 * tokens are mapped to this theme's below. Loops run only while the block is
 * on screen (.is-in, set by service-blocks.js) and never for reduced motion.
 */
.wpi-ft {
	--wpi-brand: var(--indigo, #4C5BFF);
	--wpi-ink: var(--ink, #0B0B12);
	--wpi-line: var(--line, #DDDFEC);
	--wpi-muted: var(--muted, #4A4C5E);
	--wpi-mono: var(--wp--preset--font-family--mono);
	--wpi-ease: var(--ease, cubic-bezier(.22, 1, .36, 1));
	--wpi-ease-io: cubic-bezier(.65, 0, .35, 1);
	--wpi-spring: cubic-bezier(.34, 1.56, .64, 1);
	--wpi-float: 0 1px 1px rgba(11, 11, 18, .03), 0 8px 16px -6px rgba(11, 11, 18, .06), 0 28px 56px -18px rgba(11, 11, 18, .16);
	--wpi-lens: #A9B1FF;
	--wpi-lens-soft: #E7E9FF;
	--wpi-paper: #FAFAFC;
	--wp--preset--spacing--xx-large: var(--wp--preset--spacing--60);
}

.wpi-ft {
	padding-block: var(--wp--preset--spacing--xx-large);
}

.wpi-ft__head {
	max-width: 820px;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Section label + heading (the source theme's .wpi-label / .wpi-h2, scoped to this block). */
.wpi-ft__label {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	margin: 0 0 1rem;
	font-family: var(--wpi-mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wpi-muted);
}

.wpi-ft__label::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wpi-brand);
	box-shadow: 5px 0 0 -1px var(--wpi-lens);
	margin-right: 6px;
}

.wpi-ft__title {
	margin: 0;
	font-size: clamp(2.1rem, 4.6vw, 4.25rem);
	font-weight: 450;
	line-height: 1.2;
	letter-spacing: -.045em;
	text-wrap: balance;
	color: var(--wpi-ink);
}

.wpi-ft__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.wpi-ft__tile {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	border: 1px solid var(--wpi-line);
	border-radius: 26px;
	background: #fff;
	transition: transform .6s var(--wpi-ease), box-shadow .6s var(--wpi-ease);
}

.wpi-ft__tile:hover {
	transform: translateY(-4px);
	box-shadow: var(--wpi-float);
}

.wpi-ft__tile--wide {
	grid-column: span 2;
}

.wpi-ft__tile--dark {
	border-color: transparent;
	background: var(--wpi-ink);
	color: #fff;
}

.wpi-ft__tile--brand {
	border-color: transparent;
	background: var(--wpi-brand) radial-gradient(80% 100% at 100% 0%, rgba(169, 177, 255, .5), transparent 60%);
	color: #fff;
}

.wpi-ft__tile h3 {
	margin: 1.25rem 0 .4rem;
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: -.02em;
}

.wpi-ft__tile p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--wpi-muted);
}

.wpi-ft__tile--dark p,
.wpi-ft__tile--brand p {
	color: rgba(255, 255, 255, .72);
}

.wpi-ft__viz {
	position: relative;
	display: grid;
	place-items: center;
	height: 150px;
	border-radius: 18px;
	background: var(--wpi-paper);
	overflow: hidden;
}

.wpi-ft__tile--wide .wpi-ft__viz {
	height: 190px;
}

.wpi-ft__tile--dark .wpi-ft__viz {
	background: rgba(255, 255, 255, .04);
}

.wpi-ft__tile--brand .wpi-ft__viz {
	background: rgba(255, 255, 255, .1);
}

/* Loops pause off-screen */
.wpi-ft:not(.is-in) .wpi-ft__viz * {
	animation-play-state: paused !important;
}

/* Editor */
.wpi-ftv-editor {
	width: min(86%, 420px);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--wpi-float);
	overflow: hidden;
}

.wpi-ftv-editor__bar {
	display: flex;
	gap: 14px;
	padding: 7px 12px;
	border-bottom: 1px solid var(--wpi-line);
	font-size: 12px;
	color: var(--wpi-muted);
}

.wpi-ftv-editor__canvas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
	padding: 12px;
}

.wpi-ftv-block {
	display: block;
	height: 10px;
	border-radius: 4px;
	background: #ECEDF5;
	animation: wpi-block-in 4.8s var(--wpi-ease) infinite both;
}

.wpi-ftv-block--h { grid-column: span 2; height: 14px; width: 70%; background: var(--wpi-ink); }
.wpi-ftv-block--img { grid-row: span 3; height: auto; min-height: 56px; background: linear-gradient(135deg, var(--wpi-lens), var(--wpi-brand)); animation-delay: .3s; }
.wpi-ftv-block--p { animation-delay: .6s; }
.wpi-ftv-block--short { width: 60%; animation-delay: .8s; }

.wpi-ftv-block--new {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--wpi-ink);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	animation-delay: 1.1s;
}

@keyframes wpi-block-in {
	0% { opacity: 0; transform: translateY(8px); }
	12%, 80% { opacity: 1; transform: none; }
	100% { opacity: 0; }
}

/* Gauge */
.wpi-ftv-gauge {
	position: relative;
	display: grid;
	justify-items: center;
}

.wpi-ftv-gauge svg {
	width: 150px;
	fill: none;
	stroke-width: 7;
	stroke-linecap: round;
}

.wpi-ftv-gauge path { stroke: rgba(255, 255, 255, .1); }

.wpi-ftv-gauge path.v {
	stroke: #12B76A;
	stroke-dasharray: 100;
	stroke-dashoffset: 2;
	animation: wpi-gauge 3.6s var(--wpi-ease) infinite;
	filter: drop-shadow(0 0 8px rgba(18, 183, 106, .6));
}

@keyframes wpi-gauge {
	0% { stroke-dashoffset: 100; }
	40%, 100% { stroke-dashoffset: 2; }
}

.wpi-ftv-gauge b {
	position: absolute;
	top: 30px;
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -.03em;
}

.wpi-ftv-gauge span {
	font-family: var(--wpi-mono);
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
}

/* Device morph */
.wpi-ftv-device {
	display: grid;
	place-items: center;
	padding: 6px;
	border: 2px solid var(--wpi-ink);
	border-radius: 12px;
	animation: wpi-device 6s var(--wpi-ease-io) infinite;
}

.wpi-ftv-device__screen {
	display: grid;
	gap: 5px;
	width: 100%;
	height: 100%;
	border-radius: 6px;
	background: var(--wpi-lens-soft);
}

.wpi-ftv-device__screen i {
	display: block;
	height: 8px;
	border-radius: 3px;
	background: var(--wpi-brand);
	opacity: .5;
}

.wpi-ftv-device__screen i:first-child { opacity: 1; width: 60%; }

@keyframes wpi-device {
	0%, 22% { width: 168px; height: 108px; }
	34%, 56% { width: 100px; height: 120px; border-radius: 14px; }
	68%, 90% { width: 58px; height: 108px; border-radius: 14px; }
	100% { width: 168px; height: 108px; }
}

/* Languages */
.wpi-ftv-lang {
	height: 40px;
	overflow: hidden;
	font-size: 28px;
	font-weight: 450;
	letter-spacing: -.03em;
	line-height: 40px;
	text-align: center;
}

.wpi-ftv-lang span {
	display: block;
	animation: wpi-lang 7.5s var(--wpi-ease-io) infinite;
}

@keyframes wpi-lang {
	0%, 14% { transform: translateY(0); }
	20%, 34% { transform: translateY(-100%); }
	40%, 54% { transform: translateY(-200%); }
	60%, 74% { transform: translateY(-300%); }
	80%, 94% { transform: translateY(-400%); }
	100% { transform: translateY(-500%); }
}

.wpi-ftv-badge {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--wpi-ink);
	color: #fff;
	font-family: var(--wpi-mono);
	font-size: 10px;
}

/* SERP */
.wpi-ftv-serp {
	position: relative;
	display: grid;
	gap: 2px;
	width: 80%;
	padding: 12px 14px 12px 50px;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--wpi-float);
	font-size: 12px;
	animation: wpi-serp 4s var(--wpi-ease) infinite;
}

.wpi-ftv-serp b { font-weight: 400; font-size: 10.5px; color: #12B76A; }
.wpi-ftv-serp strong { font-weight: 500; color: #3340E6; }
.wpi-ftv-serp em { font-style: normal; font-size: 10px; color: #F5B300; }

.wpi-ftv-serp__rank {
	position: absolute;
	left: 12px;
	top: 50%;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 50%;
	background: var(--wpi-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
}

@keyframes wpi-serp {
	0% { transform: translateY(40px); opacity: 0; }
	25%, 85% { transform: none; opacity: 1; }
	100% { transform: translateY(-10px); opacity: 0; }
}

/* Updates */
.wpi-ftv-update {
	display: grid;
	justify-items: center;
	gap: 10px;
}

.wpi-ftv-update__ver {
	display: flex;
	gap: 10px;
	font-family: var(--wpi-mono);
	font-size: 15px;
}

.wpi-ftv-update__ver s { color: var(--wpi-muted); }

.wpi-ftv-update__ver b {
	font-weight: 500;
	color: var(--wpi-brand);
	animation: wpi-pop 3s var(--wpi-spring) infinite;
}

.wpi-ftv-update__ok {
	padding: 4px 12px;
	border-radius: 999px;
	background: #ECFDF3;
	color: #067647;
	font-size: 12px;
	font-weight: 500;
}

@keyframes wpi-pop {
	0%, 30% { transform: scale(.7); opacity: 0; }
	45%, 100% { transform: none; opacity: 1; }
}

/* Support typing */
.wpi-ftv-support {
	display: flex;
	align-items: center;
	gap: 10px;
	--wpi-logo-overlap: #A9B1FF;
}

.wpi-ftv-support__typing {
	display: flex;
	gap: 4px;
	padding: 12px 14px;
	border-radius: 16px 16px 16px 4px;
	background: #fff;
	box-shadow: var(--wpi-float);
}

.wpi-ftv-support__typing i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wpi-muted);
	animation: wpi-typing 1.2s ease-in-out infinite;
}

.wpi-ftv-support__typing i:nth-child(2) { animation-delay: .15s; }
.wpi-ftv-support__typing i:nth-child(3) { animation-delay: .3s; }

@keyframes wpi-typing {
	0%, 60%, 100% { transform: none; opacity: .4; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* Import */
.wpi-ftv-import {
	display: grid;
	gap: 14px;
	width: min(80%, 380px);
}

.wpi-ftv-import__bar {
	height: 8px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .2);
	overflow: hidden;
}

.wpi-ftv-import__bar i {
	display: block;
	height: 100%;
	border-radius: 8px;
	background: #fff;
	animation: wpi-import 4.5s var(--wpi-ease-io) infinite;
}

@keyframes wpi-import {
	0% { width: 0; }
	70%, 100% { width: 100%; }
}

.wpi-ftv-import ul {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.wpi-ftv-import li {
	display: flex;
	align-items: center;
	gap: 6px;
	opacity: .5;
	animation: wpi-check 4.5s infinite;
}

.wpi-ftv-import li::before {
	content: "✓";
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	color: var(--wpi-brand);
	font-size: 11px;
}

.wpi-ftv-import li:nth-child(2) { animation-delay: .9s; }
.wpi-ftv-import li:nth-child(3) { animation-delay: 1.8s; }

@keyframes wpi-check {
	0%, 25% { opacity: .5; }
	35%, 100% { opacity: 1; }
}

@media (max-width: 1080px) {
	.wpi-ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.wpi-ft__grid { grid-template-columns: 1fr; }
	.wpi-ft__tile--wide { grid-column: auto; }
}

.wpi-ftv-device { width: 168px; height: 108px; }
.wpi-ftv-import__bar i { width: 100%; }

/* Feature tiles: plugin compatibility tile (completes the last row) */
.wpi-ftv-plugins {
	position: relative;
	display: grid;
	gap: 10px;
	padding: 14px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.wpi-ftv-plugins__row {
	overflow: hidden;
}

.wpi-ftv-plugins__track {
	display: flex;
	gap: 10px;
	width: max-content;
	animation: wpi-ftv-plugins 28s linear infinite;
}

.wpi-ftv-plugins__row.is-rev .wpi-ftv-plugins__track {
	animation-direction: reverse;
	animation-duration: 32s;
}

.wpi-ft__tile--plugins:hover .wpi-ftv-plugins__track {
	animation-play-state: paused;
}

@keyframes wpi-ftv-plugins {
	to { transform: translateX(-50%); }
}

.wpi-ftv-plugins__chip {
	display: grid;
	place-items: center;
	flex: none;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--wpi-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 6px 16px -12px rgba(11, 11, 18, .4);
}

.wpi-ftv-plugins__chip img {
	display: block;
	height: 18px;
	width: auto;
}

.wpi-ftv-plugins__badge {
	position: absolute;
	left: 50%;
	top: 50%;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem .9rem .45rem .55rem;
	border-radius: 999px;
	background: var(--wpi-ink);
	color: #fff;
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 14px 30px -12px rgba(11, 11, 18, .5);
}

.wpi-ftv-plugins__badge svg {
	display: grid;
	width: 20px;
	height: 20px;
	padding: 3px;
	border-radius: 50%;
	background: var(--indigo, #4C5BFF);
	color: #fff;
}

@keyframes wpi-ftv-plugins {
	to { transform: translateX(-50%); }
}

/* Feature tiles: Accessibility Module panel (full row, 40% copy / 60% two live demos) */
.wpi-ft__tile--full {
	grid-column: 1 / -1;
}

.wpi-ft__tile--a11y {
	padding: clamp(1.25rem, 2.4vw, 2rem);
	background: #fff radial-gradient(60% 90% at 0% 100%, rgba(169, 177, 255, .22), transparent 70%);
}

.wpi-ft__tile--a11y:hover {
	transform: none;
}

.wpi-fta {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: clamp(1.5rem, 3vw, 2.75rem);
	align-items: center;
}

.wpi-fta__copy h3 {
	margin: 1rem 0 .6rem;
	font-size: clamp(1.6rem, 2.6vw, 2.25rem);
	font-weight: 450;
	line-height: 1.15;
	letter-spacing: -.035em;
}

.wpi-fta__copy > p {
	font-size: 15.5px;
}

.wpi-fta__new {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .3rem .75rem .3rem .55rem;
	border-radius: 999px;
	background: var(--wpi-lens-soft);
	color: #3340E6;
	font-family: var(--wpi-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.wpi-fta__new i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wpi-brand);
	box-shadow: 0 0 0 0 rgba(76, 91, 255, .5);
	animation: wpi-fta-ping 2.4s ease-out infinite;
}

@keyframes wpi-fta-ping {
	0% { box-shadow: 0 0 0 0 rgba(76, 91, 255, .5); }
	70%, 100% { box-shadow: 0 0 0 7px rgba(76, 91, 255, 0); }
}

.wpi-fta__list {
	display: grid;
	gap: .6rem;
	margin: 1.4rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
	line-height: 1.45;
}

.wpi-fta__list li {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
}

.wpi-fta__list svg {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: -1px;
	padding: 3px;
	border-radius: 50%;
	background: var(--wpi-ink);
	color: #fff;
}

.wpi-fta__std {
	display: inline-block;
	margin-top: 1.4rem;
	padding: .3rem .7rem;
	border: 1px solid var(--wpi-line);
	border-radius: 8px;
	font-family: var(--wpi-mono);
	font-size: 11px;
	letter-spacing: .06em;
	color: var(--wpi-muted);
}

.wpi-fta__demos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.wpi-fta__demo {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 330px;
	padding: 14px;
	border-radius: 20px;
	background: var(--wpi-paper);
	box-shadow: inset 0 0 0 1px rgba(11, 11, 18, .04);
}

.wpi-fta__cap {
	margin-top: auto;
	font-family: var(--wpi-mono);
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wpi-muted);
}

.wpi-fta__cap em {
	font-style: normal;
	color: var(--wpi-brand);
	transition: opacity .4s;
}

.wpi-fta__cap em::before {
	content: "· ";
}

.wpi-fta.is-touched .wpi-fta__cap em {
	opacity: 0;
}

/* Demo 1: reader toolbar restyling a mini page */
.wpi-fta-reader__page {
	--rp-bg: #fff;
	--rp-ink: var(--wpi-ink);
	--rp-text: var(--wpi-muted);
	--rp-link: #3340E6;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 12px 14px 16px;
	border-radius: 14px;
	background: var(--rp-bg);
	box-shadow: var(--wpi-float);
	overflow: hidden;
	transition: background .45s var(--wpi-ease);
}

.wpi-fta-reader__bar {
	display: flex;
	gap: 4px;
}

.wpi-fta-reader__bar i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wpi-line);
}

.wpi-fta-reader__banner {
	position: relative;
	display: flex;
	gap: 8px;
	flex: none;
	height: 58px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--wpi-lens), var(--wpi-brand));
	overflow: hidden;
}

.wpi-fta-reader__banner i {
	position: absolute;
	top: 50%;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	animation: wpi-fta-float 5s linear infinite;
}

.wpi-fta-reader__banner i:nth-child(2) { width: 16px; height: 16px; margin-top: -2px; animation-delay: -1.7s; }
.wpi-fta-reader__banner i:nth-child(3) { width: 38px; height: 38px; margin-top: -26px; border-radius: 10px; animation-delay: -3.3s; background: rgba(255, 255, 255, .3); }

@keyframes wpi-fta-float {
	from { left: -40px; transform: rotate(0); }
	to { left: 100%; transform: rotate(180deg); }
}

.wpi-fta-reader__page strong {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--rp-ink);
	transition: font-size .45s var(--wpi-ease), color .45s, letter-spacing .45s;
}

.wpi-fta-reader__text {
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--rp-text);
	transition: font-size .45s var(--wpi-ease), color .45s, line-height .45s, letter-spacing .45s;
}

.wpi-fta-reader__text u {
	text-decoration: none;
	color: var(--rp-link);
	border-radius: 3px;
	transition: background .35s, box-shadow .35s, color .35s;
}

.wpi-fta-reader__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: auto;
}

.wpi-fta-reader__row > span {
	display: grid;
	grid-template-columns: 22px 1fr auto;
	align-items: center;
	gap: 7px;
	padding: 6px;
	border: 1px solid var(--wpi-line);
	border-radius: 9px;
	font-size: 10.5px;
	color: var(--rp-ink);
	white-space: nowrap;
	transition: font-size .45s var(--wpi-ease), color .45s, border-color .45s;
}

.wpi-fta-reader__row i {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--wpi-lens-soft);
}

.wpi-fta-reader__row > span:last-child i { background: #FDE7D6; }
.wpi-fta-reader__row b { font-weight: 600; }

.wpi-fta-reader.is-big .wpi-fta-reader__row > span { font-size: 12.5px; }
.wpi-fta-reader.is-contrast .wpi-fta-reader__row > span { border-color: #fff; }
.wpi-fta-reader.is-contrast .wpi-fta-reader__row i { background: #444; }
.wpi-fta-reader.is-font .wpi-fta-reader__row > span { font-family: Verdana, Tahoma, sans-serif; }

.wpi-fta-reader.is-big .wpi-fta-reader__page strong { font-size: 18px; }
.wpi-fta-reader.is-big .wpi-fta-reader__text { font-size: 14px; }

.wpi-fta-reader.is-contrast .wpi-fta-reader__page {
	--rp-bg: #000;
	--rp-ink: #fff;
	--rp-text: #fff;
	--rp-link: #FFE600;
}

.wpi-fta-reader.is-contrast .wpi-fta-reader__banner { filter: grayscale(1) contrast(1.4); }

.wpi-fta-reader.is-font .wpi-fta-reader__page strong,
.wpi-fta-reader.is-font .wpi-fta-reader__text {
	font-family: Verdana, Tahoma, sans-serif;
	letter-spacing: .04em;
	word-spacing: .12em;
}

.wpi-fta-reader.is-font .wpi-fta-reader__text { line-height: 1.8; }

.wpi-fta-reader.is-links .wpi-fta-reader__text u {
	text-decoration: underline 2px;
	text-underline-offset: 2px;
	background: #FFE600;
	color: #0B0B12;
	box-shadow: 0 0 0 2px #FFE600;
}

.wpi-fta-reader.is-still .wpi-fta-reader__banner i {
	animation-play-state: paused !important;
}

.wpi-fta-reader__tools {
	display: flex;
	align-items: center;
	gap: 4px;
	align-self: center;
	padding: 5px;
	border-radius: 999px;
	background: var(--wpi-ink);
	box-shadow: 0 14px 30px -14px rgba(11, 11, 18, .6);
}

.wpi-fta-reader__mark {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--wpi-brand);
	color: #fff;
}

.wpi-fta-reader__tool {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, .7);
	cursor: pointer;
	transition: background .25s, color .25s, transform .35s var(--wpi-spring);
}

.wpi-fta-reader__tool:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.wpi-fta-reader__tool[aria-pressed="true"] {
	background: #fff;
	color: var(--wpi-ink);
	transform: scale(1.08);
}

.wpi-fta-reader__tool:focus-visible,
.wpi-fta-keys__key:focus-visible {
	outline: 2px solid #FFE600;
	outline-offset: 2px;
}

/* Demo 2: keyboard focus walk-through + screen-reader announcement */
.wpi-fta-keys__page {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 8px;
	flex: 1;
	padding: 44px 14px 14px;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--wpi-float);
	font-size: 12px;
	color: var(--wpi-ink);
	overflow: hidden;
}

.wpi-fta-keys__page::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 14px;
	width: 18px;
	height: 18px;
	border-radius: 6px;
	background: var(--wpi-ink);
}

.wpi-fta-keys__stop {
	position: relative;
	z-index: 1;
	padding: 6px 9px;
	border-radius: 8px;
	white-space: nowrap;
	transition: color .3s, background .3s, transform .45s var(--wpi-ease), opacity .45s;
}

.wpi-fta-keys__stop--skip {
	position: absolute;
	left: 40px;
	top: 10px;
	background: var(--wpi-ink);
	color: #fff;
	font-weight: 500;
	opacity: 0;
	transform: translateY(-140%);
}

.wpi-fta-keys__stop--skip.is-focus {
	opacity: 1;
	transform: none;
}

.wpi-fta-keys__stop--nav { color: var(--wpi-muted); }
.wpi-fta-keys__stop--nav.is-focus { color: var(--wpi-ink); }

.wpi-fta-keys__stop--field {
	flex-basis: 100%;
	margin-top: 8px;
	padding: 9px 11px;
	border: 1px solid var(--wpi-line);
	color: #8A8CA0;
}

.wpi-fta-keys__stop--btn {
	padding: 9px 14px;
	border-radius: 999px;
	background: var(--wpi-brand);
	color: #fff;
	font-weight: 500;
}

.wpi-fta-keys__ring {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	width: 0;
	height: 0;
	border-radius: 10px;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #FFB800, 0 0 18px 4px rgba(255, 184, 0, .45);
	pointer-events: none;
	opacity: 0;
	transition: transform .5s var(--wpi-ease), width .5s var(--wpi-ease), height .5s var(--wpi-ease), opacity .3s;
}

.wpi-fta-keys.is-ready .wpi-fta-keys__ring { opacity: 1; }

/* Until JS measures, the focused stop draws its own ring. */
.wpi-fta-keys:not(.is-ready) .wpi-fta-keys__stop.is-focus {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #FFB800;
}

.wpi-fta-keys__sr {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-basis: 100%;
	margin-top: auto;
	padding: 9px 11px;
	border-radius: 10px;
	background: var(--wpi-ink);
	color: #fff;
	font-family: var(--wpi-mono);
	font-size: 10.5px;
	line-height: 1.35;
}

.wpi-fta-keys__sr svg {
	flex: none;
	color: var(--wpi-lens);
}

.wpi-fta-keys__sr span.is-new {
	animation: wpi-fta-say .5s var(--wpi-ease) both;
}

@keyframes wpi-fta-say {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: none; }
}

.wpi-fta-keys__keys {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.wpi-fta-keys__key {
	min-width: 72px;
	padding: 8px 12px;
	border: 1px solid var(--wpi-line);
	border-bottom-width: 3px;
	border-radius: 10px;
	background: #fff;
	color: var(--wpi-ink);
	font-family: var(--wpi-mono);
	font-size: 11.5px;
	cursor: pointer;
	transition: transform .15s, border-bottom-width .15s;
}

.wpi-fta-keys__key--tab { min-width: 92px; }

.wpi-fta-keys__key:active,
.wpi-fta-keys__key.is-press {
	transform: translateY(2px);
	border-bottom-width: 1px;
}

.wpi-ft:not(.is-in) .wpi-ft__tile--a11y * {
	animation-play-state: paused !important;
}

@media (max-width: 1080px) {
	.wpi-fta { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.wpi-ft__tile--full { grid-column: auto; }
	.wpi-fta__demos { grid-template-columns: 1fr; }
	.wpi-fta__demo { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
	.wpi-ft__viz *,
	.wpi-ftv-plugins__track,
	.wpi-ft__tile--a11y * {
		animation: none !important;
	}
}
