/* CROSS 2026 – page sections. Depends on tokens in base.css. */

/* ---------- Section heads ---------- */
.x-head {
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.x-head > * {
	max-width: 50rem;
	margin-block: 0;
}

.x-head__title {
	font-size: clamp(2rem, 1.25rem + 2.6vw, 3.4rem) !important;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.x-head__lead {
	max-width: 40rem;
	margin-top: 1.1rem !important;
	font-size: 1.125rem;
	color: var(--x-muted);
}

.is-dark .x-head__title {
	color: #fff;
}

.is-dark .x-head__lead {
	color: rgba(255, 255, 255, 0.66);
}

.x-center {
	text-align: center;
}

.x-section > .x-link,
.x-section .x-link.x-center {
	margin-top: 2rem;
}

/* ---------- Hero ---------- */
.x-hero {
	overflow: hidden;
}

.x-hero__grid {
	align-items: center !important;
	gap: clamp(2rem, 4vw, 4rem) !important;
}

.x-hero__title {
	margin: 0;
	font-size: clamp(2.6rem, 1.3rem + 4.3vw, 5.1rem) !important;
	line-height: 1;
	letter-spacing: -0.04em;
}

.x-hero__line2 {
	display: block;
	margin-top: 0.12em;
	color: var(--x-text);
	font-weight: 700;
	font-size: 0.62em;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.x-hero__lead {
	max-width: 36rem;
	margin-top: 1.5rem;
	font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
	color: var(--x-text);
}

.x-actions {
	gap: 0.7rem;
	margin-top: 2rem;
}

@media (max-width: 600px) {
	.x-actions .wp-block-button {
		flex: 1 1 100%;
	}

	.x-actions .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}

.x-actions__more {
	display: inline-block;
	margin: 0.9rem 0 0 0.35rem;
}

.x-hero__note {
	max-width: 32rem;
	margin-top: 1.1rem;
	font-size: 0.875rem;
	color: var(--x-muted);
}

.x-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 1.6rem 0 0;
	padding: 0;
	list-style: none;
}

.x-proof li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.7rem;
	font-family: var(--x-mono);
	font-size: 0.75rem;
	color: var(--x-ink);
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: 999px;
}

.x-proof li::before {
	content: "";
	width: 0.85rem;
	height: 0.85rem;
	background: var(--x-mint);
	mask: var(--x-i-check) center / contain no-repeat;
}

/* Stage: 3D emblem with live UI cards around it. */
.x-stage {
	--px: 0;
	--py: 0;
	position: relative;
	aspect-ratio: 1;
	width: min(100%, 560px);
	margin-inline: auto;
}

.x-stage::before {
	content: "";
	position: absolute;
	inset: 12%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 107, 87, 0.22), rgba(31, 91, 255, 0.08) 60%, transparent 72%);
	filter: blur(6px);
}

.x-stage__emblem {
	position: absolute;
	inset: 14%;
	transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -14px), 0);
	transition: transform 0.6s var(--x-ease);
}

.x-stage__emblem img {
	display: block;
	width: 100%;
	height: auto;
	animation: x-float 7s ease-in-out infinite alternate;
	filter: drop-shadow(0 40px 40px rgba(74, 0, 8, 0.25));
}

@keyframes x-float {
	from { transform: translateY(-8px) rotate(-2deg); }
	to { transform: translateY(10px) rotate(2deg); }
}

.x-stage__wires {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.x-wire {
	stroke: var(--x-cobalt);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: x-wire-in 10s var(--x-ease) infinite;
}

.x-wire--out1,
.x-wire--out2 {
	stroke: var(--x-crimson);
	animation-name: x-wire-out;
}

@keyframes x-wire-in {
	0%, 6% { stroke-dashoffset: 1; opacity: 1; }
	18%, 84% { stroke-dashoffset: 0; opacity: 1; }
	92%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes x-wire-out {
	0%, 22% { stroke-dashoffset: 1; opacity: 1; }
	34%, 84% { stroke-dashoffset: 0; opacity: 1; }
	92%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.x-ui {
	position: absolute;
	z-index: 2;
	width: min(250px, 50%);
	padding: 0.85rem 0.95rem;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--x-ink);
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(21, 18, 27, 0.08);
	border-radius: 16px;
	box-shadow: 0 1px 1px rgba(21, 18, 27, 0.04), 0 22px 44px -22px rgba(21, 18, 27, 0.45);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transform: translate3d(calc(var(--px) * 10px), calc(var(--py) * 10px), 0);
}

.x-ui p {
	margin: 0;
}

.x-ui__meta {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.4rem !important;
	font-family: var(--x-mono);
	font-size: 0.68rem;
	color: var(--x-muted);
}

.x-ui__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--x-cobalt);
	box-shadow: 0 0 0 3px var(--x-cobalt-soft);
}

