/* Locals — cards page only. Builds on site.css and ui.css. */

/* Hero */

.cx-hero .crumbs {
	margin-bottom: 18px;
}

.cx-hero .hero-grid {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.cx-hero h1 {
	font-size: clamp(40px, 4vw, 58px);
}

/* Card faces */

.cx-card {
	position: relative;
	aspect-ratio: 1.586;
	border-radius: 18px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	color: var(--white);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(200, 241, 105, 0.35), transparent 55%),
		linear-gradient(135deg, #173829, #0b1f16);
	box-shadow: 0 30px 60px -24px rgba(11, 31, 22, 0.6);
	transition: transform 0.2s ease-out, box-shadow 0.4s ease;
	--mk-a: var(--paper);
	--mk-c: var(--lime);
}

.cx-card.k-lime {
	color: var(--forest);
	background:
		radial-gradient(110% 130% at 0% 100%, rgba(255, 255, 255, 0.45), transparent 55%),
		linear-gradient(135deg, #d9f78f, #b3e04a);
	--mk-a: var(--forest);
	--mk-c: var(--white);
}

.cx-card.k-paper {
	color: var(--ink);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(200, 241, 105, 0.45), transparent 55%),
		linear-gradient(135deg, #fbf9f2, #e6e0cf);
	--mk-a: var(--forest);
	--mk-c: var(--lime-2);
}

.cx-card .row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.cx-card .brandmark {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.05em;
}

.cx-card .brandmark svg {
	width: 20px;
	height: 20px;
}

.cx-card .chip {
	width: 40px;
	height: 30px;
	border-radius: 7px;
	background: linear-gradient(135deg, #ecdca2, #b99b4c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.cx-card .num {
	font-family: var(--mono);
	letter-spacing: 0.12em;
	font-size: 15px;
	opacity: 0.92;
}

.cx-card .net {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	opacity: 0.75;
}

.cx-card .contactless {
	width: 20px;
	height: 20px;
	opacity: 0.75;
}

.cx-card .shine {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.2) 45%, transparent 60%);
	background-size: 250% 100%;
	animation: shine 5s ease-in-out infinite;
	pointer-events: none;
}

/* Hero stage: card stack, authorisation feed, controls */

.cx {
	position: relative;
	height: 600px;
	perspective: 1400px;
}

.cx-stack {
	position: absolute;
	left: 30px;
	top: 86px;
	width: 262px;
	aspect-ratio: 1.586;
	transform-style: preserve-3d;
	transform: rotateX(18deg) rotateY(-20deg) rotateZ(-5deg);
	transition: transform 0.5s var(--ease-out);
	animation: cx-float 7s ease-in-out infinite;
	z-index: 1;
}

@keyframes cx-float {
	50% { translate: 0 -10px; }
}

.cx-stack .cx-card {
	position: absolute;
	inset: 0;
}

.cx-stack .k-paper {
	transform: translate3d(-76px, -58px, -70px) rotateZ(-7deg);
	box-shadow: 0 20px 40px -24px rgba(11, 31, 22, 0.4);
}

.cx-stack .k-lime {
	transform: translate3d(-38px, -29px, -35px) rotateZ(-3.5deg);
	box-shadow: 0 20px 40px -24px rgba(11, 31, 22, 0.45);
}

.cx-card.is-front.is-ok {
	box-shadow: 0 0 0 3px rgba(200, 241, 105, 0.95), 0 30px 60px -24px rgba(11, 31, 22, 0.6);
}

.cx-card.is-front.is-no {
	box-shadow: 0 0 0 3px rgba(239, 111, 77, 0.9), 0 30px 60px -24px rgba(11, 31, 22, 0.6);
	animation: cx-shake 0.4s ease;
}

@keyframes cx-shake {
	25% { translate: -5px 0; }
	75% { translate: 5px 0; }
}

.cx-frost {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: inherit;
	font-size: 15px;
	font-weight: 700;
	color: var(--white);
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 8px, transparent 8px 16px),
		linear-gradient(135deg, rgba(214, 233, 244, 0.62), rgba(160, 196, 214, 0.5));
	opacity: 0;
	transition: opacity 0.5s ease;
	--ic-fill: rgba(255, 255, 255, 0.25);
}

.cx-frost .ic {
	width: 20px;
	height: 20px;
}

.cx.is-frozen .cx-frost {
	opacity: 1;
}

