/*
 * KittyPay public site: landing animations, calculator and legal pages.
 * All motion is decorative and disabled for prefers-reduced-motion.
 */

/* ---------- scroll reveal ---------- */
.kp-js .kp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.kp-js .kp-reveal.is-visible { opacity: 1; transform: none; }
.kl-pop { animation: kl-pop .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes kl-pop { from { opacity: 0; transform: translateY(18px); } }

.kl-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--kp-primary); margin-bottom: 8px; }
.kl-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.kl-head h2 { margin-bottom: 8px; }

/* ---------- hero ---------- */
.kl-hero { position: relative; overflow: hidden; padding: 56px 0 84px; background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 70%); }
@media (min-width: 960px) { .kl-hero { padding: 88px 0 110px; } }
.kl-hero__grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .kl-hero__grid { grid-template-columns: 1.05fr .95fr; } }
.kl-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 850; letter-spacing: -.04em; line-height: 1.04; margin: 0 0 16px; background: linear-gradient(100deg, #0f172a 20%, #0f766e 55%, #b45309 90%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: kl-pop .8s both .08s, kl-grad 9s ease-in-out infinite alternate; }
@keyframes kl-grad { to { background-position: 100% 0; } }
.kl-hero .kp-lead { font-size: 1.12rem; color: var(--kp-ink-2); max-width: 560px; }
.kl-dot { width: 8px; height: 8px; border-radius: 50%; background: #14b8a6; box-shadow: 0 0 0 0 rgba(20,184,166,.6); animation: kl-ping 1.8s infinite; }
@keyframes kl-ping { 70% { box-shadow: 0 0 0 10px rgba(20,184,166,0); } 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); } }
.kl-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 22px 0 0; font-size: .88rem; color: var(--kp-ink-2); font-weight: 600; }
.kl-trust li { display: inline-flex; gap: 6px; align-items: center; }
.kl-trust .kp-icon { color: var(--kp-primary); }
.kl-shine { position: relative; overflow: hidden; }
.kl-shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); animation: kl-shine 3.6s ease-in-out infinite 1.2s; }
@keyframes kl-shine { 40%, 100% { transform: translateX(120%); } }

