/* ==========================================================================
   Konix IT — "next" layer
   Warmer surfaces, cursor-aware effects and the interactive homepage
   sections. Loaded only when the next design is enabled (body.kx-next).
   1 Tokens & warmer tone   2 Scroll progress   3 Pointer effects
   4 Hero details           5 Hand-drawn underline   6 Day tour
   7 Solution builder       8 People section   9 Process & CTA
   10 Preview badge & form note   11 Small screens & reduced motion
   ========================================================================== */

/* 1 Tokens & warmer tone -------------------------------------------------- */
.kx-next {
	--kx-sand: #faf6f0;
	--kx-sand-line: #ece4d8;
	--kx-warm: #f59e0b;
	--kx-warm-deep: #b45309;
	--kx-warm-soft: #fff4e2;
}

.kx-next .kx-section--muted { background: var(--kx-sand); }
.kx-next .kx-section--muted .kx-card,
.kx-next .kx-section--muted .kx-step__num { border-color: var(--kx-sand-line); }
.kx-next .kx-card,
.kx-next .kx-tile { border-radius: 24px; }
.kx-next .kx-feature { border-radius: 18px; }

/* A small warm dot replaces the hard line in front of eyebrows. */
.kx-next .kx-eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--kx-warm); }

/* A soft warm light in the dark heroes. */
.kx-next .kx-hero__bg::after {
	content: "";
	position: absolute;
	bottom: -35%;
	inset-inline-start: 28%;
	width: min(55vw, 560px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 158, 11, 0.13) 0%, rgba(245, 158, 11, 0) 62%);
	animation: kx-drift-b 30s ease-in-out infinite alternate-reverse;
}

/* 2 Scroll progress ------------------------------------------------------- */
.kx-progress {
	position: fixed;
	top: 0;
	inset-inline: 0;
	z-index: 70;
	height: 3px;
	background: linear-gradient(90deg, var(--kx-blue-600), var(--kx-cyan-400), var(--kx-warm));
	transform: scaleX(var(--p, 0));
	transform-origin: left;
	pointer-events: none;
}
[dir="rtl"] .kx-progress { transform-origin: right; }
.admin-bar .kx-progress { top: var(--wp-admin--admin-bar--height, 32px); }

/* 3 Pointer effects (added by next.js on fine pointers only) ------------- */
.kx-next .kx-feature,
.kx-next .kx-tile,
.kx-next .kx-promise { position: relative; }

.kx-spot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(420px circle at var(--px, 50%) var(--py, 50%), rgba(37, 99, 235, 0.1), transparent 45%);
	opacity: 0;
	transition: opacity 0.35s var(--kx-ease);
	pointer-events: none;
}
.kx-dark .kx-spot::after { background: radial-gradient(420px circle at var(--px, 50%) var(--py, 50%), rgba(34, 211, 238, 0.12), transparent 45%); }
.kx-spot.is-lit::after { opacity: 1; }

.kx-next .kx-card.is-tilting {
	transform: translateY(-4px) perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 0.12s linear, box-shadow 0.35s var(--kx-ease), border-color 0.35s;
}

.kx-magnetic {
	translate: var(--tx, 0px) var(--ty, 0px);
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s var(--kx-ease), transform 0.25s var(--kx-ease), translate 0.4s var(--kx-ease);
}

/* Glow that follows the cursor in dark heroes. */
.kx-next .kx-hero::after,
.kx-next .kx-page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(520px circle at var(--cx, 70%) var(--cy, 30%), rgba(34, 211, 238, 0.09), transparent 55%);
	opacity: 0;
	transition: opacity 0.6s var(--kx-ease);
	pointer-events: none;
}
.kx-next .kx-hero.is-glow::after,
.kx-next .kx-page-hero.is-glow::after { opacity: 1; }