.x-ui__zalo,
.x-ui__b24 {
	display: grid;
	place-items: center;
	height: 1.15rem;
	padding: 0 0.35rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6rem;
	font-weight: 800;
	color: #fff;
	background: #0068ff;
	border-radius: 5px;
}

.x-ui__b24 {
	background: #2fc6f6;
}

.x-ui__title {
	font-weight: 700;
	font-size: 0.875rem;
}

.x-ui__fields {
	display: grid;
	gap: 0.15rem;
	margin: 0.45rem 0 0;
}

.x-ui__fields div {
	display: flex;
	justify-content: space-between;
	gap: 0.6rem;
}

.x-ui__fields dt {
	color: var(--x-muted);
}

.x-ui__fields dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.x-ui__stages {
	display: flex;
	gap: 0.25rem;
	margin: 0.55rem 0 0.45rem;
	padding: 0;
	list-style: none;
}

.x-ui__stages li {
	flex: 1;
	padding: 0.2rem 0;
	font-size: 0.62rem;
	font-weight: 700;
	text-align: center;
	color: var(--x-muted);
	background: var(--x-paper-deep);
	border-radius: 5px;
}

.x-ui__stages .is-done {
	color: #fff;
	background: var(--x-mint);
}

.x-ui__stages .is-on {
	color: #fff;
	background: var(--x-cobalt);
}

.x-ui__assignee {
	font-size: 0.72rem;
	color: var(--x-muted);
}

.x-ui--lead {
	top: 2%;
	left: -2%;
	animation: x-ui-lead 10s var(--x-ease) infinite;
}

.x-ui--zalo {
	top: 8%;
	right: -4%;
	width: min(230px, 46%);
	animation: x-ui-zalo 10s var(--x-ease) infinite;
}

.x-ui--deal {
	right: 0;
	bottom: 4%;
	animation: x-ui-deal 10s var(--x-ease) infinite;
}

@keyframes x-ui-lead {
	0% { opacity: 0; translate: 0 14px; }
	5%, 86% { opacity: 1; translate: 0 0; }
	93%, 100% { opacity: 0; translate: 0 -8px; }
}

@keyframes x-ui-zalo {
	0%, 30% { opacity: 0; translate: 0 14px; }
	36%, 86% { opacity: 1; translate: 0 0; }
	93%, 100% { opacity: 0; translate: 0 -8px; }
}

@keyframes x-ui-deal {
	0%, 38% { opacity: 0; translate: 0 14px; }
	44%, 86% { opacity: 1; translate: 0 0; }
	93%, 100% { opacity: 0; translate: 0 -8px; }
}

