/* The public pages' dark stage, product shots and AI demo. Black and white; colour only inside the product.
   Everything that moves uses transform or opacity, and stops when off screen or for anyone asking for less motion. */

.kx-stage {
  --ink: #fafafa;
  --ink-2: #b4b4bc;
  --ink-3: #7c7c86;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(22, 22, 26, 0.72);
  --glass-2: rgba(10, 10, 12, 0.72);
  --stage-bg: #060607;
  --frame: #0b0b0d;
  --card: #0a0a0c;
  --strong: #fff;
  --chip: rgba(255, 255, 255, 0.12);
  --wash: rgba(255, 255, 255, 0.025);
  --beam: rgba(255, 255, 255, 0.75);
  --spot: rgba(255, 255, 255, 0.1);
  --glow-a: rgba(255, 255, 255, 0.16);
  --glow-b: rgba(255, 255, 255, 0.05);
  --deep: rgba(0, 0, 0, 0.9);
  --deep-2: rgba(0, 0, 0, 0.85);
  --deep-3: #000;
  --h-fade: #a7a7ae;
  --bezel: linear-gradient(160deg, #3a3a40, #121214 42%);
  --btn-line: rgba(255, 255, 255, 0.22);
  --btn-line-hover: rgba(255, 255, 255, 0.34);
  --btn-wash: rgba(255, 255, 255, 0.08);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--stage-bg);
  color: var(--ink);
}
.kx-stage h1, .kx-stage h2, .kx-stage h3 { color: var(--ink); }
.kx-stage .kx-eyebrow { color: var(--ink-2); }
.kx-stage .btn-kx-primary { background: var(--ink); border-color: var(--ink); color: var(--stage-bg); }
.kx-stage .btn-kx-primary:hover { background: var(--strong); border-color: var(--strong); color: var(--stage-bg); }
.kx-stage .btn-kx-outline { background: transparent; border-color: var(--btn-line); color: var(--ink); }
.kx-stage .btn-kx-outline:hover { background: var(--btn-wash); border-color: var(--btn-line-hover); color: var(--strong); }

/* A light from above, fixed in place, so the page has depth without an image. */
.kx-stage-glow::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(70vw, 760px);
  background:
    radial-gradient(60% 55% at 50% 0%, var(--glow-a), transparent 70%),
    radial-gradient(30% 30% at 18% 22%, var(--glow-b), transparent 70%),
    radial-gradient(30% 30% at 82% 26%, var(--glow-b), transparent 70%);
  pointer-events: none;
}

/* -- Hero ------------------------------------------------------------------ */
.kx-open { padding: clamp(3.5rem, 8vw, 6.5rem) 0 0; text-align: center; }
.kx-open h1 {
  max-width: 17ch;
  margin: 1rem auto 1.25rem;
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.042em;
  background: linear-gradient(180deg, var(--strong) 30%, var(--h-fade));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kx-open-lead {
  max-width: 54ch;
  margin: 0 auto 2rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}
.kx-open .kx-hero-actions { justify-content: center; }
.kx-open-note { margin: 1.125rem 0 0; color: var(--ink-3); font-size: 0.8125rem; }

.kx-scene {
  position: relative;
  max-width: 1180px;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  padding: 0 1rem;
  perspective: 1800px;
}

/* -- A product window: a hairline frame with light travelling round it ------- */
.kx-win {
  position: relative;
  border-radius: 14px;
  background: var(--frame);
  box-shadow: 0 40px 120px -30px var(--deep), 0 0 0 1px var(--line);
  overflow: hidden;
  transform: translateZ(0);
}
.kx-win img { display: block; width: 100%; height: auto; }
.kx-win-tilt {
  transform-origin: 50% 0;
  transform: rotateX(16deg) scale(0.97);
  opacity: 0;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}
.kx-win-tilt.is-in { transform: none; opacity: 1; }

/* The rotating light sits behind a frame one pixel smaller, so only its edge shows. */
.kx-beam { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 2; }
.kx-beam::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 78%, var(--beam) 88%, transparent 96%);
  transform: translate(-50%, -50%);
  animation: kx-turn 9s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}