/* 4 Hero details ---------------------------------------------------------- */
.kx-rotator-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.35em; }
.kx-rotator { display: inline-grid; overflow: hidden; color: var(--kx-white); }
.kx-rotator__word {
	grid-area: 1 / 1;
	white-space: nowrap;
	transition: opacity 0.55s var(--kx-ease), translate 0.55s var(--kx-ease);
}
.kx-rotator__word:not(.is-on) { opacity: 0; translate: 0 100%; }
.kx-rotator__word.is-out { opacity: 0; translate: 0 -100%; }
.kx-rotator__word.is-on { color: var(--kx-warm); }

/* 5 Hand-drawn underline -------------------------------------------------- */
.kx-scribble { position: relative; display: inline-block; white-space: nowrap; }
.kx-scribble__line {
	position: absolute;
	inset-inline: -2%;
	bottom: -0.16em;
	width: 104%;
	height: 0.32em;
	overflow: visible;
	pointer-events: none;
}
.kx-scribble__line path {
	fill: none;
	stroke: var(--kx-warm);
	stroke-width: 3.5;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}
.js .kx-scribble__line path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--kx-ease) 0.45s; }
.js .is-visible .kx-scribble__line path { stroke-dashoffset: 0; }

/* 6 Day tour ---------------------------------------------------------------- */
@property --kx-sky {
	syntax: "<color>";
	inherits: false;
	initial-value: rgba(251, 146, 60, 0.5);
}

.kx-day__wrap { display: grid; gap: 24px; }
@media (min-width: 1024px) {
	.kx-day__wrap { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
}

.kx-day__nav { display: none; }
.js .kx-day__nav { display: grid; gap: 12px; align-content: start; }
.kx-day__tabs { display: grid; gap: 8px; }

.kx-day__tab {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 6px 14px;
	align-items: center;
	padding: 15px 18px;
	border: 1px solid var(--kx-line);
	border-radius: 16px;
	background: var(--kx-white);
	color: var(--kx-ink);
	font: inherit;
	text-align: start;
	cursor: pointer;
	transition: border-color 0.25s, box-shadow 0.3s var(--kx-ease), background-color 0.25s;
}
.kx-day__tab:hover { border-color: var(--kx-line-strong); }
.kx-day__tab[aria-selected="true"] { border-color: transparent; box-shadow: var(--kx-shadow); }
.kx-day__time { font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--kx-muted); }
.kx-day__tab[aria-selected="true"] .kx-day__time { color: var(--kx-warm-deep); }
.kx-day__label { font-weight: 600; }
.kx-day__bar { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 3px; background: var(--kx-line); opacity: 0; transition: opacity 0.3s; }
.kx-day__tab[aria-selected="true"] .kx-day__bar { opacity: 1; }
.kx-day__bar i {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--kx-warm), var(--kx-blue-600));
	transform: scaleX(var(--prog, 0));
	transform-origin: left;
}
[dir="rtl"] .kx-day__bar i { transform-origin: right; }

.kx-day__play {
	justify-self: start;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--kx-blue-600);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.kx-day__stage {
	--kx-sky: rgba(251, 146, 60, 0.5);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(22px, 3.5vw, 40px);
	border-radius: 28px;
	background:
		radial-gradient(90% 80% at 88% 0%, var(--kx-sky), transparent 65%),
		linear-gradient(180deg, var(--kx-navy-900), var(--kx-navy-950));
	box-shadow: var(--kx-shadow-lg);
	color: var(--kx-on-dark);
	container-type: inline-size;
	transition: --kx-sky 1s var(--kx-ease);
}
.kx-day__stage[data-sky="morning"] { --kx-sky: rgba(251, 146, 60, 0.5); }
.kx-day__stage[data-sky="noon"] { --kx-sky: rgba(56, 189, 248, 0.45); }
.kx-day__stage[data-sky="afternoon"] { --kx-sky: rgba(250, 204, 21, 0.38); }
.kx-day__stage[data-sky="evening"] { --kx-sky: rgba(192, 132, 252, 0.42); }
.kx-day__stage[data-sky="night"] { --kx-sky: rgba(37, 99, 235, 0.3); }