@media (max-width: 781px) {
	.x-stage {
		width: min(100%, 420px);
	}

	.x-ui {
		font-size: 0.72rem;
	}

	.x-ui--lead {
		left: 0;
	}

	.x-ui--zalo {
		right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.x-stage *,
	.x-scribble::after {
		animation: none !important;
	}

	.x-wire {
		stroke-dashoffset: 0;
	}
}

/* ---------- Tools marquee ---------- */
.x-tools {
	border-block: 1px solid var(--x-line);
}

.x-marquee__label {
	margin: 0 0 0.8rem;
	font-family: var(--x-mono);
	font-size: 0.75rem;
	color: var(--x-muted);
	text-align: center;
}

.x-marquee {
	display: flex;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.x-marquee__track {
	display: flex;
	flex-shrink: 0;
	gap: 3rem;
	margin: 0;
	padding: 0 1.5rem;
	list-style: none;
	animation: x-marquee 38s linear infinite;
}

.x-marquee:hover .x-marquee__track {
	animation-play-state: paused;
}

.x-marquee__track li {
	font-family: var(--x-display);
	font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: rgba(21, 18, 27, 0.62);
	white-space: nowrap;
}

@keyframes x-marquee {
	to { transform: translateX(-100%); }
}

/* ---------- Pain log ---------- */
.x-pain__grid {
	gap: clamp(2rem, 5vw, 5rem) !important;
}

.x-log {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.x-log__row {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	column-gap: 1rem;
	row-gap: 0.25rem;
	padding: 1rem 1.15rem;
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: var(--x-radius-sm);
	box-shadow: var(--x-shadow-sm);
	transition: transform 0.3s var(--x-ease), box-shadow 0.3s;
}

.x-log__row:hover {
	transform: translateX(-4px);
	box-shadow: var(--x-shadow);
}

.x-log__time {
	grid-column: 1;
	grid-row: 1;
	font-family: var(--x-mono);
	font-size: 0.85rem;
	color: var(--x-ink);
}

.x-log__ch {
	grid-column: 1;
	grid-row: 2;
	font-size: 0.75rem;
	color: var(--x-muted);
}

.x-log__msg {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	font-weight: 600;
	color: var(--x-ink);
}

.x-log__out {
	grid-column: 2;
	grid-row: 2;
	position: relative;
	margin: 0;
	padding-left: 1.4rem;
	font-size: 0.9rem;
	color: var(--x-crimson);
}

.x-log__out::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	mask: var(--x-i-x) center / contain no-repeat;
}

/* ---------- Calculator ---------- */
.x-calc {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: var(--x-radius);
	box-shadow: var(--x-shadow);
}

@media (min-width: 960px) {
	.x-calc {
		grid-template-columns: 1.1fr 0.9fr;
		column-gap: 3rem;
	}

	.x-calc__presets {
		grid-column: 1 / -1;
	}
}

.x-calc__presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.x-chip {
	padding: 0.55rem 1rem;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--x-ink);
	background: var(--x-paper);
	border: 1px solid var(--x-line);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.x-chip:hover {
	border-color: var(--x-ink);
}

.x-chip.is-on {
	color: #fff;
	background: var(--x-ink);
	border-color: var(--x-ink);
}

.x-calc__inputs {
	display: grid;
	gap: 1.25rem;
}

.x-range {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 0.5rem 1rem;
	font-size: 0.95rem;
	color: var(--x-text);
}

.x-range output {
	font-family: var(--x-mono);
	font-size: 0.95rem;
	color: var(--x-ink);
}

.x-range input {
	grid-column: 1 / -1;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	accent-color: var(--x-primary);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.x-range input::-webkit-slider-runnable-track {
	height: 6px;
	background: linear-gradient(90deg, var(--x-primary) var(--fill, 50%), var(--x-paper-deep) var(--fill, 50%));
	border-radius: 6px;
}

.x-range input::-webkit-slider-thumb {
	width: 24px;
	height: 24px;
	margin-top: -9px;
	background: #fff;
	border: 2px solid var(--x-primary);
	border-radius: 50%;
	box-shadow: 0 4px 10px -4px rgba(128, 0, 0, 0.6);
	-webkit-appearance: none;
	appearance: none;
}

.x-range input::-moz-range-track {
	height: 6px;
	background: var(--x-paper-deep);
	border-radius: 6px;
}

.x-range input::-moz-range-progress {
	height: 6px;
	background: var(--x-primary);
	border-radius: 6px;
}

.x-range input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background: #fff;
	border: 2px solid var(--x-primary);
	border-radius: 50%;
}

.x-calc__result {
	position: relative;
	align-self: start;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	color: #fff;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 107, 87, 0.35), transparent 55%),
		linear-gradient(160deg, var(--x-crimson), var(--x-primary) 45%, var(--x-deep));
	border-radius: 16px;
	overflow: hidden;
}

.x-calc__result::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--x-grain);
	opacity: 0.12;
	mix-blend-mode: overlay;
	pointer-events: none;
}

.x-calc__result p {
	margin: 0;
}

.x-calc__label {
	font-family: var(--x-mono);
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.75);
}

.x-calc__big {
	margin: 0.35rem 0 0.4rem !important;
	font-family: var(--x-display);
	font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.x-calc__sub {
	color: rgba(255, 255, 255, 0.85);
}

.x-calc__payback {
	margin-top: 1.25rem;
	padding-top: 1.1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 0.9rem;
}

.x-calc__payback ul {
	display: grid;
	gap: 0.4rem;
	margin: 0.7rem 0 0;
	padding: 0;
	list-style: none;
}

.x-calc__payback li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0.75rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
}

.x-calc__fine {
	margin-top: 1rem !important;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.6);
}

/* ---------- Before / after ---------- */
.x-compare {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: var(--x-radius);
}

.x-compare__head,
.x-compare li {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.x-compare__head p {
	margin: 0;
	padding: 1rem 1.5rem;
	font-family: var(--x-mono);
	font-size: 0.78rem;
	color: var(--x-muted);
	border-bottom: 1px solid var(--x-line);
}

.x-compare__head p + p {
	color: #fff;
	background: var(--x-ink);
	border-bottom-color: var(--x-ink);
}

.x-compare ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.x-compare li + li {
	border-top: 1px solid var(--x-line);
}

.x-compare p {
	position: relative;
	margin: 0;
}

.x-compare__before,
.x-compare__after {
	padding: 1.05rem 1.5rem 1.05rem 3.1rem;
}

.x-compare__before {
	color: var(--x-muted);
}

.x-compare__after {
	font-weight: 600;
	color: var(--x-ink);
	background: linear-gradient(90deg, rgba(31, 91, 255, 0.05), transparent);
}

.x-compare__before::before,
.x-compare__after::before {
	content: "";
	position: absolute;
	left: 1.4rem;
	top: 1.25rem;
	width: 1.05rem;
	height: 1.05rem;
	background: var(--x-crimson);
	mask: var(--x-i-x) center / contain no-repeat;
}

.x-compare__after::before {
	background: var(--x-cobalt);
	mask-image: var(--x-i-check);
}

@media (max-width: 700px) {
	.x-compare__head {
		display: none;
	}

	.x-compare li {
		grid-template-columns: 1fr;
	}
}

/* ---------- Services list ---------- */
.x-svcs {
	border-top: 1px solid var(--x-line);
}

.x-svc {
	position: relative;
	display: grid;
	grid-template-columns: 3rem 7rem 1fr auto;
	align-items: center;
	gap: 1.5rem;
	padding: 1.6rem 0.5rem;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--x-line);
	transition: background-color 0.3s var(--x-ease);
}