.cx-feed,
.cx-ctrl {
	position: absolute;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.8) inset,
		0 50px 100px -40px rgba(16, 41, 30, 0.45),
		0 18px 36px -24px rgba(16, 41, 30, 0.3);
}

.cx-feed {
	right: 0;
	top: 52px;
	width: 318px;
	padding: 16px 16px 6px;
	z-index: 2;
}

.cx-feed-head {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14.5px;
}

.cx-mono {
	margin-left: auto;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

.cx-bal {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	margin: 12px 0 6px;
	padding: 12px 14px;
	border-radius: 14px;
	background:
		radial-gradient(120% 160% at 100% 0%, rgba(200, 241, 105, 0.35), transparent 60%),
		var(--forest);
	color: var(--white);
}

.cx-bal small {
	display: block;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.6);
}

.cx-bal b {
	font-family: var(--mono);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.cx-bal em {
	font-style: normal;
	font-size: 12.5px;
	color: var(--lime);
	margin-left: 6px;
}

.cx-delta {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--lime);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.cx-delta.show {
	opacity: 1;
	transform: none;
}

.cx-list {
	list-style: none;
	margin: 0;
	padding: 0;
	height: 302px;
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	overflow: hidden;
}

.cx-ev {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) auto;
	gap: 11px;
	align-items: center;
	padding: 10px 2px;
	border-top: 1px solid var(--paper-2);
	font-size: 13.5px;
}

.cx-list .cx-ev:last-child {
	border-top: 0;
}

.cx.is-run .cx-ev {
	display: none;
}

.cx.is-run .cx-ev.show {
	display: grid;
	animation: cx-in 0.5s var(--ease-out);
}

@keyframes cx-in {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: none; }
}

.cx-ev strong {
	display: block;
	font-weight: 650;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cx-ev small {
	display: block;
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cx-ev.no small {
	color: #b4441f;
}

.cx-ev .amt {
	font-family: var(--mono);
	font-weight: 600;
	text-align: right;
	white-space: nowrap;
}

.cx-ev .amt small {
	font-family: var(--mono);
	font-weight: 500;
	font-size: 11.5px;
	color: var(--muted);
}

.cx-ev.no .amt {
	color: var(--muted);
	text-decoration: line-through;
	text-decoration-color: rgba(180, 68, 31, 0.5);
}

.cx-ic {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: var(--paper);
	color: var(--forest);
}

.cx-ic .ic,
.cx-ic svg {
	width: 18px;
	height: 18px;
}

.cx-ev.ok .cx-ic {
	background: #eef8e2;
	color: #2e6b1f;
	--ic-fill: rgba(63, 174, 42, 0.2);
}

.cx-ev.no .cx-ic {
	background: #fdece6;
	color: #b4441f;
	--ic-fill: rgba(239, 111, 77, 0.16);
}

.cx-ctrl {
	left: 0;
	top: 300px;
	width: 276px;
	padding: 16px 16px 14px;
	z-index: 3;
}

.cx-ctrl-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 14.5px;
}

.cx-ctrl .state {
	font-size: 11.5px;
	padding: 4px 9px;
}

.cx-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-top: 1px solid var(--paper-2);
	font-size: 13.5px;
	font-weight: 600;
}

.cx-row b {
	font-family: var(--mono);
	font-size: 14px;
}

.cx-lbl {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cx-lbl .ic {
	width: 18px;
	height: 18px;
	color: var(--forest);
}

.cx-toggle {
	position: relative;
	width: 40px;
	height: 24px;
	border-radius: 999px;
	background: var(--paper-2);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: background 0.3s ease;
}

.cx-toggle i {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 2px 5px rgba(16, 41, 30, 0.3);
	transition: transform 0.3s var(--ease-out);
}

.cx.is-frozen .cx-toggle {
	background: var(--forest);
}

.cx.is-frozen .cx-toggle i {
	transform: translateX(16px);
	background: var(--lime);
}

.cx-limit {
	padding: 0 0 12px;
	border-top: 1px solid var(--paper-2);
}

.cx-limit .cx-row {
	border-top: 0;
}

.cx-slider {
	position: relative;
	display: block;
	height: 6px;
	border-radius: 3px;
	background: var(--paper-2);
}

.cx-slider i {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	border-radius: 3px;
	background: var(--forest-3);
	transition: width 0.6s var(--ease-out), background 0.3s ease;
}

.cx-slider em {
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--white);
	border: 2px solid var(--forest);
	box-shadow: 0 2px 6px rgba(16, 41, 30, 0.3);
	transition: border-color 0.3s ease;
}