/* Stars, visible at night. */
.kx-day__stage::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
		radial-gradient(1px 1px at 28% 8%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 46% 22%, #fff, transparent),
		radial-gradient(1px 1px at 63% 12%, #fff, transparent),
		radial-gradient(1px 1px at 82% 30%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 92% 9%, #fff, transparent);
	opacity: 0;
	transition: opacity 1s var(--kx-ease);
}
.kx-day__stage[data-sky="night"]::before { opacity: 0.55; }

/* Sun by day, moon at night. */
.kx-day__sun {
	position: absolute;
	z-index: -1;
	top: var(--sun-y, 62%);
	inset-inline-end: var(--sun-x, 78%);
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: radial-gradient(circle, #ffe7b3 0%, #fbbf24 40%, rgba(251, 191, 36, 0) 70%);
	opacity: 0.75;
	transition: top 1.1s var(--kx-ease), inset-inline-end 1.1s var(--kx-ease), opacity 0.8s, background 0.8s;
}
[data-sky="morning"] .kx-day__sun { --sun-y: 58%; --sun-x: 80%; }
[data-sky="noon"] .kx-day__sun { --sun-y: 4%; --sun-x: 42%; }
[data-sky="afternoon"] .kx-day__sun { --sun-y: 16%; --sun-x: 10%; }
[data-sky="evening"] .kx-day__sun { --sun-y: 62%; --sun-x: 2%; opacity: 0.55; }
[data-sky="night"] .kx-day__sun { --sun-y: 8%; --sun-x: 8%; background: radial-gradient(circle at 38% 38%, #f8fafc 0%, #cbd5e1 32%, rgba(203, 213, 225, 0) 62%); opacity: 0.6; }

.kx-day__panel { display: grid; gap: 24px; align-items: center; }
.kx-day__panel + .kx-day__panel { margin-top: 48px; }
.js .kx-day__panel + .kx-day__panel { margin-top: 0; }
.js .kx-day:not(.is-ready) .kx-day__panel + .kx-day__panel { display: none; }
@container (min-width: 640px) {
	.kx-day__panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; }
}
.kx-day__panel:focus-visible { outline-offset: 6px; border-radius: 12px; }
.kx-day__visual { container-type: inline-size; }
.kx-day__visual .kx-panel { font-size: clamp(7px, 3cqi, 12.5px); }
.kx-day__clock { margin: 0 0 8px; font-family: var(--kx-mono); font-size: 0.875rem; color: var(--kx-cyan-300); }
.kx-day__copy h3 { margin-bottom: 12px; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }
.kx-day__copy p { color: var(--kx-on-dark); }
.kx-day__with { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.kx-dark .kx-day__with a,
.kx-day__with a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--kx-line-dark);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--kx-white);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s;
}
.kx-day__with a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kx-day__with a:hover { border-color: rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.08); color: var(--kx-white); }
.kx-day__with a:focus-visible { outline-color: var(--kx-cyan-400); }

.kx-day__panel.is-entering .kx-day__visual { animation: kx-day-visual 0.7s var(--kx-ease) both; }
.kx-day__panel.is-entering .kx-day__copy > * { animation: kx-fade-up 0.6s var(--kx-ease) both; }
.kx-day__panel.is-entering .kx-day__copy > :nth-child(2) { animation-delay: 0.07s; }
.kx-day__panel.is-entering .kx-day__copy > :nth-child(3) { animation-delay: 0.14s; }
.kx-day__panel.is-entering .kx-day__copy > :nth-child(4) { animation-delay: 0.21s; }

/* 7 Solution builder ------------------------------------------------------- */
.kx-build__grid { display: grid; gap: clamp(32px, 5vw, 56px); }
.kx-build__grid > * { min-width: 0; }
@media (min-width: 1024px) {
	.kx-build__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
	.kx-build__preview { position: sticky; top: calc(var(--kx-header) + 28px); }
}

html:not(.js) .kx-build__ui,
html:not(.js) .kx-build__preview { display: none; }
.js .kx-build__fallback { display: none; }

.kx-build__group { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.kx-build__group legend { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0; color: var(--kx-ink); font-size: 1.0625rem; font-weight: 650; }
.kx-build__step {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--kx-warm-soft);
	color: var(--kx-warm-deep);
	font-size: 0.875rem;
	font-weight: 700;
}

.kx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.kx-pill { position: relative; display: inline-flex; }
.kx-pill input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.kx-pill span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--kx-line-strong);
	border-radius: 999px;
	background: var(--kx-white);
	color: var(--kx-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.25;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, box-shadow 0.25s var(--kx-ease);
}
.kx-pill .kx-icon { width: 18px; height: 18px; color: var(--kx-blue-600); transition: color 0.2s; }
.kx-pill:hover span { border-color: var(--kx-blue-600); }
.kx-pill input:checked + span {
	border-color: var(--kx-navy-900);
	background: var(--kx-navy-900);
	color: var(--kx-white);
	box-shadow: 0 10px 22px -14px rgba(7, 17, 31, 0.8);
	animation: kx-pop 0.35s var(--kx-ease);
}
.kx-pill input:checked + span .kx-icon { color: var(--kx-cyan-300); }
.kx-pill input:focus-visible + span { outline: 3px solid var(--kx-blue-600); outline-offset: 2px; }