.x-svc::before {
	content: "";
	position: absolute;
	inset: 0 -1.25rem;
	z-index: -1;
	background: #fff;
	border-radius: var(--x-radius);
	opacity: 0;
	transform: scale(0.98);
	transition: opacity 0.3s, transform 0.3s var(--x-ease);
}

.x-svc:hover::before {
	opacity: 1;
	transform: none;
	box-shadow: var(--x-shadow);
}

.x-svc__num {
	font-family: var(--x-mono);
	font-size: 0.85rem;
	color: var(--x-muted);
}

.x-svc__img {
	width: 7rem;
	height: 7rem;
	object-fit: contain;
	transition: transform 0.5s var(--x-ease);
}

.x-svc:hover .x-svc__img {
	transform: rotate(-6deg) scale(1.08);
}

.x-svc__body {
	display: grid;
	gap: 0.4rem;
}

.x-svc__name {
	font-family: var(--x-display);
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--x-ink);
}

.x-svc__promise {
	max-width: 36rem;
	color: var(--x-text);
}

.x-svc__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.x-svc__chips li {
	padding: 0.2rem 0.6rem;
	font-size: 0.78rem;
	color: var(--x-muted);
	background: var(--x-paper);
	border: 1px solid var(--x-line);
	border-radius: 999px;
}

.x-svc__price {
	display: grid;
	justify-items: end;
	font-family: var(--x-display);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--x-ink);
	white-space: nowrap;
}

.x-svc__price small {
	font-family: var(--x-mono);
	font-size: 0.72rem;
	font-weight: 400;
	color: var(--x-muted);
}

.x-svc__go {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.5rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	color: var(--x-primary);
}

.x-svc__go::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	mask: var(--x-i-arrow) center / contain no-repeat;
	transition: transform 0.25s var(--x-ease);
}

.x-svc:hover .x-svc__go::after {
	transform: translateX(4px);
}

@media (max-width: 860px) {
	.x-svc {
		grid-template-columns: 5rem 1fr;
		gap: 0.75rem 1rem;
	}

	.x-svc__num {
		display: none;
	}

	.x-svc__img {
		width: 5rem;
		height: 5rem;
	}

	.x-svc__price {
		grid-column: 2;
		justify-items: start;
	}
}

/* ---------- Plans ---------- */
.x-plans {
	display: grid;
	gap: 1.25rem;
	align-items: stretch;
}

.x-plans > * {
	margin: 0;
}

@media (min-width: 980px) {
	.x-plans {
		grid-template-columns: 1fr 1.12fr 1fr;
	}
}

.x-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.4rem, 2.5vw, 2rem);
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: var(--x-radius);
	box-shadow: var(--x-shadow-sm);
}

.x-plan > * {
	margin-block: 0;
}

.x-plan.is-featured {
	color: rgba(255, 255, 255, 0.82);
	background:
		radial-gradient(90% 60% at 100% 0%, rgba(255, 107, 87, 0.28), transparent 60%),
		linear-gradient(170deg, #5c0711, var(--x-deep) 60%, #2a0306);
	border-color: transparent;
	box-shadow: var(--x-shadow-lift);
}

@media (min-width: 980px) {
	.x-plan.is-featured {
		margin-block: -1rem;
	}
}

.x-plan__badge {
	position: absolute;
	top: -0.85rem;
	left: 1.5rem;
	padding: 0.3rem 0.8rem;
	font-family: var(--x-mono);
	font-size: 0.72rem;
	color: var(--x-ink);
	background: var(--x-coral);
	border-radius: 999px;
}

.x-plan__name {
	font-family: var(--x-display);
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--x-ink);
}

.x-plan.is-featured .x-plan__name {
	color: #fff;
}

.x-plan__for {
	margin-top: 0.35rem !important;
	font-size: 0.9rem;
	color: var(--x-muted);
}

.x-plan.is-featured .x-plan__for {
	color: rgba(255, 255, 255, 0.65);
}