.kl-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; animation: kl-float 14s ease-in-out infinite alternate; }
.kl-blob--1 { width: 420px; height: 420px; background: #99f6e4; top: -140px; right: -80px; }
.kl-blob--2 { width: 340px; height: 340px; background: #fde68a; bottom: -160px; left: -100px; animation-delay: -5s; }
.kl-blob--3 { width: 260px; height: 260px; background: #bae6fd; top: 40%; left: 45%; opacity: .35; animation-delay: -9s; }
@keyframes kl-float { to { transform: translate(30px, -24px) scale(1.08); } }

.kl-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid #94a3b8; border-radius: 14px; z-index: 1; }
.kl-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #64748b; animation: kl-wheel 1.6s infinite; }
@keyframes kl-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- animated kitty ring ---------- */
.kl-stage { position: relative; min-height: 400px; display: grid; place-items: center; }
.kl-ring { --R: min(150px, 34vw); --cycle: 8s; position: relative; width: calc(var(--R) * 2 + 80px); height: calc(var(--R) * 2 + 80px); }
.kl-ring__track { position: absolute; inset: 40px; border-radius: 50%; border: 2px dashed #99f6e4; animation: kl-spin 40s linear infinite; }
@keyframes kl-spin { to { transform: rotate(360deg); } }
.kl-member, .kl-coin, .kl-burst { --a: calc(var(--i, 0) * 72deg - 90deg); position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)); }
.kl-member span { position: absolute; width: 56px; height: 56px; margin: -28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #0f766e; background: #fff; border: 2px solid #ccfbf1; box-shadow: 0 8px 24px rgba(15,118,110,.15); transform: translateX(var(--R)) rotate(calc(-1 * var(--a))); }
.kl-member:first-of-type span { animation: kl-winner var(--cycle) ease-in-out infinite; }
@keyframes kl-winner {
	0%, 58% { background: #fff; color: #0f766e; border-color: #ccfbf1; }
	64%, 86% { background: #f59e0b; color: #fff; border-color: #fcd34d; box-shadow: 0 0 0 10px rgba(245,158,11,.18), 0 10px 30px rgba(245,158,11,.4); }
	100% { background: #fff; color: #0f766e; border-color: #ccfbf1; }
}
.kl-coin::before { content: attr(data-sym); position: absolute; width: 26px; height: 26px; margin: -13px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #78350f; background: radial-gradient(circle at 35% 30%, #fef3c7, #f59e0b); box-shadow: 0 2px 8px rgba(217,119,6,.45); opacity: 0; animation: kl-coin var(--cycle) cubic-bezier(.5,0,.3,1) infinite; animation-delay: calc(var(--i) * .45s); }
@keyframes kl-coin {
	0% { opacity: 0; transform: translateX(calc(var(--R) - 30px)) rotate(calc(-1 * var(--a))) scale(.6); }
	4% { opacity: 1; transform: translateX(calc(var(--R) - 34px)) rotate(calc(-1 * var(--a))) scale(1); }
	22% { opacity: 1; transform: translateX(30px) rotate(calc(-1 * var(--a))) scale(.9); }
	26%, 100% { opacity: 0; transform: translateX(0) rotate(calc(-1 * var(--a))) scale(.4); }
}
.kl-pot { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px; border-radius: 50%; background: #fff; box-shadow: 0 18px 50px rgba(15,23,42,.14), inset 0 0 0 3px #ccfbf1; display: grid; place-content: center; text-align: center; overflow: hidden; }
.kl-pot__label { position: relative; z-index: 1; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--kp-muted); font-weight: 700; }
.kl-pot__amt { position: relative; z-index: 1; font-weight: 850; font-size: 1.15rem; color: var(--kp-ink); letter-spacing: -.02em; }
.kl-pot__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #ccfbf1, #5eead4); animation: kl-fill var(--cycle) ease-in-out infinite; }
@keyframes kl-fill { 0% { height: 0; } 10% { height: 18%; } 18% { height: 40%; } 26% { height: 62%; } 34% { height: 82%; } 44%, 58% { height: 100%; } 72%, 100% { height: 0; } }
.kl-burst { --i: 0; }
.kl-burst::before { content: ""; position: absolute; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fef3c7, #f59e0b); box-shadow: 0 0 0 6px rgba(245,158,11,.2), 0 0 24px rgba(245,158,11,.7); opacity: 0; animation: kl-burst var(--cycle) cubic-bezier(.4,0,.2,1) infinite; }
@keyframes kl-burst { 0%, 56% { opacity: 0; transform: translateX(0) scale(.5); } 58% { opacity: 1; } 66% { opacity: 1; transform: translateX(calc(var(--R) - 30px)) scale(1.2); } 70%, 100% { opacity: 0; transform: translateX(var(--R)) scale(.4); } }

.kl-float { position: absolute; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border: 1px solid var(--kp-line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(15,23,42,.12); font-size: .82rem; animation: kl-bob 6s ease-in-out infinite; }
.kl-float strong { display: block; font-size: .95rem; }
.kl-float span { color: var(--kp-muted); }
.kl-float__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--kp-primary-50); color: var(--kp-primary); flex-shrink: 0; }
.kl-float__icon--ok { background: var(--kp-success-50); color: var(--kp-success); }
.kl-float__icon--gift { background: var(--kp-accent-50); color: var(--kp-accent); }
.kl-float--pay { top: 0; left: -2%; }
.kl-float--ok { bottom: -3%; left: calc(50% - 105px); animation-delay: -2s; }
.kl-float--gift { top: 0; right: -4%; animation-delay: -4s; }
@keyframes kl-bob { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) {
	.kl-stage { min-height: 360px; }
	.kl-float { font-size: .72rem; padding: 8px 10px; }
	.kl-float__icon { width: 30px; height: 30px; }
	.kl-float--pay { top: -2%; left: 0; }
	.kl-float--gift { top: auto; bottom: -4%; right: 0; }
	.kl-float--ok { display: none; }
}

/* ---------- stats ---------- */
.kl-stats { background: #0b1f1d; color: #cfe7e3; padding: 34px 0; }
.kl-stats__grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 860px) { .kl-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.kl-stat strong { display: block; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 850; color: #fff; letter-spacing: -.02em; }
.kl-stat > span { font-size: .85rem; color: #8fbfb7; }

/* ---------- steps ---------- */
.kl-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 860px) {
	.kl-steps { grid-template-columns: repeat(4, 1fr); }
	.kl-steps::before { content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 3px; background: linear-gradient(90deg, #5eead4, #f59e0b); border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
	.kl-steps.is-drawn::before { transform: scaleX(1); }
	.kp-js .kl-steps:not(.is-drawn)::before { transform: scaleX(0); }
}
.kl-step { position: relative; background: #fff; border: 1px solid var(--kp-line); border-radius: 18px; padding: 24px 20px 20px; text-align: center; transition: transform .25s, box-shadow .25s; }
.kl-step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,.08); }
.kl-step__num { position: absolute; top: 12px; right: 14px; font-size: .75rem; font-weight: 800; color: #64748b; }
.kl-step__icon { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff; box-shadow: 0 10px 24px rgba(15,118,110,.3); }
.kl-step h3 { margin-bottom: 6px; }
.kl-step p { color: var(--kp-muted); margin: 0; font-size: .92rem; }

/* ---------- UPI phone ---------- */
.kl-upi__grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .kl-upi__grid { grid-template-columns: .8fr 1.2fr; } }
.kl-phone { position: relative; width: 270px; max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 18; border-radius: 40px; background: #0f172a; padding: 12px; box-shadow: 0 30px 60px rgba(15,23,42,.25); transform: rotate(-4deg); }
.kl-phone__notch { position: absolute; top: 12px; left: 50%; width: 90px; height: 20px; margin-left: -45px; background: #0f172a; border-radius: 0 0 14px 14px; z-index: 2; }
.kl-phone__screen { height: 100%; border-radius: 30px; background: linear-gradient(180deg, #f0fdfa, #fff 40%); padding: 34px 18px 16px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.kl-phone__bar { width: 100%; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .85rem; }
.kl-badge-live { font-size: .65rem; background: var(--kp-warning-50); color: var(--kp-warning); border: 1px solid #fde68a; padding: 2px 8px; border-radius: 999px; }
.kl-phone__amt { margin-top: 14px; font-size: 1.8rem; font-weight: 850; letter-spacing: -.02em; }
.kl-phone__sub { font-size: .75rem; color: var(--kp-muted); }
.kl-qr { position: relative; margin: 14px 0; width: 150px; height: 150px; padding: 10px; background: #fff; border: 1px solid var(--kp-line); border-radius: 14px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; overflow: hidden; }
.kl-qr i { border-radius: 2px; background: #0f172a; opacity: calc(.15 + var(--o) * .85); }
.kl-qr i:nth-child(1), .kl-qr i:nth-child(7), .kl-qr i:nth-child(43) { opacity: 1; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #0f172a; background: #0f172a; }
.kl-qr__scan { position: absolute; left: 6px; right: 6px; height: 3px; top: 8px; background: #14b8a6; box-shadow: 0 0 14px 4px rgba(20,184,166,.6); border-radius: 3px; animation: kl-scan 2.4s ease-in-out infinite; }
@keyframes kl-scan { 50% { top: calc(100% - 11px); } }
.kl-flow { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 6px; }
.kl-flow li { font-size: .74rem; font-weight: 700; padding: 7px 10px; border-radius: 10px; background: #f1f5f9; color: #5b6b80; animation: kl-flow 6s infinite; animation-delay: calc(var(--k) * 1.5s); }
@keyframes kl-flow { 0%, 25% { background: var(--kp-primary); color: #fff; transform: scale(1.03); } 30%, 100% { background: #f1f5f9; color: #5b6b80; transform: none; } }
.kl-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.kl-ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.kl-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; color: #fff; background: var(--kp-primary); }

/* ---------- calculator ---------- */
.kl-calc { background: #fff; border: 1px solid var(--kp-line); border-radius: 22px; padding: 22px; box-shadow: var(--kp-shadow); display: grid; gap: 20px; }
.kl-calc__form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .kl-calc__form { grid-template-columns: repeat(4, 1fr); } }
.kl-calc input[type=range] { padding: 0; min-height: 44px; accent-color: var(--kp-primary); border: 0; }
.kl-out { font-weight: 800; color: var(--kp-primary); }
.kl-calc__sum { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.kl-calc__sum div { background: var(--kp-primary-50); border-radius: 14px; padding: 12px; text-align: center; }
.kl-calc__sum span { display: block; font-size: .75rem; color: var(--kp-muted); font-weight: 600; }
.kl-calc__sum strong { font-size: clamp(1rem, 2.6vw, 1.35rem); letter-spacing: -.02em; }
.kl-bars { display: grid; gap: 8px; }
.kl-bar { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; font-size: .85rem; }
.kl-bar__track { height: 22px; border-radius: 8px; background: var(--kp-line-2); overflow: hidden; display: flex; }
.kl-bar__net { background: linear-gradient(90deg, #14b8a6, #0f766e); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.kl-bar__hb { background: #f59e0b; transition: width .5s; }
.kl-bar__val { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.kl-bar__val small { display: block; font-weight: 600; color: var(--kp-accent); font-size: .72rem; }
.kl-legend { display: flex; gap: 14px; font-size: .78rem; color: var(--kp-muted); }
.kl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.kl-feature { transition: transform .25s, box-shadow .25s, border-color .25s; }
.kl-feature:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,.08); border-color: #99f6e4; }
.kl-feature:hover .kp-stat__icon { transform: rotate(-8deg) scale(1.08); }
.kl-feature .kp-stat__icon { transition: transform .3s; }

/* ---------- FAQ ---------- */
.kl-faq { display: grid; gap: 10px; }
.kl-faq details { background: #fff; border: 1px solid var(--kp-line); border-radius: 14px; padding: 0 18px; transition: box-shadow .2s, border-color .2s; }
.kl-faq details[open] { border-color: #99f6e4; box-shadow: 0 10px 30px rgba(15,118,110,.08); }
.kl-faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.kl-faq summary::-webkit-details-marker { display: none; }
.kl-faq__icon { width: 22px; height: 22px; border-radius: 50%; background: var(--kp-primary-50); position: relative; flex-shrink: 0; transition: transform .25s; }
.kl-faq__icon::before, .kl-faq__icon::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--kp-primary); border-radius: 2px; }
.kl-faq__icon::after { transform: rotate(90deg); transition: transform .25s; }
.kl-faq details[open] .kl-faq__icon::after { transform: rotate(0); }
.kl-faq details p { margin: 0 0 16px; color: var(--kp-ink-2); }

/* ---------- CTA ---------- */
.kl-cta { padding: 70px 0; background: linear-gradient(120deg, #0f766e, #115e59, #0e7490, #0f766e); background-size: 300% 300%; animation: kl-cta 14s ease infinite; color: #ccfbf1; text-align: center; }
@keyframes kl-cta { 50% { background-position: 100% 50%; } }
.kl-cta h2 { color: #fff !important; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.kl-cta p { max-width: 640px; margin: 0 auto 22px; }
.kl-btn-light { background: #fff; color: var(--kp-primary) !important; }
.kl-btn-light:hover { background: #f0fdfa; }
.kl-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.kl-btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- legal pages ---------- */
.kl-legal-hero { background: linear-gradient(180deg, #f0fdfa, #fff); padding: 48px 0 28px; border-bottom: 1px solid var(--kp-line-2); }
.kl-legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; margin: 6px 0 8px; }
.kl-legal-hero p { color: var(--kp-muted); margin: 0; }
.kl-legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.kl-legal-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--kp-line); background: #fff; font-size: .85rem; font-weight: 600; color: var(--kp-ink-2) !important; text-decoration: none !important; }
.kl-legal-tabs a[aria-current="page"] { background: var(--kp-primary); color: #fff !important; border-color: var(--kp-primary); }
.kl-legal { display: grid; gap: 32px; grid-template-columns: 1fr; padding: 36px 0 64px; }
@media (min-width: 960px) { .kl-legal { grid-template-columns: 250px minmax(0, 1fr); } }
.kl-toc { align-self: start; }
@media (min-width: 960px) { .kl-toc { position: sticky; top: 90px; } }
.kl-toc details { background: #fff; border: 1px solid var(--kp-line); border-radius: 14px; padding: 12px 16px; }
.kl-toc summary { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--kp-muted); cursor: pointer; }
.kl-toc ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; counter-reset: none; }
.kl-toc a { display: block; padding: 6px 10px; border-radius: 8px; font-size: .88rem; color: var(--kp-ink-2) !important; text-decoration: none !important; border-left: 2px solid transparent; }
.kl-toc a:hover, .kl-toc a.is-active { background: var(--kp-primary-50); color: var(--kp-primary) !important; border-left-color: var(--kp-primary); }
.kl-legal .kp-prose h2 { scroll-margin-top: 90px; font-size: 1.25rem; padding-top: 8px; border-top: 1px solid var(--kp-line-2); margin-top: 1.8em; }
.kl-legal .kp-prose h2:first-of-type { border-top: 0; margin-top: .6em; }
.kl-legal .kp-prose li { margin-bottom: .5em; }
.kp-legal-note { background: var(--kp-warning-50); border: 1px solid #fde68a; color: #78350f; padding: 12px 16px; border-radius: 12px; font-size: .92rem; }
.kl-legal-related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 36px; }
.kl-legal-related a { display: block; padding: 16px; border: 1px solid var(--kp-line); border-radius: 14px; background: #fff; color: var(--kp-ink) !important; text-decoration: none !important; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.kl-legal-related a:hover { transform: translateY(-3px); box-shadow: var(--kp-shadow); }
.kl-legal-related span { display: block; font-weight: 500; font-size: .82rem; color: var(--kp-muted); margin-top: 4px; }
.kl-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--kp-primary); color: #fff !important; display: grid; place-items: center; box-shadow: var(--kp-shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; transform: translateY(10px); text-decoration: none !important; z-index: 40; }
.kl-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.kp-js .kp-reveal { opacity: 1; transform: none; transition: none; }
	.kl-pop, .kl-hero h1, .kl-blob, .kl-ring__track, .kl-member span, .kl-coin::before, .kl-pot__fill, .kl-burst::before, .kl-float, .kl-qr__scan, .kl-flow li, .kl-cta, .kl-shine::after, .kl-dot, .kl-scroll span { animation: none !important; }
	.kl-pot__fill { height: 100%; }
	.kl-steps::before { transform: none !important; }
}

/* ---------- auth pages (login / forgot / reset / invite) ---------- */
.ka { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 65px); background: #f5f7f9; }
@media (min-width: 960px) { .ka { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.ka-aside { position: relative; overflow: hidden; background: linear-gradient(150deg, #0f766e 0%, #115e59 55%, #0b3b37 100%); color: #ccfbf1; display: none; }
@media (min-width: 960px) { .ka-aside { display: flex; align-items: center; } }
.ka-aside__glow { position: absolute; width: 520px; height: 520px; right: -180px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(94,234,212,.45), transparent 65%); animation: kl-float 12s ease-in-out infinite alternate; }
.ka-aside__glow::after { content: ""; position: absolute; width: 380px; height: 380px; left: -320px; top: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(251,191,36,.28), transparent 65%); }
.ka-aside__inner { position: relative; padding: 56px clamp(32px, 5vw, 72px); max-width: 560px; }
.ka-aside .kp-logo { color: #fff; }
.ka-aside .kp-logo__sub { color: #99f6e4; }
.ka-aside h2 { color: #fff !important; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.03em; margin: 34px 0 12px; }
.ka-aside > .ka-aside__inner > p { color: #b9ece4; font-size: 1.02rem; }
.ka-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ka-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: #ecfeff; }
.ka-points li span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fde68a; flex-shrink: 0; }
.ka-cards { position: relative; height: 150px; margin-top: 34px; }
.ka-card { position: absolute; background: rgba(255,255,255,.96); color: var(--kp-ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.25); animation: kl-bob 6s ease-in-out infinite; }
.ka-card strong { display: block; font-size: 1.05rem; }
.ka-card span { font-size: .8rem; color: var(--kp-success); font-weight: 600; }
.ka-card--1 { left: 0; top: 0; }
.ka-card--2 { left: 160px; top: 66px; animation-delay: -3s; }
.ka-card--2 span { color: var(--kp-accent); }
.ka-aside__foot { font-size: .8rem; color: #8fd8cc !important; margin-top: 18px; }
.ka-main { display: grid; place-items: center; padding: 36px 16px 48px; background: radial-gradient(700px 360px at 100% 0%, #ccfbf1 0%, transparent 60%), radial-gradient(600px 320px at 0% 100%, #fef3c7 0%, transparent 60%), #f5f7f9; }
@media (min-width: 960px) { .ka-main { background: #fff; } }
.ka-box { width: min(440px, 100%); background: #fff; border: 1px solid var(--kp-line); border-radius: 22px; padding: 30px 26px; box-shadow: 0 20px 60px rgba(15,23,42,.08); animation: kl-pop .6s cubic-bezier(.2,.7,.2,1) both; }
@media (min-width: 960px) { .ka-box { border: 0; box-shadow: none; padding: 10px 0; } }
.ka-box h1 { font-size: 1.7rem; letter-spacing: -.03em; margin: 6px 0 6px; }
.ka-box .kp-form { margin-top: 18px; }
.ka-wave { display: inline-block; font-size: 1.8rem; transform-origin: 70% 70%; animation: ka-wave 2.4s ease-in-out 1; }
@keyframes ka-wave { 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50%, 100% { transform: rotate(0); } }
.ka-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff; box-shadow: 0 10px 24px rgba(15,118,110,.3); margin-bottom: 10px; }
.ka-back { display: inline-block; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.ka-input { position: relative; display: flex; align-items: center; }
.ka-input > .kp-icon { position: absolute; left: 12px; color: #94a3b8; pointer-events: none; }
.ka-input .kp-input { padding-left: 40px; min-height: 50px; border-radius: 12px; background: #f8fafc; }
.ka-input .kp-input:focus { background: #fff; }
.ka-input:focus-within > .kp-icon { color: var(--kp-primary); }
.ka-eye { position: absolute; right: 6px; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; color: #64748b; display: grid; place-items: center; cursor: pointer; }
.ka-eye:hover, .ka-eye[aria-pressed="true"] { background: var(--kp-primary-50); color: var(--kp-primary); }
.ka-input:has(.ka-eye) .kp-input { padding-right: 50px; }
.ka-strength { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--kp-muted); margin-top: 6px; }
.ka-strength i { flex: 0 0 90px; height: 6px; border-radius: 6px; background: var(--kp-line-2); position: relative; overflow: hidden; }
.ka-strength i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--c, #ef4444); border-radius: 6px; transition: width .3s, background .3s; }
.ka-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; color: var(--kp-muted); font-size: .8rem; }
.ka-divider::before, .ka-divider::after { content: ""; flex: 1; height: 1px; background: var(--kp-line); }
.ka-help { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--kp-primary-50); color: #134e4a; font-size: .86rem; }
.ka-help p { margin: 0; }
.ka-help .kp-icon { color: var(--kp-primary); margin-top: 2px; }
.ka-legal { text-align: center; font-size: .8rem; color: var(--kp-muted); margin: 26px 0 0; }
.ka .kp-form-error.is-visible { animation: ka-shake .4s; }
@keyframes ka-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .ka-aside__glow, .ka-card, .ka-box, .ka-wave, .ka .kp-form-error.is-visible { animation: none !important; } }

/* Landing: latest from the blog */
.kl-blog { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .kl-blog { grid-template-columns: repeat(3, 1fr); } }
.kl-blog__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--kp-border, #e2e8f0); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 8px 28px rgba(15,23,42,.06); transition: transform .25s ease, box-shadow .25s ease; }
.kl-blog__card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15,23,42,.12); }
.kl-blog__img { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, #14b8a6, #0f766e); overflow: hidden; }
.kl-blog__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.kl-blog__card:hover .kl-blog__img img { transform: scale(1.05); }
.kl-blog__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.kl-blog__body small { color: var(--kp-muted, #64748b); font-size: .82rem; }
.kl-blog__body b { font-size: 1.08rem; line-height: 1.35; color: var(--kp-text, #0f172a); }
.kl-blog__card:hover .kl-blog__body b { color: var(--kp-primary, #0f766e); }
.kl-blog__body > span { color: var(--kp-muted, #64748b); font-size: .93rem; }

/* Landing: group chat showcase */
.kl-chatsec { overflow: hidden; }
.kl-chatsec__grid { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .kl-chatsec__grid { grid-template-columns: 1.1fr .9fr; } }
.kl-chat { position: relative; width: 100%; max-width: 380px; margin: 0 auto; padding-bottom: 46px; }
.kl-chat::before { content: ""; position: absolute; inset: 10% -12% 0 -6%; background: radial-gradient(closest-side, rgba(20,184,166,.25), transparent); filter: blur(10px); z-index: 0; }
.kl-chat__panel { position: relative; z-index: 1; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--kp-line, #e2e8f0); box-shadow: 0 30px 70px rgba(15,23,42,.18); transform: rotate(2deg); transition: transform .5s ease; }
.kl-chat:hover .kl-chat__panel { transform: rotate(0) translateY(-4px); }
.kl-chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; background: radial-gradient(200px 90px at 100% 0, rgba(251,191,36,.35), transparent 70%), linear-gradient(135deg, #0f766e, #134e4a); }
.kl-chat__head b { display: block; font-size: .95rem; }
.kl-chat__head small { display: block; font-size: .72rem; opacity: .85; }
.kl-chat__head > span:nth-child(2) { flex: 1; }
.kl-chat__gav { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: .75rem; background: rgba(255,255,255,.18); box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.kl-chat__x { font-size: 1.3rem; opacity: .8; }
.kl-chat__body { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 16px; min-height: 330px; background: #f3f6f6 radial-gradient(circle at 1px 1px, rgba(15,118,110,.07) 1px, transparent 0) 0 0 / 18px 18px; }
.kl-chat__day { align-self: center; font-size: .68rem; font-weight: 700; color: var(--kp-muted, #64748b); background: #fff; border: 1px solid var(--kp-line, #e2e8f0); border-radius: 999px; padding: 2px 10px; }
.kl-chat__b { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.kl-chat__b p { margin: 0; padding: 8px 12px; border-radius: 16px 16px 16px 6px; background: #fff; font-size: .84rem; line-height: 1.4; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.kl-chat__b p b { display: block; font-size: .72rem; color: var(--kp-primary, #0f766e); margin-bottom: 2px; }
.kl-chat__b--me { align-self: flex-end; }
.kl-chat__b--me p { color: #fff; background: linear-gradient(135deg, #14b8a6, #0f766e); border-radius: 16px 16px 6px 16px; }
.kl-chat__av { --h: 170; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 800; color: hsl(var(--h) 60% 26%); background: hsl(var(--h) 70% 88%); }
.kl-chat__role { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 5px; font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; background: #d5f1ec; }
.kl-chat__receipt { position: relative; display: block; width: 150px; height: 92px; border-radius: 10px; background: linear-gradient(135deg, #ecfdf5, #ccfbf1); border: 1px solid #99f6e4; padding: 12px; }
.kl-chat__receipt i { display: block; height: 7px; border-radius: 4px; background: #5eead4; margin-bottom: 7px; width: 70%; }
.kl-chat__receipt i:nth-child(2) { width: 45%; background: #99f6e4; }
.kl-chat__receipt i:nth-child(3) { width: 58%; background: #99f6e4; }
.kl-chat__receipt em { position: absolute; right: 10px; bottom: 8px; font-style: normal; font-weight: 800; font-size: .78rem; color: #0f766e; }
.kl-chat__typing { display: inline-flex; gap: 4px; align-self: flex-start; margin-left: 36px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.kl-chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: kl-dot 1.2s infinite; }
.kl-chat__typing span:nth-child(2) { animation-delay: .15s; }
.kl-chat__typing span:nth-child(3) { animation-delay: .3s; }
.kl-chat__comp { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--kp-line, #e2e8f0); }
.kl-chat__input { flex: 1; font-size: .82rem; color: #94a3b8; background: #f5f7f9; border: 1px solid var(--kp-line, #e2e8f0); border-radius: 999px; padding: 8px 12px; }
.kl-chat__att { font-size: 1rem; opacity: .7; }
.kl-chat__send { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #0f766e; color: #fff; font-size: .8rem; }
.kl-chat__fab { position: absolute; z-index: 2; right: -6px; bottom: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: linear-gradient(135deg, #14b8a6, #0f766e); box-shadow: 0 12px 30px rgba(15,118,110,.4); animation: kl-bob 3s ease-in-out infinite; }
.kl-chat__fab i { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; border-radius: 999px; background: #ef4444; color: #fff; border: 2px solid #fff; font: 800 .7rem/18px var(--kp-font, sans-serif); text-align: center; }
/* Sequenced entrance once the section scrolls into view. */
.kp-js .kl-chat .kl-chat__b, .kp-js .kl-chat .kl-chat__typing { opacity: 0; transform: translateY(10px) scale(.96); }
.kp-js .kl-chat.is-visible .kl-chat__b, .kp-js .kl-chat.is-visible .kl-chat__typing { animation: kl-bub .45s cubic-bezier(.2,.8,.2,1.2) both; animation-delay: calc(.35s + var(--i) * .75s); }
.kp-js .kl-chat.is-visible .kl-chat__typing { animation: kl-bub .45s calc(.35s + var(--i) * .75s) both, kl-fade 1s calc(.35s + var(--i) * .75s + 2.6s) forwards; }
@keyframes kl-bub { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes kl-fade { to { opacity: .35; } }
@keyframes kl-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes kl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
	.kp-js .kl-chat .kl-chat__b, .kp-js .kl-chat .kl-chat__typing { opacity: 1; transform: none; animation: none !important; }
	.kl-chat__fab, .kl-chat__typing span { animation: none !important; }
}

/* Signup: account type + joining banner */
.ka-types { border: 0; padding: 0; margin: 0 0 4px; display: grid; gap: 10px; }
.ka-types legend { margin-bottom: 8px; }
.ka-type { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--kp-line, #e2e8f0); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.ka-type:hover { border-color: #94e2d5; }
.ka-type input { position: absolute; opacity: 0; pointer-events: none; }
.ka-type:has(input:checked) { border-color: var(--kp-primary, #0f766e); background: var(--kp-primary-50, #effaf8); box-shadow: 0 0 0 3px rgba(15,118,110,.14); }
.ka-type:has(input:focus-visible) { box-shadow: var(--kp-focus); }
.ka-type__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--kp-primary, #0f766e); border: 1px solid var(--kp-line, #e2e8f0); }
.ka-type b { display: block; font-size: .95rem; }
.ka-type small { display: block; color: var(--kp-muted, #64748b); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.ka-joinbox { display: flex; gap: 12px; align-items: center; padding: 14px; margin: 4px 0 16px; border-radius: 14px; background: linear-gradient(135deg, #f0fdfa, #fff); border: 1px solid #99f6e4; }
.ka-joinbox__ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #14b8a6, #0f766e); }
.ka-joinbox small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--kp-primary, #0f766e); font-weight: 700; }
.ka-joinbox b { display: block; font-size: 1.05rem; }
.ka-joinbox span { font-size: .85rem; color: var(--kp-muted, #64748b); }

/* Landing: get started paths */
.kl-start__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .kl-start__grid { grid-template-columns: 1.15fr 1fr 1fr; } }
.kl-start__card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--kp-line, #e2e8f0); color: inherit; text-decoration: none !important; box-shadow: 0 8px 28px rgba(15,23,42,.06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.kl-start__card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15,23,42,.12); border-color: #99f6e4; }
.kl-start__card--main { background: radial-gradient(320px 160px at 100% 0, rgba(251,191,36,.18), transparent 70%), linear-gradient(160deg, #f0fdfa, #fff 60%); border-color: #99f6e4; }
.kl-start__card b { font-size: 1.2rem; color: var(--kp-ink, #0f172a); }
.kl-start__card > span:not(.kl-start__ic) { color: var(--kp-muted, #64748b); font-size: .95rem; }
.kl-start__card ol { margin: 4px 0 6px; padding-left: 20px; color: var(--kp-ink-2, #334155); font-size: .9rem; line-height: 1.8; }
.kl-start__card em { font-style: normal; margin-top: auto; align-self: flex-start; }
.kl-start__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #14b8a6, #0f766e); box-shadow: 0 10px 22px rgba(15,118,110,.28); }
.kl-start__ic--alt { background: linear-gradient(135deg, #fbbf24, #b45309); box-shadow: 0 10px 22px rgba(217,119,6,.25); }
.kl-start__ic--ink { background: linear-gradient(135deg, #475569, #0f172a); box-shadow: 0 10px 22px rgba(15,23,42,.2); }

/* v1.6.2: phone auth forms */
.ka-main { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.ka-box { min-width: 0; }
@media (max-width: 480px) {
	.ka-main { padding: 18px 12px 36px; }
	.ka-box { padding: 24px 18px; border-radius: 18px; }
	.ka-box h1 { font-size: 1.5rem; }
	.ka-box .kp-btn { white-space: normal; text-align: center; line-height: 1.25; }
	.ka-box .kp-row--between { gap: 6px; }
}