.cx-limit small {
	display: block;
	margin-top: 9px;
	font-size: 12px;
	color: var(--muted);
}

.cx-limit.warn .cx-slider i {
	background: var(--coral);
}

.cx-limit.warn .cx-slider em {
	border-color: var(--coral);
}

.cx-limit.warn .cx-row b {
	color: #b4441f;
}

.cx-mcc {
	padding-top: 10px;
	border-top: 1px solid var(--paper-2);
}

.cx-mcc small {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 8px;
}

.cx-mcc div {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cx-cat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px 3px 7px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 650;
	background: #eef8e2;
	color: #24531a;
	border: 1px solid #cfe9b4;
}

.cx-cat::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.cx-cat.off {
	background: #fdece6;
	color: #a43c1c;
	border-color: #f6cdbf;
}

.cx-cat.flash {
	animation: cx-flash 0.45s ease 3;
}

@keyframes cx-flash {
	50% { background: var(--coral); color: var(--white); border-color: var(--coral); }
}

.cx-hook {
	top: 26px;
	right: -14px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	font-family: var(--mono);
	font-size: 12.5px;
	background: #0a1a12;
	color: #d9e4dc;
	border-color: rgba(255, 255, 255, 0.08);
}

.cx-hook b {
	color: var(--lime);
	font-weight: 600;
}

.cx-hook.no b {
	color: #ff9e80;
}

.cx-hook .ic {
	width: 18px;
	height: 18px;
	color: var(--lime);
	--ic-fill: rgba(200, 241, 105, 0.2);
}

/* Hero feature row */

.cx-points {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 72px;
	border-top: 1px solid var(--line);
}

.cx-points > div {
	padding: 26px 24px 0 0;
}

.cx-points .ic-box {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--white);
	border: 1px solid var(--line);
	color: var(--forest);
	margin-bottom: 16px;
}

.cx-points b {
	display: block;
	font-size: 17px;
	letter-spacing: -0.015em;
}

.cx-points span:not(.ic-box) {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 15px;
	max-width: 250px;
}

/* Decision trace */

.cx-trace {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 40px 80px -40px rgba(16, 41, 30, 0.45);
}

.cx-tabs {
	display: flex;
	gap: 6px;
	padding: 8px;
	background: #faf9f5;
	border-bottom: 1px solid var(--paper-2);
}

.cx-tabs button {
	flex: 1;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 650;
	padding: 9px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	white-space: nowrap;
}

.cx-tabs button[aria-selected='true'] {
	background: var(--white);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line), 0 4px 10px -6px rgba(16, 41, 30, 0.3);
}

.cx-trace-body {
	padding: 20px 22px 22px;
}

.cx-merchant {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--paper-2);
}

.cx-merchant .ic-box {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--paper);
	border: 1px solid var(--line);
	color: var(--forest);
}

.cx-merchant strong {
	display: block;
	font-size: 16px;
}

.cx-merchant small {
	display: block;
	font-size: 12.5px;
	color: var(--muted);
}

.cx-merchant b {
	font-family: var(--mono);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.cx-checks {
	list-style: none;
	position: relative;
	margin: 14px 0 0;
	padding: 0;
}

.cx-checks::before {
	content: '';
	position: absolute;
	left: 11px;
	top: 20px;
	bottom: 20px;
	width: 2px;
	background: var(--paper-2);
}

.cx-checks li {
	position: relative;
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 14px;
	align-items: center;
	padding: 8px 0;
	transition: opacity 0.3s ease;
}

.cx-checks strong {
	display: block;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.cx-checks small {
	display: block;
	font-size: 12.5px;
	color: var(--muted);
	font-family: var(--mono);
}

.cx-dot {
	position: relative;
	z-index: 1;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--white);
	border: 2px solid var(--line);
	transition: background 0.3s ease, border-color 0.3s ease;
}

.cx-checks .pass .cx-dot {
	background: var(--forest);
	border-color: var(--forest);
}

.cx-checks .pass .cx-dot::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 4px;
	width: 5px;
	height: 9px;
	border: solid var(--lime);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.cx-checks .fail .cx-dot {
	background: var(--coral);
	border-color: var(--coral);
}

.cx-checks .fail .cx-dot::before,
.cx-checks .fail .cx-dot::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 9px;
	width: 12px;
	height: 2px;
	border-radius: 1px;
	background: var(--white);
	transform: rotate(45deg);
}