.x-plan__price {
	margin-top: 1.35rem !important;
	font-family: var(--x-display);
	font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.9rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--x-ink);
}

.x-plan__price span {
	display: block;
	margin-top: 0.45rem;
	font-family: var(--x-mono);
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--x-muted);
}

.x-plan.is-featured .x-plan__price {
	color: #fff;
}

.x-plan.is-featured .x-plan__price span,
.x-plan.is-featured .x-plan__retail {
	color: rgba(255, 255, 255, 0.6);
}

.x-plan__retail {
	margin-top: 0.5rem !important;
	font-size: 0.85rem;
	color: var(--x-muted);
}

.x-plan__time {
	margin-top: 1rem !important;
	padding: 0.5rem 0.75rem;
	font-family: var(--x-mono);
	font-size: 0.75rem;
	color: var(--x-ink);
	background: var(--x-paper);
	border-radius: 8px;
}

.x-plan.is-featured .x-plan__time {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.x-plan .x-check {
	margin-top: 1.25rem !important;
}

.x-plan__monthly {
	margin-top: 1.25rem !important;
	padding-top: 1rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--x-muted);
	border-top: 1px dashed var(--x-line);
}

.x-plan.is-featured .x-plan__monthly {
	color: rgba(255, 255, 255, 0.6);
	border-top-color: rgba(255, 255, 255, 0.18);
}

.x-plan__cta {
	margin-top: auto !important;
	padding-top: 1.5rem;
}

.x-plan__cta .wp-block-button,
.x-plan__cta .wp-block-button__link {
	width: 100%;
	justify-content: center;
}

.x-plan.is-featured .wp-block-button__link {
	background-color: var(--x-coral);
	color: var(--x-ink);
	box-shadow: 0 14px 30px -14px rgba(255, 107, 87, 0.8);
}

.x-plan.is-featured .wp-block-button__link:hover {
	background-color: #fff;
}

.x-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-top: 2.5rem;
	padding: 1.1rem 1.4rem;
	background: #fff;
	border: 1px dashed rgba(21, 18, 27, 0.25);
	border-radius: var(--x-radius-sm);
}

.x-note > * {
	margin: 0;
}

.x-note__text {
	max-width: 46rem;
}

/* ---------- Lists with icons ---------- */
.x-check {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.x-check li {
	position: relative;
	padding-left: 1.7rem;
	font-size: 0.95rem;
}

.x-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 1.1rem;
	height: 1.1rem;
	background: var(--x-mint);
	mask: var(--x-i-check) center / contain no-repeat;
}

.is-dark .x-check li::before {
	background: var(--x-coral);
}

.x-check--big li {
	padding: 0.9rem 0 0.9rem 2.2rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--x-ink);
	border-bottom: 1px solid var(--x-line);
}

.x-check--big li::before {
	top: 1.1rem;
	width: 1.3rem;
	height: 1.3rem;
	background: var(--x-primary);
}

.x-deliver {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: x-deliver;
}

.x-deliver li {
	counter-increment: x-deliver;
	display: grid;
	grid-template-columns: 2.4rem 1fr;
	align-items: start;
	padding: 0.9rem 1rem;
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: var(--x-radius-sm);
}

.x-deliver li::before {
	content: counter(x-deliver, decimal-leading-zero);
	font-family: var(--x-mono);
	font-size: 0.8rem;
	color: var(--x-cobalt);
	padding-top: 0.15rem;
}

/* ---------- Process timeline + guarantees ---------- */
.x-timeline {
	position: relative;
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.x-timeline {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.25rem;
	}

	.x-timeline::before {
		content: "";
		position: absolute;
		top: 1.15rem;
		left: 0.75rem;
		right: 0.75rem;
		height: 2px;
		background: repeating-linear-gradient(90deg, var(--x-ink) 0 6px, transparent 6px 12px);
		opacity: 0.25;
	}
}

.x-timeline__step {
	position: relative;
	padding-top: 3rem;
}

.x-timeline__step::before {
	content: "";
	position: absolute;
	top: 0.55rem;
	left: 0;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--x-paper);
	border: 3px solid var(--x-primary);
	border-radius: 50%;
}

.x-timeline__step:last-child::before {
	border-color: var(--x-cobalt);
}

.x-timeline__when {
	font-family: var(--x-mono);
	font-size: 0.8rem;
	color: var(--x-primary);
}

.x-timeline__step h3 {
	margin: 0.35rem 0 0.5rem;
	font-size: 1.45rem;
}

.x-timeline__step p {
	margin: 0;
	color: var(--x-text);
}

.x-guarantees {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	gap: 0.75rem;
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
}

.x-guarantee {
	position: relative;
	padding: 3.2rem 1.1rem 1.1rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--x-ink);
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: var(--x-radius-sm);
}

