/*
Kerix Core: design tokens
Color  green #2A8573 / deep #1B5F51 (brand, text accents) · orange #F6A32D (actions, live signals)
       paper #FAFDFB (page) · mint #EEF8F4 (washes) · ink #17302B (text) · muted #566B65 · line #D9E9E3
Type   Bricolage Grotesque (headlines, numbers) + Instrument Sans (everything else), self-hosted
Idea   The logo is a circuit-traced K. Circuit traces (thin lines, round nodes) are the one motif:
       they draw in on the hero, light up per service, connect the steps, and appear on 404 and CTA.
*/

@font-face {
	font-family: 'Bricolage Grotesque';
	src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Instrument Sans';
	src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--green: #2A8573;
	--green-deep: #1B5F51;
	--green-tint: #E3F3EE;
	--mint: #EEF8F4;
	--orange: #F6A32D;
	--orange-deep: #9A5A00;
	--orange-tint: #FEF0D9;
	--paper: #FAFDFB;
	--ink: #17302B;
	--muted: #566B65;
	--line: #D9E9E3;
	--white: #FFFFFF;
	--display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--shadow-s: 0 1px 2px rgba(23, 48, 43, .05), 0 6px 18px rgba(23, 48, 43, .06);
	--shadow-l: 0 2px 4px rgba(23, 48, 43, .04), 0 24px 60px rgba(42, 133, 115, .16);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; color-scheme: light; }
body.kx {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
.kx img { max-width: 100%; height: auto; display: block; }
.kx a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kx a:hover { color: var(--green); }
.kx :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.kx h1, .kx h2, .kx h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.02em; }
.kx p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kx-skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff !important; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.kx-skip:focus { top: 12px; }
.kx-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.kx-narrow { max-width: 780px; }

/* -------------------------------------------------------------- Buttons */
.kx-btn {
	--bg: var(--green); --fg: #fff;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
	font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
	background: var(--bg); color: var(--fg) !important;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s;
	overflow: hidden; isolation: isolate;
}
.kx-btn .kx-ic { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.kx-btn:hover .kx-ic { transform: translateX(4px); }
.kx-btn:active { transform: scale(.97); }
.kx-btn-lg { padding: 15px 28px; font-size: 1.0625rem; }
.kx-btn-primary { --bg: var(--orange); --fg: var(--ink); box-shadow: 0 6px 18px rgba(246, 163, 45, .35); }
.kx-btn-primary::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
	transform: translateX(-120%); transition: transform .7s var(--ease);
}
.kx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(246, 163, 45, .42); }
.kx-btn-primary:hover::before { transform: translateX(120%); }
.kx-btn-line { --bg: transparent; --fg: var(--green-deep); border-color: var(--green); }
.kx-btn-line:hover { --bg: var(--green-tint); transform: translateY(-2px); }
.kx-btn-quiet { --bg: transparent; --fg: var(--ink); padding-inline: 14px; }
.kx-btn-quiet:hover { --bg: var(--green-tint); }