.kx-link-btn {
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--kx-blue-600);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.kx-app {
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 22px;
	background: linear-gradient(180deg, #10284a 0%, #0b1f3a 100%);
	box-shadow: var(--kx-shadow-lg);
	color: var(--kx-on-dark);
	container-type: inline-size;
}
.kx-app .kx-win { font-size: 0.875rem; }
.kx-app__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 300px; }
@container (max-width: 460px) {
	.kx-app__body { grid-template-columns: minmax(0, 1fr); }
	.kx-app__side { display: none; }
}
.kx-app__side { padding: 16px; border-inline-end: 1px solid rgba(148, 163, 184, 0.14); background: rgba(7, 17, 31, 0.35); font-size: 0.8125rem; }
.kx-app__type { display: block; margin-bottom: 14px; color: var(--kx-white); font-weight: 650; line-height: 1.3; }
.kx-app__nav li { padding: 7px 9px; border-radius: 8px; color: var(--kx-on-dark-muted); }
.kx-app__nav li.is-on { background: rgba(34, 211, 238, 0.1); color: var(--kx-cyan-300); }
.kx-app__main { padding: 18px; }
.kx-app__empty { margin: 0; padding: 28px 20px; border: 1px dashed rgba(148, 163, 184, 0.3); border-radius: 14px; color: var(--kx-on-dark-muted); font-size: 0.9375rem; text-align: center; }
.kx-app__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kx-app__tile { padding: 12px 13px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 12px; background: rgba(148, 163, 184, 0.07); }
.kx-app__tile b { display: flex; align-items: center; gap: 8px; color: var(--kx-white); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.kx-app__tile .kx-icon { width: 16px; height: 16px; color: var(--kx-cyan-300); }
.kx-app__tile i { display: block; height: 6px; margin-top: 9px; border-radius: 99px; background: rgba(148, 163, 184, 0.24); }
.kx-app__tile i:last-child { width: 58%; margin-top: 6px; }
.kx-app__tile.is-new { animation: kx-tile-in 0.5s var(--kx-ease) both; }

.kx-build__result { margin-top: 22px; }
.kx-build__recs-title { margin: 0 0 12px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kx-muted); }
.kx-build__recs { display: grid; gap: 10px; margin-bottom: 20px; }
.kx-build__recs a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 12px;
	align-items: center;
	padding: 14px 18px;
	border: 1px solid var(--kx-sand-line, var(--kx-line));
	border-inline-start: 3px solid var(--accent);
	border-radius: 14px;
	background: var(--kx-white);
	text-decoration: none;
	animation: kx-fade-up 0.45s var(--kx-ease) both;
	transition: box-shadow 0.2s;
}
.kx-build__recs a:hover { box-shadow: var(--kx-shadow-sm); }
.kx-build__rec-name { font-weight: 650; color: var(--kx-ink); }
.kx-build__rec-desc { grid-column: 1 / -1; font-size: 0.875rem; color: var(--kx-muted); }
.kx-build__note { margin: 14px 0 0; font-size: 0.875rem; color: var(--kx-muted); }
.kx-build__fallback p { font-size: 1.0625rem; }