.x-guarantee::before {
	content: "";
	position: absolute;
	top: 1rem;
	left: 1.1rem;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 8px;
	background: var(--x-primary);
}

.x-guarantee::after {
	content: "";
	position: absolute;
	top: 1.3rem;
	left: 1.4rem;
	width: 1rem;
	height: 1rem;
	background: #fff;
	mask: var(--x-i-check) center / contain no-repeat;
}

.x-guarantee--undo::before {
	background-color: var(--x-cobalt);
}

/* ---------- Industries (dark) ---------- */
.x-industries {
	position: relative;
	overflow: hidden;
}

.x-industries::before {
	content: "";
	position: absolute;
	right: -10%;
	top: -20%;
	width: 55%;
	aspect-ratio: 1;
	background: url("../images/3d-automate.webp") center / contain no-repeat;
	opacity: 0.12;
	pointer-events: none;
}

.x-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.x-tab {
	padding: 0.7rem 1.15rem;
	font: inherit;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.75);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.x-tab:hover {
	color: #fff;
	border-color: #fff;
}

.x-tab[aria-selected="true"] {
	color: var(--x-ink);
	background: #fff;
	border-color: #fff;
}

.x-tabpanel {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--x-radius);
}

.x-tabpanel__pain {
	margin: 0 0 1.25rem;
	font-family: var(--x-display);
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
	font-weight: 700;
	color: #fff;
}

.x-flow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: x-flow;
}

.x-flow li {
	counter-increment: x-flow;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.65rem 0.95rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	background: rgba(31, 91, 255, 0.16);
	border: 1px solid rgba(120, 155, 255, 0.35);
	border-radius: 12px;
}

.x-flow li::before {
	content: counter(x-flow);
	display: grid;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	font-family: var(--x-mono);
	font-size: 0.7rem;
	color: var(--x-ink);
	background: #fff;
	border-radius: 50%;
}

.x-flow li:not(:last-child)::after {
	content: "";
	width: 1.6rem;
	height: 1rem;
	margin-right: -2.2rem;
	margin-left: 0.6rem;
	background: rgba(255, 255, 255, 0.55);
	mask: var(--x-i-arrow) center / contain no-repeat;
}

.x-flow li:not(:last-child) {
	margin-right: 2.2rem;
}

.x-flow li:last-child {
	background: var(--x-primary);
	border-color: var(--x-crimson);
}

.x-flow--light li {
	color: var(--x-ink);
	background: #fff;
	border-color: var(--x-line);
}

.x-flow--light li::before {
	color: #fff;
	background: var(--x-ink);
}

.x-flow--light li:not(:last-child)::after {
	background: var(--x-cobalt);
}

.x-flow--light li:last-child {
	color: #fff;
}

.x-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1.5rem;
	padding: 0;
	font: inherit;
	font-weight: 700;
	color: var(--x-coral);
	background: none;
	border: 0;
	cursor: pointer;
}

.x-link-btn::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	mask: var(--x-i-arrow) center / contain no-repeat;
}

/* ---------- FAQ ---------- */
.x-faq-grid {
	gap: clamp(2rem, 5vw, 5rem) !important;
}

.x-faqs {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--x-line);
}

.x-faqs > * {
	margin: 0;
}

.x-faq {
	border-bottom: 1px solid var(--x-line);
}

.x-faq summary {
	position: relative;
	padding: 1.3rem 3rem 1.3rem 0;
	font-family: var(--x-display);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--x-ink);
	list-style: none;
	cursor: pointer;
}

.x-faq summary::-webkit-details-marker {
	display: none;
}

.x-faq summary::after {
	content: "";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	width: 1.6rem;
	height: 1.6rem;
	margin-top: -0.8rem;
	background:
		linear-gradient(var(--x-ink), var(--x-ink)) center / 12px 2px no-repeat,
		linear-gradient(var(--x-ink), var(--x-ink)) center / 2px 12px no-repeat;
	border: 1px solid var(--x-line);
	border-radius: 50%;
	transition: transform 0.3s var(--x-ease), background-color 0.2s;
}

.x-faq[open] summary::after {
	transform: rotate(45deg);
	background-color: var(--x-paper-deep);
}

.x-faq > p {
	max-width: 44rem;
	margin: 0;
	padding: 0 0 1.4rem;
	color: var(--x-text);
}

/* ---------- Latest posts as an editorial list ---------- */
.x-posts__grid {
	gap: clamp(2rem, 5vw, 5rem) !important;
}

.x-postlist .wp-block-post-template {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--x-line);
}

.x-postlist__row {
	display: grid !important;
	grid-template-columns: 6.5rem 1fr;
	gap: 0.25rem 1.25rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--x-line);
}