.cx-checks .fail .cx-dot::after {
	transform: rotate(-45deg);
}

.cx-checks .fail small {
	color: #b4441f;
}

.cx-checks .skip {
	opacity: 0.45;
}

.cx-checks .skip .cx-dot {
	border-style: dashed;
}

.cx-trace.is-run .cx-checks li:not(.pass):not(.fail):not(.skip) {
	opacity: 0.4;
}

.cx-result {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 14.5px;
	font-weight: 700;
	border: 1px solid;
	transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.cx-result small {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	opacity: 0.75;
}

.cx-result.ok {
	background: #eef8e2;
	border-color: #cfe9b4;
	color: #24531a;
}

.cx-result.no {
	background: #fdece6;
	border-color: #f6cdbf;
	color: #a43c1c;
}

.cx-trace.is-run .cx-result:not(.show) {
	opacity: 0;
	transform: translateY(6px);
}

.cx-payload {
	background: #0a1a12;
	color: #d9e4dc;
}

.cx-payload pre {
	margin: 0;
	padding: 16px 22px 18px;
	font-size: 12.5px;
	line-height: 1.65;
	overflow-x: auto;
}

/* Design your card */

.cx-ways {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.cx-way {
	margin: 0;
	perspective: 900px;
}

.cx-way .cx-card {
	transform-style: preserve-3d;
}

.cx-way:nth-child(2) .cx-card .shine {
	animation-delay: 1.2s;
}

.cx-way:nth-child(3) .cx-card .shine {
	animation-delay: 2.4s;
}

.cx-way figcaption {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font-size: 16px;
}

.cx-way .sw {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(16, 41, 30, 0.15);
}

.cx-way .sw + .sw {
	margin-left: -12px;
	box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px rgba(16, 41, 30, 0.15);
}

.cx-way figcaption b {
	margin-left: 4px;
}

.cx-way figcaption small {
	margin-left: auto;
	color: var(--muted);
	font-size: 14px;
}

.cx-ways-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 36px 0 0;
	color: var(--muted);
	font-size: 14.5px;
}

.cx-ways-note .ic {
	width: 18px;
	height: 18px;
	color: var(--forest);
}

/* Virtual first: phone */

.cx-phone-wrap {
	position: relative;
	display: grid;
	place-items: center;
	padding: 52px 20px 120px;
	border-radius: 26px;
	background:
		radial-gradient(70% 60% at 70% 100%, rgba(200, 241, 105, 0.5), transparent 70%),
		radial-gradient(50% 50% at 10% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
		var(--paper);
	border: 1px solid var(--line);
}

.cx-phone {
	width: 300px;
}

.cx-ph-card {
	padding: 16px;
	border-radius: 14px;
}

.cx-ph-card .brandmark {
	font-size: 16px;
}

.cx-ph-card .num {
	font-size: 13px;
}

.cx-ship {
	left: 50%;
	bottom: 30px;
	width: 300px;
	margin-left: -150px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px 12px 12px;
	font-size: 14px;
}

.cx-ship .ic-box {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	background: var(--forest);
	color: var(--lime);
	--ic-fill: rgba(200, 241, 105, 0.22);
}

.cx-ship small {
	display: block;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.4;
}

/* Lifecycle */

.cx-life {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	margin-top: 24px;
	align-items: stretch;
}

.cx-life-viz {
	border: 1px solid var(--line-dark);
	border-radius: 22px;
	padding: 28px;
	background:
		radial-gradient(60% 80% at 50% 0%, rgba(200, 241, 105, 0.07), transparent 70%),
		rgba(255, 255, 255, 0.015);
}

.cx-life-viz .mono-kicker {
	margin-bottom: 24px;
}

.cx-states {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cx-states.sub {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px dashed var(--line-dark);
}

.cx-st {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 10px;
	border-radius: 999px;
	background: var(--forest-2);
	border: 1px solid var(--line-dark);
	color: rgba(255, 255, 255, 0.72);
	font-size: 14.5px;
	font-weight: 650;
	white-space: nowrap;
	transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.cx-st .ic {
	width: 18px;
	height: 18px;
}

.cx-st.on {
	background: var(--lime);
	border-color: var(--lime);
	color: var(--forest);
	box-shadow: 0 0 0 6px rgba(200, 241, 105, 0.1);
	--ic-fill: rgba(16, 41, 30, 0.15);
}

.cx-arrow {
	position: relative;
	flex: 1;
	min-width: 18px;
	height: 2px;
	background: rgba(255, 255, 255, 0.16);
}

.cx-arrow::after,
.cx-arrow.both::before {
	content: '';
	position: absolute;
	top: -4px;
	right: 0;
	width: 8px;
	height: 8px;
	border: solid rgba(255, 255, 255, 0.35);
	border-width: 2px 2px 0 0;
	transform: rotate(45deg);
}

.cx-arrow.both::before {
	right: auto;
	left: 0;
	transform: rotate(-135deg);
}

.cx-life-log {
	margin: 22px 0 22px;
	min-height: 3.2em;
	font-family: var(--mono);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.62);
}

.cx-life-list {
	list-style: none;
	margin: 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--line-dark);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.cx-life-list li {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.8);
}

.cx-life-list .ic {
	width: 18px;
	height: 18px;
	color: var(--lime);
}

.cx-life .code {
	display: flex;
	flex-direction: column;
}

.cx-life .code-pane.active {
	flex: 1;
}

/* Responsive */

@media (max-width: 1080px) {
	.cx-hero .hero-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cx {
		max-width: 620px;
		margin-top: 16px;
	}

	.cx-points {
		grid-template-columns: 1fr 1fr;
	}

	.cx-points > div {
		padding-bottom: 24px;
	}

	.cx-ways {
		gap: 18px;
	}

	.cx-life {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 680px) {
	.cx {
		height: auto;
		display: grid;
		gap: 14px;
		perspective: none;
	}

	.cx-stack {
		position: relative;
		left: auto;
		top: auto;
		width: min(270px, 74%);
		margin: 56px 6px 22px auto;
		transform: rotateX(14deg) rotateY(-14deg) rotateZ(-4deg);
	}

	.cx-feed,
	.cx-ctrl {
		position: relative;
		left: auto;
		right: auto;
		top: auto;
		width: auto;
	}

	.cx-hook {
		display: none;
	}

	.cx-card {
		padding: 16px;
	}

	.cx-card .num {
		font-size: 13px;
	}

	.cx-points {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 48px;
	}

	.cx-points > div {
		display: grid;
		grid-template-columns: 42px 1fr;
		column-gap: 14px;
		padding: 18px 0 0;
	}

	.cx-points .ic-box {
		grid-row: span 2;
		margin: 0;
	}

	.cx-points span:not(.ic-box) {
		max-width: none;
	}

	.cx-tabs button {
		font-size: 12.5px;
		padding: 8px;
	}

	.cx-trace-body {
		padding: 16px;
	}

	.cx-merchant b {
		font-size: 17px;
	}

	.cx-result small {
		display: none;
	}

	.cx-life .code .sep {
		flex-wrap: wrap;
		gap: 4px 12px;
	}

	.cx-payload pre {
		padding: 14px 16px;
		font-size: 11.5px;
	}

	.cx-ways {
		grid-template-columns: minmax(0, 1fr);
		max-width: 340px;
		margin: 0 auto;
		gap: 32px;
	}

	.cx-phone-wrap {
		padding: 32px 12px 110px;
	}

	.cx-phone {
		width: 270px;
	}

	.cx-ship {
		right: 12px;
		left: 12px;
		bottom: 18px;
		width: auto;
		margin-left: 0;
	}

	.cx-life-viz {
		padding: 22px 18px;
	}

	.cx-states {
		flex-wrap: wrap;
	}

	.cx-states {
		gap: 6px;
	}

	.cx-st {
		font-size: 13px;
		padding: 7px 11px 7px 8px;
		gap: 6px;
	}

	.cx-st .ic {
		width: 16px;
		height: 16px;
	}

	.cx-states:not(.sub) .cx-arrow {
		flex: 0 0 14px;
		min-width: 14px;
	}

	.cx-life-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Screenshots and reduced motion show the final state */

.shot .cx-stack,
.shot .cx-card .shine,
.shot .cx-card.is-front.is-no,
.shot .cx-cat.flash,
.shot .cx-ev.show {
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	.cx-stack,
	.cx-card .shine,
	.cx-card.is-front.is-no,
	.cx-cat.flash,
	.cx-ev.show {
		animation: none;
	}
}