/* 8 People section ------------------------------------------------------------ */
.kx-human {
	background-color: var(--kx-sand);
	background-image: radial-gradient(rgba(180, 83, 9, 0.07) 1px, transparent 1.5px);
	background-size: 22px 22px;
}
.kx-promises { display: grid; gap: 12px; margin-top: 28px; }
.kx-promise {
	display: flex;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--kx-sand-line);
	border-radius: 18px;
	background: var(--kx-white);
	transition: box-shadow 0.3s var(--kx-ease), translate 0.3s var(--kx-ease);
}
.kx-promise:hover { box-shadow: var(--kx-shadow-sm); translate: 0 -2px; }
.kx-promise .kx-icon-box { background: var(--kx-warm-soft); border-color: #fde3b6; color: var(--kx-warm-deep); }
.kx-promise h3 { margin: 0 0 4px; font-size: 1.0625rem; }
.kx-promise p { margin: 0; font-size: 0.9375rem; }

.kx-human__visual { position: relative; display: grid; gap: 20px; }
.kx-chat {
	margin: 0;
	padding: clamp(20px, 3vw, 30px);
	border-radius: 26px;
	background:
		radial-gradient(80% 70% at 100% 0%, rgba(245, 158, 11, 0.16), transparent 60%),
		radial-gradient(70% 60% at 0% 100%, rgba(37, 99, 235, 0.25), transparent 60%),
		var(--kx-navy-900);
	box-shadow: var(--kx-shadow-lg);
	color: var(--kx-on-dark);
}
.kx-chat__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--kx-white); font-size: 0.875rem; font-weight: 600; }
.kx-chat__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--kx-warm), #f97316); color: #2a1600; font-size: 0.875rem; font-weight: 800; }
.kx-chat__live { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; color: #6ee7b7; font-size: 0.75rem; font-weight: 600; }
.kx-chat__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: kx-pulse 2s ease-out infinite; }
.kx-chat__list { display: grid; gap: 12px; }
.kx-bubble { max-width: 86%; margin: 0; padding: 12px 16px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.5; }
.kx-bubble--them { justify-self: start; border-end-start-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.kx-bubble--us { justify-self: end; border-end-end-radius: 6px; background: var(--kx-blue-600); color: var(--kx-white); }
.kx-bubble__who { display: block; margin-bottom: 2px; font-size: 0.75rem; font-weight: 600; opacity: 0.75; }
.kx-typing { justify-self: end; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: rgba(37, 99, 235, 0.35); }
.kx-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--kx-white); animation: kx-typing 1.2s ease-in-out infinite; }
.kx-typing i:nth-child(2) { animation-delay: 0.15s; }
.kx-typing i:nth-child(3) { animation-delay: 0.3s; }
.js .kx-bubble,
.js .kx-typing { opacity: 0; translate: 0 10px; transition: opacity 0.5s var(--kx-ease), translate 0.5s var(--kx-ease); }
.js .kx-bubble { transition-delay: calc(var(--b, 0) * 0.7s + 0.35s); }
.js .kx-typing { transition-delay: 1.9s; }
.js .kx-chat.is-visible .kx-bubble,
.js .kx-chat.is-visible .kx-typing { opacity: 1; translate: 0 0; }
.kx-chat figcaption { margin-top: 16px; font-size: 0.8125rem; color: var(--kx-on-dark-muted); }