.x-postlist__row > * {
	margin: 0 !important;
}

.x-postlist__date {
	grid-row: span 2;
	font-family: var(--x-mono);
	font-size: 0.78rem;
	color: var(--x-muted);
	padding-top: 0.25rem;
}

.x-postlist__title {
	font-size: 1.15rem !important;
	line-height: 1.3;
}

.x-postlist__title a {
	color: var(--x-ink);
	text-decoration: none;
	background: linear-gradient(var(--x-primary), var(--x-primary)) left bottom / 0 2px no-repeat;
	transition: background-size 0.35s var(--x-ease), color 0.2s;
}

.x-postlist__title a:hover {
	color: var(--x-primary);
	background-size: 100% 2px;
}

.x-postlist__cat {
	font-size: 0.8rem;
	color: var(--x-muted);
}

.x-postlist__cat a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Final CTA + form ---------- */
.x-cta {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(70% 90% at 0% 100%, rgba(128, 0, 0, 0.75), transparent 60%),
		radial-gradient(50% 60% at 100% 0%, rgba(31, 91, 255, 0.22), transparent 60%),
		var(--x-ink) !important;
}

.x-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--x-grain);
	opacity: 0.1;
	mix-blend-mode: overlay;
}

.x-cta__grid {
	align-items: center !important;
	gap: clamp(2rem, 5vw, 5rem) !important;
}

.x-cta__title {
	margin: 0;
	font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem) !important;
	line-height: 1.02;
	color: #fff;
}

.x-cta__lead {
	margin-top: 1.1rem;
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.72);
}

.x-next {
	display: grid;
	gap: 0.75rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: x-next;
}

.x-next li {
	counter-increment: x-next;
	display: grid;
	grid-template-columns: 2.2rem 1fr;
	align-items: start;
	color: rgba(255, 255, 255, 0.85);
}

.x-next li::before {
	content: counter(x-next);
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	font-family: var(--x-mono);
	font-size: 0.75rem;
	color: var(--x-ink);
	background: var(--x-coral);
	border-radius: 50%;
}

.x-cta__contact {
	margin-top: 1.75rem;
	color: rgba(255, 255, 255, 0.7);
}

.x-cta__contact a {
	color: #fff !important;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(255, 255, 255, 0.4);
}

.x-form {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	color: var(--x-ink);
	background: var(--x-paper);
	border-radius: 22px;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.x-form > * {
	margin-block: 0;
}

.x-form__title {
	margin-bottom: 1.25rem !important;
	font-size: 1.5rem !important;
	color: var(--x-ink) !important;
}

.x-form a {
	color: var(--x-primary) !important;
}

.x-form .wpcf7 form > p {
	margin: 0 0 1rem;
}

.x-field {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
}

.x-field__label {
	display: block;
	margin-bottom: 0.35rem;
}

.x-form input[type="text"],
.x-form input[type="tel"],
.x-form select {
	box-sizing: border-box;
	width: 100%;
	padding: 0.9rem 1rem;
	font: inherit;
	font-weight: 400;
	color: var(--x-ink);
	background: #fff;
	border: 1px solid #d8d2c9;
	border-radius: 12px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.x-form input:focus,
.x-form select:focus {
	outline: none;
	border-color: var(--x-cobalt);
	box-shadow: 0 0 0 4px rgba(31, 91, 255, 0.14);
}

.x-form .wpcf7-submit {
	width: 100%;
	padding: 1rem;
	font: inherit;
	font-weight: 700;
	color: #fff;
	background: var(--x-primary);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 14px 30px -16px rgba(128, 0, 0, 0.9);
	transition: background-color 0.2s, transform 0.2s var(--x-ease);
}

.x-form .wpcf7-submit:hover {
	background: var(--x-crimson);
	transform: translateY(-1px);
}

.x-form form:not(.submitting) .wpcf7-spinner {
	display: none;
}

.x-form-note {
	font-size: 0.8rem;
	color: var(--x-muted);
}

.x-form .wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	font-size: 0.8rem;
	color: #b00020;
}

.x-form .wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	border-radius: 10px;
}

/* ---------- Inner pages ---------- */
.x-page-hero__grid {
	align-items: center !important;
	gap: clamp(2rem, 4vw, 4rem) !important;
}

.x-crumbs {
	margin: 0 0 1.25rem;
	font-family: var(--x-mono);
	font-size: 0.78rem;
	color: var(--x-muted);
}

.x-crumbs a {
	color: inherit;
	text-decoration: none;
}

.x-crumbs a:hover {
	color: var(--x-primary);
}

.x-page-hero__title {
	max-width: 18ch;
	margin: 0;
	font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem) !important;
	line-height: 1.02;
	letter-spacing: -0.04em;
}