/* -------------------------------------------------------------- Header */
.kx-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	background: rgba(250, 253, 251, .72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, height .3s var(--ease), background-color .3s;
}
.kx-header.is-scrolled { --header-h: 64px; border-color: var(--line); box-shadow: 0 8px 28px rgba(23, 48, 43, .05); background: rgba(250, 253, 251, .9); }
.kx-header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.kx-logo, .custom-logo-link { display: inline-flex; align-items: center; }
.kx-logo img, .custom-logo { height: 46px; width: auto; transition: height .3s var(--ease); }
.kx-header.is-scrolled .kx-logo img, .kx-header.is-scrolled .custom-logo { height: 38px; }
.kx-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.kx-menu, .kx-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.kx-menu a {
	position: relative; display: block; padding: 8px 12px; border-radius: 10px;
	color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem;
}
.kx-menu a::after {
	content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
	background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.kx-menu a:hover::after, .kx-menu .current-menu-item > a::after { transform: scaleX(1); }
.kx-nav-cta { display: flex; align-items: center; gap: 8px; }
.kx-nav-cta .kx-btn { padding: 10px 18px; font-size: .95rem; }
.kx-burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--green-tint); cursor: pointer; position: relative; }
.kx-burger i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--green-deep); transition: transform .4s var(--ease), opacity .2s, top .4s var(--ease); }
.kx-burger i:nth-of-type(1) { top: 16px; }
.kx-burger i:nth-of-type(2) { top: 22px; }
.kx-burger i:nth-of-type(3) { top: 28px; }
.kx-burger[aria-expanded="true"] i:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.kx-burger[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.kx-burger[aria-expanded="true"] i:nth-of-type(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 880px) {
	.kx-burger { display: block; }
	.kx-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 8px;
		padding: 12px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px rgba(23, 48, 43, .1);
		clip-path: inset(0 0 100% 0); opacity: 0; visibility: hidden;
		transition: clip-path .5s var(--ease), opacity .3s, visibility 0s .5s;
	}
	.kx-nav.is-open { clip-path: inset(0); opacity: 1; visibility: visible; transition: clip-path .5s var(--ease), opacity .3s; }
	.kx-menu { flex-direction: column; gap: 0; }
	.kx-menu a { padding: 14px 8px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.kx-menu a::after { display: none; }
	.kx-nav-cta { flex-direction: column; align-items: stretch; margin-top: 12px; }
	.kx-nav-cta .kx-btn { padding: 14px 18px; }
}

/* -------------------------------------------------------------- Type */
.kx-h1 { font-size: clamp(2.5rem, 4.9vw, 4.2rem); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
.kx-h1-sm { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
.kx-h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.kx-h3 { font-size: 1.4rem; font-weight: 650; }
.kx-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34rem; line-height: 1.55; }

/* -------------------------------------------------------------- Hero */
.kx-hero {
	position: relative; padding: clamp(36px, 6vw, 88px) 0 clamp(48px, 7vw, 100px);
	background:
		radial-gradient(60% 70% at 88% 12%, rgba(42, 133, 115, .14), transparent 70%),
		radial-gradient(34% 40% at 6% 66%, rgba(246, 163, 45, .11), transparent 70%);
}
.kx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.kx-hero-copy { display: flex; flex-direction: column; gap: 26px; }
.kx-h1 .kx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.kx-h1 .kx-w > span { display: inline-block; transform: translateY(110%); animation: kx-rise .9s var(--ease) forwards; animation-delay: calc(.08s * var(--i) + .1s); }
@keyframes kx-rise { to { transform: none; } }
.kx-hero .kx-lead { opacity: 0; animation: kx-fade .8s var(--ease) .75s forwards; }
.kx-hero .kx-actions { opacity: 0; animation: kx-fade .8s var(--ease) .9s forwards; }
.kx-hero .kx-networks { opacity: 0; animation: kx-fade .8s var(--ease) 1.05s forwards; }
@keyframes kx-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.kx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kx-actions-center { justify-content: center; }
.kx-networks { font-size: .93rem; color: var(--muted); max-width: 30rem; }

/* The stage: one wallet hub wired to six services; the services take turns lighting up. */
.kx-stage {
	position: relative; border-radius: 36px; padding: clamp(14px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px) 22px;
	background-color: var(--white);
	background-image: radial-gradient(circle, rgba(42, 133, 115, .22) 1.2px, transparent 1.4px);
	background-size: 22px 22px;
	border: 1px solid var(--line); box-shadow: var(--shadow-l);
	opacity: 0; animation: kx-fade .9s var(--ease) .2s forwards;
}
.kx-diagram { position: relative; aspect-ratio: 600 / 520; }
.kx-traces { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kx-trace-line {
	stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 1; stroke-dashoffset: 1;
	animation: kx-draw 1s var(--ease) forwards; animation-delay: var(--d);
	transition: stroke .35s, stroke-width .35s;
}
@keyframes kx-draw { to { stroke-dashoffset: 0; } }
.kx-trace-dot { fill: var(--orange); opacity: 0; transition: opacity .3s; }
.kx-trace.is-live .kx-trace-line { stroke: var(--orange); stroke-width: 3.2; }
.kx-trace.is-live .kx-trace-dot { opacity: 1; }
.kx-hub {
	position: absolute; left: 50%; top: 50%; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.4); opacity: 0;
	border-radius: 28%; background: var(--white); border: 2px solid var(--green); display: grid; place-items: center;
	box-shadow: 0 10px 30px rgba(42, 133, 115, .25);
	animation: kx-pop .7s var(--ease) .35s forwards;
}
.kx-hub img { width: 62%; height: auto; }
.kx-hub-ring { position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--orange); opacity: 0; }
.kx-hub.is-ping .kx-hub-ring { animation: kx-ping 1s var(--ease); }
@keyframes kx-ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes kx-pop { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.kx-chip {
	position: absolute; left: var(--x); top: var(--y); width: 22%; transform: translate(-50%, -50%) scale(.6); opacity: 0;
	display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px;
	background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-s);
	font-weight: 600; font-size: clamp(.68rem, 1.45vw, .92rem); color: var(--ink); white-space: nowrap;
	animation: kx-chip-in .6s var(--ease) forwards; animation-delay: var(--d);
	transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.kx-chip .kx-ic { width: 1.35em; height: 1.35em; color: var(--green); flex: none; transition: color .3s; }
@keyframes kx-chip-in { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.kx-chip.is-live { border-color: var(--orange); background: var(--orange-tint); box-shadow: 0 8px 24px rgba(246, 163, 45, .3); }
.kx-chip.is-live .kx-ic { color: var(--orange-deep); }
.kx-toast {
	position: relative; margin: 16px auto 0; width: fit-content; max-width: 100%;
	display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px;
	background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-s); font-weight: 600; font-size: .95rem;
}
.kx-toast-tick { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; flex: none; }
.kx-toast-tick .kx-ic { width: 16px; height: 16px; stroke-width: 2.6; }
.kx-toast-msg { display: inline-block; transition: opacity .25s, transform .35s var(--ease); }
.kx-toast-msg.is-out { opacity: 0; transform: translateY(8px); }

@media (max-width: 960px) {
	.kx-hero-grid { grid-template-columns: 1fr; }
	.kx-stage { max-width: 600px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
	.kx-chip { padding: 7px 4px; gap: 4px; border-radius: 12px; }
	.kx-chip .kx-ic { display: none; }
	.kx-btn-lg { width: 100%; }
	.kx-actions { flex-direction: column; }
}

/* -------------------------------------------------------------- Sections */
.kx-section { padding: clamp(64px, 9vw, 120px) 0; }
.kx-section-tight { padding-top: clamp(32px, 5vw, 56px); }
.kx-wash { background: linear-gradient(180deg, var(--mint), #F4FBF8); border-block: 1px solid var(--line); }
.kx-head { display: grid; gap: 12px; max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.kx-head p { color: var(--muted); font-size: 1.125rem; }
.kx-head-left { margin-bottom: 0; }

/* Entrance: elements start slightly small and settle; staggered by --n. Only used on a few blocks. */
.kx-in { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--n, 0) * 90ms); }
.kx-in.is-in { opacity: 1; transform: none; }
.no-js .kx-in, .kx-in.is-static { opacity: 1; transform: none; }

/* Bento services */
.kx-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.kx-tile {
	--mx: 50%; --my: 50%;
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 26px;
	grid-column: span 2; min-height: 220px; border-radius: 26px; text-decoration: none; color: var(--ink) !important;
	background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-s);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, opacity .8s var(--ease);
}
.kx-tile:nth-child(1) { grid-column: span 4; }
.kx-tile:nth-child(2) { grid-column: span 2; }
.kx-tile:nth-child(3), .kx-tile:nth-child(4) { grid-column: span 3; }
.kx-tile:nth-child(5), .kx-tile:nth-child(6) { grid-column: span 3; }
.kx-tile::before {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
	background: radial-gradient(260px circle at var(--mx) var(--my), rgba(246, 163, 45, .16), transparent 70%);
}
.kx-tile:hover { transform: translateY(-5px); border-color: var(--orange); box-shadow: var(--shadow-l); }
.kx-tile:hover::before { opacity: 1; }
.kx-tile h3 { font-size: 1.5rem; margin-top: auto; padding-top: 28px; }
.kx-tile p { color: var(--muted); max-width: 28rem; font-size: 1rem; }
.kx-tile-ic {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
	background: var(--green-tint); color: var(--green-deep); transition: background-color .3s, color .3s, transform .5s var(--ease);
}
.kx-tile-ic .kx-ic { width: 26px; height: 26px; }
.kx-tile:hover .kx-tile-ic { background: var(--orange); color: var(--ink); transform: rotate(-8deg) scale(1.06); }
.kx-tile-go {
	position: absolute; right: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--line); color: var(--green-deep); transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.kx-tile-go .kx-ic { width: 18px; height: 18px; }
.kx-tile:hover .kx-tile-go { transform: rotate(-45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.kx-tile:nth-child(1) { background: linear-gradient(135deg, #fff 40%, var(--green-tint)); }
.kx-soon { position: absolute; right: 70px; top: 30px; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--orange-tint); color: var(--orange-deep); }
.kx-tile.is-soon .kx-tile-go { display: none; }
.kx-tile.is-soon .kx-soon { right: 24px; }

@media (max-width: 860px) {
	.kx-bento { grid-template-columns: 1fr 1fr; }
	.kx-tile, .kx-tile:nth-child(n) { grid-column: span 1; min-height: 200px; }
	.kx-tile:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 540px) {
	.kx-bento { grid-template-columns: 1fr; }
	.kx-tile:nth-child(n) { grid-column: span 1; min-height: 0; }
	.kx-tile h3 { padding-top: 16px; }
}

/* Steps: a real sequence, so numbered. The connecting trace draws when scrolled into view. */
.kx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; counter-reset: s; }
.kx-steps::before {
	content: ''; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--green);
	transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s;
}
.kx-steps.is-in::before { transform: scaleX(1); }
.kx-steps li { position: relative; padding-top: 76px; }
.kx-step-n {
	position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: var(--white); border: 2px solid var(--green); color: var(--green-deep); font: 700 1.5rem/1 var(--display);
	transition: background-color .4s, color .4s, border-color .4s, transform .6s var(--ease);
	transform: scale(.6);
}
.kx-steps.is-in .kx-step-n { transform: none; background: var(--orange); border-color: var(--orange); color: var(--ink); }
.kx-steps.is-in li:nth-child(2) .kx-step-n { transition-delay: .6s; }
.kx-steps.is-in li:nth-child(3) .kx-step-n { transition-delay: 1.1s; }
.kx-steps li:nth-child(1) .kx-step-n { transition-delay: .1s; }
.kx-steps h3 { font-size: 1.35rem; margin-bottom: 8px; }
.kx-steps p { color: var(--muted); max-width: 22rem; }
@media (max-width: 760px) {
	.kx-steps { grid-template-columns: 1fr; gap: 36px; }
	.kx-steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
	.kx-steps.is-in::before { transform: scaleY(1); }
	.kx-steps li { padding: 0 0 0 80px; min-height: 56px; }
}

/* Security */
.kx-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.kx-points { display: grid; gap: 26px; margin-top: 36px; }
.kx-point { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.kx-point-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green-tint); color: var(--green-deep); }
.kx-point-ic .kx-ic { width: 26px; height: 26px; }
.kx-point h3 { font-size: 1.25rem; margin-bottom: 4px; }
.kx-point p { color: var(--muted); }
.kx-wallet { display: grid; gap: 12px; justify-self: center; width: min(100%, 420px); }
.kx-wallet-card {
	position: relative; display: grid; gap: 4px; padding: 26px; border-radius: 28px; overflow: hidden; color: var(--ink);
	background: linear-gradient(135deg, var(--orange) 0%, #FFC468 100%); box-shadow: 0 24px 60px rgba(246, 163, 45, .35);
	transform: rotate(-2deg); transition: transform .6s var(--ease);
}
.kx-wallet:hover .kx-wallet-card { transform: rotate(0) translateY(-4px); }
.kx-wallet-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .28); }
.kx-wallet-card img { width: 44px; height: 44px; background: #fff; border-radius: 14px; padding: 7px; margin-bottom: 18px; }
.kx-wallet-label { font-size: .9rem; font-weight: 500; opacity: .8; }
.kx-wallet-bal { font: 700 clamp(2.2rem, 5vw, 3rem)/1.1 var(--display); letter-spacing: -.03em; }
.kx-wallet-acct { margin-top: 14px; font-size: .9rem; }
.kx-wallet-acct b { font-weight: 700; letter-spacing: .06em; margin-left: 4px; }
.kx-wallet-row { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-s); font-weight: 500; }
.kx-wallet-row em { margin-left: auto; font-style: normal; font-weight: 700; }
.kx-wallet-row .kx-plus { color: var(--green-deep); }
.kx-wallet-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--green-tint); color: var(--green-deep); }
.kx-wallet-ico .kx-ic { width: 20px; height: 20px; }
.kx-wallet-note { font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .kx-split { grid-template-columns: 1fr; } }