.is-running > .kx-beam::before, .is-running .kx-beam::before { animation-play-state: running; }
.kx-beam::after { content: ''; position: absolute; inset: 1px; border-radius: 13px; background: transparent; }
.kx-beam { -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); padding: 1px; }
@keyframes kx-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* The shot sinks into the stage below it, and a soft light follows the pointer. */
.kx-fade-bottom::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 1;
  background: linear-gradient(180deg, transparent, var(--stage-bg) 96%);
  pointer-events: none;
}
.kx-spot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(340px circle at var(--x, 50%) var(--y, 30%), var(--spot), transparent 70%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.kx-spot:hover::before { opacity: 1; }

.kx-sample-tag {
  position: absolute;
  z-index: 3;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-2);
  color: var(--ink-2);
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
}

/* -- Things floating over the hero window ------------------------------------ */
.kx-float {
  position: absolute;
  z-index: 4;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-in .kx-float, .kx-float.is-in { opacity: 1; transform: none; }
.kx-float-inner { animation: kx-bob 7s ease-in-out infinite; animation-play-state: paused; }
.is-running .kx-float-inner { animation-play-state: running; }
@keyframes kx-bob { 50% { transform: translateY(-9px); } }

.kx-glass {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -18px var(--deep-2);
  color: var(--ink);
}
.kx-note-card { display: flex; align-items: flex-start; gap: 0.625rem; width: 19rem; padding: 0.75rem 0.875rem; font-size: 0.8125rem; line-height: 1.45; text-align: left; }
.kx-note-icon { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--chip); color: var(--strong); font-size: 0.9375rem; }
.kx-note-card strong { color: var(--strong); font-weight: 640; }
.kx-note-card small { display: block; margin-top: 0.25rem; color: var(--ink-3); font-size: 0.6875rem; }
.kx-float-note { left: -1.25rem; top: 46%; transition-delay: 0.7s; }
.kx-float-phone { right: -1.5rem; bottom: 2.5rem; width: 13.5rem; transition-delay: 0.45s; }
.kx-float-phone .kx-float-inner { animation-delay: -3s; }
.kx-phone {
  position: relative;
  padding: 0.3125rem;
  border-radius: 1.75rem;
  background: var(--bezel);
  box-shadow: 0 40px 80px -24px var(--deep-3), 0 0 0 1px var(--line-soft);
}
.kx-phone img { display: block; width: 100%; height: auto; border-radius: 1.4375rem; }

/* -- Section heads on the stage ---------------------------------------------- */
.kx-stage-head { max-width: 42rem; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.kx-stage-head h2 { margin: 0.75rem 0 1rem; font-size: clamp(2rem, 4.4vw, 3.375rem); line-height: 1.06; letter-spacing: -0.035em; }
.kx-stage-head p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.kx-stage-pad { padding: clamp(4rem, 9vw, 7.5rem) 0; }

/* -- What it will and won't do ------------------------------------------------ */
.kx-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(2rem, 4vw, 3rem); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.kx-trust div { padding: 1.25rem; background: var(--card); }
.kx-trust i { display: block; margin-bottom: 0.625rem; color: var(--strong); font-size: 1.125rem; }
.kx-trust strong { display: block; margin-bottom: 0.25rem; color: var(--strong); font-size: 0.9375rem; font-weight: 640; }
.kx-trust p { margin: 0; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.5; }

/* -- The real screens --------------------------------------------------------- */
.kx-tour { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.kx-tour-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.kx-tour-row:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.kx-tour-row:nth-child(even) .kx-tour-copy { order: 2; }
.kx-tour-copy h3 { margin: 0.625rem 0 0.75rem; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.12; letter-spacing: -0.03em; }
.kx-tour-copy p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
/* The same shape as the shots (1600 x 1000), so none of the screen is cut off. */
.kx-tour-shot { aspect-ratio: 16 / 10; }
.kx-tour-shot img { height: 100%; object-fit: cover; object-position: left top; }
/* It runs off the edge into the dark, so you read it as part of something bigger. */
.kx-shade-right::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, transparent 62%, var(--stage-bg)), linear-gradient(180deg, transparent 58%, var(--stage-bg));
  pointer-events: none;
}