.kx-note {
	position: relative;
	justify-self: end;
	max-width: 24rem;
	margin-top: -56px;
	margin-inline-end: -6px;
	padding: 24px 26px 18px;
	border-radius: 6px;
	background: #fffdf7;
	box-shadow: 0 22px 44px -22px rgba(15, 23, 42, 0.4);
	color: #3f3a33;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.0625rem;
	font-style: italic;
	line-height: 1.55;
	rotate: -2deg;
	transition: rotate 0.5s var(--kx-ease);
}
.kx-note:hover { rotate: 0deg; }
.kx-note::before {
	content: "";
	position: absolute;
	top: -11px;
	inset-inline-start: 50%;
	width: 88px;
	height: 22px;
	border-radius: 2px;
	background: rgba(245, 158, 11, 0.35);
	translate: -50% 0;
	rotate: 3deg;
}
.kx-note p { margin: 0 0 10px; }
.kx-note__sign { margin: 0 !important; font-family: "Segoe Print", "Bradley Hand", "Snell Roundhand", Georgia, serif; font-size: 1rem; font-style: normal; color: var(--kx-warm-deep); }
/* Keep the note's own rotation when it is revealed. */
.js .kx-note[data-reveal] { scale: none; }

/* 9 Process & CTA ------------------------------------------------------------- */
.kx-next .kx-step__num { transition: background-color 0.4s var(--kx-ease), color 0.4s var(--kx-ease), border-color 0.4s, box-shadow 0.4s var(--kx-ease); }
.kx-next .kx-step.is-done .kx-step__num {
	border-color: transparent;
	background: var(--kx-blue-600);
	color: var(--kx-white);
	box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

@property --kx-angle {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}
.kx-next .kx-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: conic-gradient(from var(--kx-angle), transparent 0 68%, rgba(34, 211, 238, 0.75) 80%, rgba(245, 158, 11, 0.65) 90%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: kx-spin 9s linear infinite;
	pointer-events: none;
}

/* 10 Preview badge & form note -------------------------------------------- */
.kx-next-badge {
	position: fixed;
	z-index: 80;
	bottom: 16px;
	inset-inline-start: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	max-width: min(420px, calc(100% - 32px));
	padding: 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: var(--kx-navy-950);
	box-shadow: var(--kx-shadow-lg);
	color: var(--kx-white);
	font-size: 0.8125rem;
	line-height: 1.4;
}
.kx-next-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kx-warm); }
.kx-next-badge span { flex: 1; }
.kx-next-badge a { color: var(--kx-cyan-300); font-weight: 600; }

.kx-prefill-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--kx-warm-soft); color: #7c2d12; font-size: 0.875rem; }

/* Keyframes ------------------------------------------------------------------- */
@keyframes kx-day-visual { from { opacity: 0; scale: 0.96; translate: 0 12px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes kx-tile-in { from { opacity: 0; scale: 0.9; translate: 0 8px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes kx-pop { 50% { scale: 1.05; } }
@keyframes kx-typing { 0%, 60%, 100% { opacity: 0.35; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }
@keyframes kx-spin { to { --kx-angle: 360deg; } }

/* 11 Small screens & reduced motion ------------------------------------------ */
@media (max-width: 1023.98px) {
	.js .kx-day__tabs {
		grid-auto-flow: column;
		grid-auto-columns: minmax(170px, 1fr);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 4px 2px 10px;
		overscroll-behavior-x: contain;
	}
	.kx-day__tab { scroll-snap-align: start; }
	.kx-note { justify-self: center; margin: 0; rotate: -1deg; }
}

@media (max-width: 767.98px) {
	.kx-next .kx-hero__bg::after,
	.kx-next .kx-cta::after,
	.kx-chat__live::before,
	.kx-typing i { animation: none; }
	.kx-day__sun { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.kx-progress { display: none; }
	.kx-rotator__word:not(.is-on) { display: none; }
	.js .kx-bubble,
	.js .kx-typing { opacity: 1 !important; translate: none !important; }
	.js .kx-scribble__line path { stroke-dashoffset: 0 !important; }
	.kx-next .kx-cta::after { animation: none; }
	.kx-magnetic { translate: none !important; }
}