/* Resellers */
.kx-reseller { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.kx-reseller-copy { display: grid; gap: 18px; justify-items: start; }
.kx-reseller-copy p { color: var(--muted); font-size: 1.125rem; max-width: 34rem; }
.kx-reseller-cards { display: grid; gap: 14px; }
.kx-mini { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-s); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.kx-mini:hover { transform: translateX(6px); box-shadow: var(--shadow-l); }
.kx-mini > .kx-ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--orange-tint); color: var(--orange-deep); flex: none; }
.kx-mini h3 { font-size: 1.15rem; }
.kx-mini p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .kx-reseller { grid-template-columns: 1fr; } }

/* FAQ */
.kx-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.kx-faq { display: grid; gap: 12px; }
.kx-q { background: var(--white); border: 1px solid var(--line); border-radius: 20px; transition: border-color .3s, box-shadow .3s; }
.kx-q.is-open { border-color: var(--green); box-shadow: var(--shadow-s); }
.kx-q h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.kx-q button { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-family: var(--body); border-radius: 20px; }
.kx-q button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.kx-q i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); flex: none; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.kx-q i .kx-ic { width: 18px; height: 18px; }
.kx-q.is-open i { transform: rotate(135deg); background: var(--orange); color: var(--ink); }
.kx-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.kx-q.is-open .kx-a { grid-template-rows: 1fr; }
.kx-a > div { overflow: hidden; }
.kx-a p { padding: 0 22px 22px; color: var(--muted); max-width: 40rem; }
@media (max-width: 860px) { .kx-faq-wrap { grid-template-columns: 1fr; } .kx-head-left { margin-bottom: 8px; } }