/* Two screens, one in front: the card in the conversation, and the page it opens to. */
.kx-duo { position: relative; padding: 0 0 26% 0; }
.kx-duo-back { width: 84%; }
.kx-duo-front { position: absolute !important; right: 0; bottom: 0; width: 62%; box-shadow: 0 40px 90px -20px var(--deep-3), 0 0 0 1px var(--line-strong); }
.kx-duo-front img { aspect-ratio: 4 / 3; }

.kx-pocket { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1rem, 4vw, 2.5rem); }
.kx-pocket .kx-phone { width: min(44vw, 17rem); }
.kx-pocket .kx-phone:first-child { margin-top: 3rem; }

/* Reveal, and a slow settle while it scrolls past where the browser can drive it. */
.kx-rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.kx-rv.is-in { opacity: 1; transform: none; }
html:not(.kx-js) .kx-rv, html:not(.kx-js) .kx-win-tilt, html:not(.kx-js) .kx-float { opacity: 1; transform: none; }

/* -- Plan allowances ----------------------------------------------------------- */
.kx-allow { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.kx-allow th, .kx-allow td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.kx-allow thead th { color: var(--ink-3); font-size: 0.75rem; font-weight: 550; letter-spacing: 0.02em; }
.kx-allow tbody th { color: var(--strong); font-weight: 600; }
.kx-allow td { color: var(--ink-2); }
.kx-allow tbody tr:last-child th, .kx-allow tbody tr:last-child td { border-bottom: 0; }
.kx-allow-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); }
.kx-allow-note { margin: 1rem 0 0; color: var(--ink-3); font-size: 0.8125rem; line-height: 1.55; }
.kx-split-stage { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }

/* -- Narrow screens ------------------------------------------------------------- */
/* Seven links need the room. Below this the same menu button a phone has takes over, or they wrap. */
@media (max-width: 1023.98px) {
  .kx-public-links { display: none; }
  .kx-public-nav-inner { justify-content: space-between; }
  .kx-nav-toggle { display: inline-flex; }
  .kx-drawer-backdrop { display: block; }
}
/* A wide gutter's negative margin is larger than the page's padding, which pushed the page sideways. */
@media (max-width: 991.98px) {
  .kx-public .row.g-5 { --bs-gutter-x: 1.5rem; }
}
/* A long email address breaks instead of pushing the page sideways. */
.kx-channel-value { min-width: 0; overflow-wrap: anywhere; }
.kx-public { overflow-wrap: break-word; }
.kx-public-links a { white-space: nowrap; }
.kx-public-nav .kx-logo { flex-shrink: 0; }
/* On the smallest phones the mark stands in for the name, so the buttons keep their room. */
@media (max-width: 379.98px) {
  .kx-public-nav .kx-logo > span:not(.kx-logo-mark) { display: none; }
}
@media (max-width: 1100px) {
  .kx-float-note { left: 0.5rem; }
  .kx-float-phone { right: 0.5rem; }
}
@media (max-width: 991.98px) {
  .kx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-tour-row, .kx-tour-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .kx-tour-row:nth-child(even) .kx-tour-copy { order: 0; }
  .kx-split-stage { grid-template-columns: minmax(0, 1fr); }
  .kx-float-phone { display: none; }
}
@media (max-width: 700px) {
  .kx-scene { padding: 0 1.5rem; }
  .kx-win-phone { max-width: 22rem; margin-inline: auto; border-radius: 1.5rem; }
  .kx-win-phone .kx-beam::after { border-radius: 1.4rem; }
  .kx-float-note { left: 0.75rem; right: 0.75rem; top: auto; bottom: 5rem; }
  .kx-note-card { width: auto; }
  .kx-trust { grid-template-columns: minmax(0, 1fr); }
}

/* -- Anyone asking for less motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .kx-beam::before, .kx-float-inner { animation: none; }
  .kx-rv, .kx-win-tilt, .kx-float { opacity: 1; transform: none; transition: none; }
}


/* Light theme: the shots are shaded in grey where dark mode fades them into
   black. Fading into white reads as a smear, so the edges darken instead and a
   layered shadow and a grey pool lift the window off the page. */