.x-page-hero__lead {
	max-width: 40rem;
	margin-top: 1.4rem;
	font-size: 1.15rem;
	color: var(--x-text);
}

.x-page-hero__img img {
	width: 100%;
	max-width: 420px;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	animation: x-float 8s ease-in-out infinite alternate;
}

.x-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 2.25rem 0 0;
	border-top: 1px solid var(--x-line);
}

.x-facts div {
	flex: 1 1 10rem;
	padding: 1rem 1.25rem 0 0;
}

.x-facts dt {
	font-family: var(--x-mono);
	font-size: 0.72rem;
	color: var(--x-muted);
}

.x-facts dd {
	margin: 0.25rem 0 0;
	font-weight: 700;
	color: var(--x-ink);
}

.x-split {
	gap: clamp(2rem, 5vw, 5rem) !important;
}

.x-spec {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
	gap: 0.75rem;
	margin: 0;
}

.x-spec div {
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: var(--x-radius-sm);
}

.x-spec dt {
	font-family: var(--x-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--x-ink);
}

.x-spec dd {
	margin: 0.4rem 0 0;
	color: var(--x-text);
}

.x-spec--4 {
	grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}

.x-muted-note {
	max-width: 44rem;
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: var(--x-muted);
}

.x-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: var(--x-radius-sm);
	overflow: hidden;
}

.x-table caption {
	padding: 0 0 0.75rem;
	text-align: left;
	font-weight: 700;
}

.x-table th,
.x-table td {
	padding: 0.95rem 1.1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--x-line);
}

.x-table tr:last-child th,
.x-table tr:last-child td {
	border-bottom: 0;
}

.x-table th {
	font-weight: 600;
	color: var(--x-ink);
}

.x-table th small {
	display: block;
	margin-top: 0.2rem;
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--x-muted);
}

.x-table td {
	font-family: var(--x-mono);
	font-size: 0.9rem;
	color: var(--x-ink);
	white-space: nowrap;
	text-align: right;
}

.x-table--wide td {
	font-family: inherit;
	white-space: normal;
	text-align: left;
	color: var(--x-text);
}

.x-tables {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr));
	gap: 1.25rem;
}

.x-tables > * {
	margin: 0;
}

.x-table-card h3 {
	margin: 0 0 0.75rem;
	font-size: 1.3rem;
}

.x-third .x-guarantees {
	margin-top: 2rem;
}

.x-contact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: 0.75rem;
}

.x-contact__card {
	display: grid;
	gap: 0.3rem;
	padding: 1.4rem;
	color: var(--x-ink);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: var(--x-radius);
	transition: transform 0.25s var(--x-ease), box-shadow 0.25s, border-color 0.2s;
}

.x-contact__card:hover {
	transform: translateY(-3px);
	box-shadow: var(--x-shadow);
	border-color: var(--x-ink);
}

.x-contact__card span {
	font-family: var(--x-mono);
	font-size: 0.75rem;
	color: var(--x-muted);
}

.x-contact__card b {
	font-family: var(--x-display);
	font-size: 1.3rem;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.x-contact__card small {
	color: var(--x-muted);
}

.x-contact__card.is-zalo {
	color: #fff;
	background: #0068ff;
	border-color: #0068ff;
}

.x-contact__card.is-zalo span,
.x-contact__card.is-zalo small {
	color: rgba(255, 255, 255, 0.8);
}

/* ---------- Blog & single posts ---------- */
.x-article .wp-block-post-title {
	font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem);
	line-height: 1.08;
}

.x-article__meta {
	gap: 0.75rem;
	font-family: var(--x-mono);
	font-size: 0.8rem;
	color: var(--x-muted);
}

.x-article .wp-block-post-terms a {
	text-decoration: none;
}

.x-article .wp-block-post-featured-image img {
	border-radius: var(--x-radius);
}

.x-article .wp-block-post-content {
	font-size: 1.0625rem;
}

.x-article .wp-block-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.x-blog-grid {
	gap: 1.25rem;
}

.x-blog-card {
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--x-line);
	border-radius: var(--x-radius);
	transition: transform 0.25s var(--x-ease), box-shadow 0.25s;
}

.x-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--x-shadow);
}

.x-blog-card > * {
	margin-block: 0;
	padding-inline: 1.25rem;
}

.x-blog-card > .wp-block-post-featured-image {
	padding: 0;
}

.x-blog-card .wp-block-post-title {
	margin-top: 1rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.x-blog-card .wp-block-post-title a {
	color: var(--x-ink);
	text-decoration: none;
}

.x-blog-card .wp-block-post-date {
	margin: 0.6rem 0 1.25rem;
	font-family: var(--x-mono);
	font-size: 0.78rem;
	color: var(--x-muted);
}

.x-story > p,
.x-apply > p {
	max-width: 46rem;
}