/* Final call to action */
.kx-cta { padding: 0 0 clamp(64px, 9vw, 110px); }
.kx-cta-box {
	position: relative; overflow: hidden; text-align: center; display: grid; gap: 16px; justify-items: center;
	padding: clamp(40px, 7vw, 84px) clamp(20px, 5vw, 60px); border-radius: 40px;
	background: linear-gradient(135deg, var(--green-tint), #FFF6E6); border: 1px solid var(--line);
}
.kx-cta-box > *:not(svg) { position: relative; z-index: 1; }
.kx-cta-box p { color: var(--muted); font-size: 1.15rem; max-width: 32rem; }
.kx-cta-trace { position: absolute; width: 46%; min-width: 260px; right: -2%; bottom: 0; opacity: .75; }
.kx-cta-trace path { stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .3s; }
.kx-cta-trace circle { fill: var(--orange); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease) 1.4s; }
.is-in .kx-cta-trace path { stroke-dashoffset: 0; }
.is-in .kx-cta-trace circle { transform: scale(1); }

/* -------------------------------------------------------------- Footer */
.kx-footer { background: var(--mint); border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 72px); }
.kx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.kx-footer-brand .kx-logo img, .kx-footer-brand .custom-logo { height: 44px; }
.kx-footer-brand p { margin-top: 14px; color: var(--muted); max-width: 20rem; }
.kx-footer-col h2 { font: 600 1rem/1.2 var(--body); letter-spacing: 0; margin-bottom: 14px; }
.kx-footer-menu { flex-direction: column; gap: 8px; }
.kx-footer-menu a { color: var(--muted); text-decoration: none; }
.kx-footer-menu a:hover { color: var(--green-deep); text-decoration: underline; }
.kx-footer-menu a { display: inline-block; }
.kx-footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .kx-footer-grid { grid-template-columns: 1fr 1fr; } .kx-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .kx-footer-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- Inner pages */
.kx-pagehead { padding: clamp(40px, 6vw, 84px) 0 clamp(20px, 3vw, 36px); background: radial-gradient(50% 120% at 90% 0%, rgba(42, 133, 115, .12), transparent 70%); }
.kx-pagehead .kx-wrap { display: grid; gap: 14px; }
.kx-meta { color: var(--muted); font-size: .95rem; }
.kx-prose { font-size: 1.125rem; line-height: 1.75; }
.kx-prose > * + * { margin-top: 1.25em; }
.kx-prose h2 { font-size: 1.9rem; margin-top: 2em; }
.kx-prose h3 { font-size: 1.4rem; margin-top: 1.8em; }
.kx-prose ul, .kx-prose ol { padding-left: 1.3em; }
.kx-prose li + li { margin-top: .4em; }
.kx-prose blockquote { margin-inline: 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--orange); color: var(--muted); font-size: 1.2rem; }
.kx-prose img { border-radius: 20px; }
.kx-prose table { width: 100%; border-collapse: collapse; }
.kx-prose th, .kx-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.kx-prose pre { overflow-x: auto; padding: 16px 18px; background: var(--mint); border: 1px solid var(--line); border-radius: 16px; font-size: .95rem; }
.kx-prose code { background: var(--mint); padding: .1em .35em; border-radius: 6px; font-size: .92em; }
.kx-prose pre code { background: none; padding: 0; }
.kx-hero-img { margin: 0 0 32px; }
.kx-hero-img img { width: 100%; border-radius: 28px; }
.kx-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.kx-post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-s); transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .8s var(--ease); }
.kx-post:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.kx-post-img { display: block; aspect-ratio: 800 / 520; background: var(--green-tint); overflow: hidden; display: grid; place-items: center; }
.kx-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.kx-post:hover .kx-post-img img { transform: scale(1.05); }
.kx-post-img .kx-post-fallback { width: 72px; height: 72px; object-fit: contain; opacity: .85; }
.kx-post-body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.kx-post-body time { color: var(--muted); font-size: .88rem; }
.kx-post-body h2 { font-size: 1.35rem; line-height: 1.2; }
.kx-post-body h2 a { color: var(--ink); text-decoration: none; }
.kx-post-body h2 a:hover { color: var(--green-deep); }
.kx-post-body p { color: var(--muted); font-size: 1rem; }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 16px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 600; color: var(--ink); transition: background-color .25s, border-color .25s; }
a.page-numbers:hover { border-color: var(--orange); background: var(--orange-tint); }
.page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.post-navigation .nav-links { justify-content: space-between; margin-top: 48px; }
.post-navigation a { display: grid; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; background: var(--white); max-width: 48%; font-weight: 600; }
.post-navigation a span { font-size: .85rem; color: var(--muted); font-weight: 500; }
.kx-empty { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 40px 0; }
.kx-search { display: flex; gap: 8px; width: min(100%, 460px); margin-top: 18px; }
.kx-search input { flex: 1; min-width: 0; padding: 13px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: inherit; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.kx-search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.kx-404 { text-align: center; }
.kx-404 .kx-wrap { display: grid; gap: 18px; justify-items: center; }
.kx-404 .kx-lead { margin-inline: auto; }
.kx-404-trace { width: min(360px, 80%); }
.kx-404-trace path { stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: kx-draw 1.6s var(--ease) .2s forwards; }
.kx-404-trace circle { fill: var(--orange); animation: kx-blink 1.6s ease-in-out infinite; }
@keyframes kx-blink { 50% { opacity: .25; } }
.kx-comments { margin-top: 64px; }
.kx-comment-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; background: var(--white); }
.comment-form .submit { padding: 12px 24px; border: 0; border-radius: 999px; background: var(--orange); color: var(--ink); font: 600 1rem var(--body); cursor: pointer; }
.kx-widget { margin-bottom: 28px; }
.kx-widget-title { font-size: 1.1rem; margin-bottom: 10px; }
.alignwide { max-width: 1100px; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* -------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
	.kx-h1 .kx-w > span { transform: none; }
	.kx-in { opacity: 1; transform: none; }
	.kx-trace-dot { display: none; }
}

/* Balanced headline wrapping */
.kx h1, .kx h2, .kx h3 { text-wrap: balance; }
.kx-lead, .kx-head p { text-wrap: pretty; }

/* Guides: video, figure captions, related list */
.kx-prose video, .kx-prose .wp-block-video video { width: 100%; height: auto; border-radius: 20px; background: var(--mint); }
.kx-prose figcaption { margin-top: 8px; color: var(--muted); font-size: .92rem; text-align: center; }
.kx-prose h3 { font-size: 1.25rem; }
.kx-related { margin-top: 48px; padding: 24px 26px; background: var(--mint); border: 1px solid var(--line); border-radius: 22px; }
.kx-related h2 { font-size: 1.3rem; margin: 0 0 10px; }
.kx-related ul { margin: 0; padding-left: 1.2em; }
.kx-related li + li { margin-top: 6px; }
.kx-related a { color: var(--green-deep); font-weight: 600; }