[data-theme="light"] .kx-spot::before { display: none; }
[data-theme="light"] .kx-fade-bottom::after {
  background: linear-gradient(180deg, transparent 50%, var(--shade) 100%);
}
[data-theme="light"] .kx-shade-right::after {
  background: linear-gradient(90deg, transparent 58%, var(--shade)), linear-gradient(180deg, transparent 55%, var(--shade));
}
[data-theme="light"] .kx-stage .kx-win {
  box-shadow:
    0 0 0 1px rgba(10, 10, 11, 0.09),
    0 2px 4px rgba(15, 15, 25, 0.05),
    0 18px 36px -12px rgba(15, 15, 25, 0.16),
    0 50px 110px -30px rgba(15, 15, 25, 0.34);
}
[data-theme="light"] .kx-scene::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 6% -4% -6%;
  background: radial-gradient(55% 60% at 50% 45%, rgba(15, 15, 25, 0.10), transparent 72%);
  pointer-events: none;
}

/* Light theme: the same stage, on white. Shots switch with it (see core/templatetags/shots.py). */
[data-theme="light"] .kx-stage {
  --ink: #0a0a0b;
  --ink-2: #4a4a52;
  --ink-3: #75757e;
  --line: rgba(10, 10, 11, 0.09);
  --line-soft: rgba(10, 10, 11, 0.08);
  --line-strong: rgba(10, 10, 11, 0.12);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-2: rgba(255, 255, 255, 0.82);
  --stage-bg: #fafafa;
  --frame: #ffffff;
  --card: #ffffff;
  --strong: #0a0a0b;
  --chip: rgba(10, 10, 11, 0.06);
  --wash: rgba(10, 10, 11, 0.02);
  --beam: rgba(10, 10, 11, 0.45);
  --spot: rgba(10, 10, 11, 0.05);
  --glow-a: rgba(10, 10, 11, 0.06);
  --glow-b: rgba(10, 10, 11, 0.025);
  --deep: rgba(15, 15, 25, 0.22);
  --deep-2: rgba(15, 15, 25, 0.2);
  --deep-3: rgba(15, 15, 25, 0.28);
  --h-fade: #55555e;
  --bezel: linear-gradient(160deg, #d9d9de, #b9b9c0 42%);
  --btn-line: rgba(10, 10, 11, 0.18);
  --btn-line-hover: rgba(10, 10, 11, 0.3);
  --btn-wash: rgba(10, 10, 11, 0.05);
  --shade: rgba(16, 18, 28, 0.12);
}

/* -- WhatsApp chat ------------------------------------------------------------
   Fixed bottom right, outside the page wrapper so nothing can capture it.
   Theme tokens throughout, so it follows light and dark. Green only for the
   WhatsApp mark and the button that leaves for WhatsApp. */
.kx-wa { --wa: #25d366; --wa-ink: #05361b; position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1035; }
.kx-wa-launcher {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 3.25rem; padding: 0 1.25rem 0 1rem;
  border: 1px solid rgba(5, 54, 27, 0.12); border-radius: 999px;
  background: var(--wa); color: var(--wa-ink);
  font-weight: var(--kx-fw-strong); font-size: 0.9375rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.kx-wa-launcher:hover { filter: brightness(1.05); transform: translateY(-1px); }
.kx-wa-launcher:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--kx-focus-ring), var(--kx-shadow-lg); }
.kx-wa-launcher .bi { font-size: 1.375rem; line-height: 1; }
.kx-wa.is-open .kx-wa-launcher .bi::before { content: "\F659"; font-size: 1.125rem; }
/* Open, it becomes a round close button; the label stays for screen readers. */
.kx-wa.is-open .kx-wa-launcher { width: 3.25rem; padding: 0; justify-content: center; }
.kx-wa.is-open .kx-wa-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 575.98px) {
  .kx-wa { right: 1rem; bottom: 1rem; }
  .kx-wa-launcher { width: 3.25rem; padding: 0; justify-content: center; }
  .kx-wa-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Lifted above the cookie notice while it's showing; see whatsapp-chat.js. */
.kx-wa { margin-bottom: var(--kx-wa-lift, 0px); transition: margin-bottom 0.2s ease; }

.kx-wa-panel {
  position: absolute; right: 0; bottom: calc(100% + 0.75rem);
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100dvh - 7rem));
  display: flex; flex-direction: column;
  background: var(--kx-surface); color: var(--kx-text);
  border: 1px solid var(--kx-border); border-radius: 16px;
  box-shadow: var(--kx-shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  animation: kx-wa-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.kx-wa-panel[hidden] { display: none; }
@keyframes kx-wa-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

.kx-wa-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 0.875rem 0.875rem 1rem; border-bottom: 1px solid var(--kx-border-subtle); }
.kx-wa-avatar {
  position: relative; flex-shrink: 0;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--kx-accent); color: var(--kx-accent-text); font-weight: 700; font-size: 1rem;
}
.kx-wa-online { position: absolute; right: 0; bottom: 0; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--wa); border: 2px solid var(--kx-surface); }
.kx-wa-who { min-width: 0; flex: 1; }
.kx-wa-title { margin: 0; font-weight: var(--kx-fw-strong); font-size: 0.9375rem; }
.kx-wa-sub { margin: 0.125rem 0 0; font-size: 0.75rem; color: var(--kx-text-muted); }
.kx-wa-close {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--kx-text-muted);
}
.kx-wa-close:hover { background: var(--kx-surface-2); color: var(--kx-text); }
.kx-wa-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--kx-focus-ring); }

.kx-wa-body { flex: 0 1 auto; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.625rem; background: var(--kx-surface-2); }
.kx-wa-msg {
  max-width: 85%; margin: 0; padding: 0.5625rem 0.8125rem;
  font-size: 0.875rem; line-height: 1.5; border-radius: 14px;
  overflow-wrap: anywhere;
  animation: kx-wa-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.kx-wa-msg.is-them { align-self: flex-start; background: var(--kx-surface); border: 1px solid var(--kx-border-subtle); border-bottom-left-radius: 4px; }
.kx-wa-msg.is-you { align-self: flex-end; background: color-mix(in srgb, var(--wa) 22%, var(--kx-surface)); border-bottom-right-radius: 4px; }
.kx-wa-step { display: flex; flex-direction: column; gap: 0.625rem; }
.kx-wa-step .kx-wa-msg.is-them { animation-delay: 0.25s; }

.kx-wa-choices { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.kx-wa-choices[hidden] { display: none; }
.kx-wa-choice {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.6875rem 0.875rem; min-height: 2.75rem;
  border: 1px solid var(--kx-border); border-radius: 12px;
  background: var(--kx-surface); color: var(--kx-text);
  font-size: 0.875rem; font-weight: var(--kx-fw-label); text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.kx-wa-choice:hover { border-color: var(--kx-border-strong); color: var(--kx-text); }
.kx-wa-choice:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--kx-focus-ring); }
.kx-wa-choice .bi { color: var(--kx-text-muted); font-size: 1rem; }

.kx-wa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.25rem; animation: kx-wa-in 0.22s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.kx-wa-go {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1rem;
  border-radius: 999px; background: var(--wa); color: var(--wa-ink);
  font-weight: var(--kx-fw-strong); font-size: 0.875rem; text-decoration: none;
}
.kx-wa-go:hover { filter: brightness(1.05); color: var(--wa-ink); }
.kx-wa-go:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--kx-focus-ring); }
.kx-wa-back { min-height: 2.75rem; padding: 0 0.75rem; border: 0; background: transparent; color: var(--kx-text-muted); font-size: 0.8125rem; }
.kx-wa-back:hover { color: var(--kx-text); text-decoration: underline; }

.kx-wa-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.5rem;
  padding: 0.75rem 1rem; border-top: 1px solid var(--kx-border-subtle);
  font-size: 0.8125rem; color: var(--kx-text-faint);
}
.kx-wa-foot a { color: var(--kx-text-muted); }
.kx-wa-foot a:hover { color: var(--kx-text); }

@media (prefers-reduced-motion: reduce) {
  .kx-wa-panel, .kx-wa-msg, .kx-wa-actions { animation: none; }
  .kx-wa-launcher { transition: none; }
}
