/* Login and signup: floating form card on a full-bleed Kapek canvas with rotating feature themes. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

body.ka-auth {
  --ka-banner-h: 0px;
  display: block;
  height: auto;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: #151225;
  font-family: "Inter", system-ui, sans-serif;
}

/* Form card */
body.ka-auth .auth-container {
  max-width: 400px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
body.ka-auth .auth-header {
  text-align: left;
  margin-bottom: 1.5rem;
}
body.ka-auth .auth-header img {
  max-height: 34px;
  margin-bottom: 1.5rem;
}
body.ka-auth .auth-header h2 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: #070611;
  margin-bottom: 0.3rem;
}
body.ka-auth .auth-header p {
  color: #6b6680;
  margin: 0;
}
body.ka-auth .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #2a2540;
}
body.ka-auth .form-control {
  border-color: #e4e0f0;
  border-radius: 10px;
  padding: 0.7rem 1rem;
}
body.ka-auth .form-control:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}
body.ka-auth .form-check-input:checked {
  background-color: #7c3aed;
  border-color: #7c3aed;
}
body.ka-auth .form-check-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}
body.ka-auth .btn-primary {
  border-radius: 10px;
  font-weight: 700;
  padding: 0.8rem;
  box-shadow: 0 10px 24px -12px rgba(124, 58, 237, 0.7);
}
body.ka-auth .btn-google {
  border-radius: 10px;
  padding: 0.7rem;
  border-color: #e4e0f0;
  font-weight: 600;
}
body.ka-auth .divider {
  color: #8a85a0;
  font-size: 0.875rem;
  margin: 1.25rem 0;
}
body.ka-auth .divider::before,
body.ka-auth .divider::after {
  border-color: #efecf7;
}
body.ka-auth .auth-footer {
  text-align: left;
  margin-top: 1.25rem;
}

/* Sign-up: step 1 picks how they'll use Kapek, step 2 shows the sign-up methods */
body.ka-auth .auth-header .ka-stepnum {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.55rem;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c3aed;
}
.ka-stepnum__bars {
  display: inline-flex;
  gap: 4px;
}
.ka-stepnum__bars i {
  width: 18px;
  height: 4px;
  border-radius: 4px;
  background: #e6defc;
  transition: background-color 0.3s ease;
}
[data-step="1"] .ka-stepnum__bars i:first-child,
[data-step="2"] .ka-stepnum__bars i {
  background: #7c3aed;
}
.ka-sstep:not([hidden]) {
  animation: ka-step-in 0.34s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes ka-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ka-picks {
  display: grid;
  gap: 12px;
}
.ka-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 18px 56px 18px 18px;
  overflow: hidden;
  font: inherit;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1.5px solid #ebe6f8;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(17, 12, 46, 0.04), 0 10px 26px -22px rgba(76, 29, 149, 0.5);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: ka-step-in 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.ka-pick::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 140px at 0% 0%, rgba(167, 139, 250, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.ka-pick:hover,
.ka-pick:focus-visible {
  border-color: #a78bfa;
  box-shadow: 0 16px 32px -20px rgba(76, 29, 149, 0.6);
  transform: translateY(-2px);
  outline: none;
}
.ka-pick:focus-visible {
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.16), 0 16px 32px -20px rgba(76, 29, 149, 0.6);
}
.ka-pick:hover::before,
.ka-pick:focus-visible::before,
.ka-pick.is-on::before {
  opacity: 1;
}
.ka-pick.is-on {
  border-color: #c4b5fd;
}
.ka-pick:active {
  transform: translateY(0);
}
.ka-pick__ico {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
  color: #fff;
  font-size: 23px;
  box-shadow: 0 10px 20px -12px rgba(124, 58, 237, 0.9);
}
.ka-pick--hire .ka-pick__ico {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
}
.ka-pick__txt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ka-pick__txt strong {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #070611;
}
.ka-pick__txt small {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #6b6680;
}
.ka-pick__go {
  position: absolute;
  top: 50%;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: #f3effe;
  color: #7c3aed;
  font-size: 16px;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.ka-pick:hover .ka-pick__go,
.ka-pick:focus-visible .ka-pick__go {
  background: #7c3aed;
  color: #fff;
  transform: translateX(3px);
}
.ka-picks .ka-pick:nth-child(2) {
  animation-delay: 0.06s;
}
.ka-chosen {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.1rem;
  padding: 8px 8px 8px 10px;
  border: 1px solid #ece7fb;
  border-radius: 14px;
  background: #f6f3ff;
}
.ka-chosen__ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  font-size: 17px;
}
.ka-chosen__txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 0.74rem;
  line-height: 1.25;
  color: #6b6680;
}
.ka-chosen__txt strong {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #151225;
}
.ka-chosen__change {
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #6d28d9;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(17, 12, 46, 0.08);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ka-chosen__change:hover,
.ka-chosen__change:focus-visible {
  background: #7c3aed;
  color: #fff;
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .ka-sstep:not([hidden]),
  .ka-pick {
    animation: none;
    transition: none;
  }
}

/* Theme copy */
.ka-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
}
.ka-eyebrow > i {
  font-size: 16px;
}
.ka-aud {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  padding: 4px 10px;
  margin-right: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}
.ka-aud::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
}
.ka-aud--c::before {
  background: #34d399;
}
.ka-h {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
  margin: 18px 0 0;
}
.ka-h > span {
  display: block;
}
.ka-p {
  font-style: normal;
  margin-left: -0.09em;
}
.ka-h__2 {
  background: linear-gradient(90deg, #ddd6fe, #a78bfa 55%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.ka-s {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  margin: 16px auto 0;
  max-width: 520px;
  text-wrap: balance;
}

/* Fragments */
.kf {
  font-family: "Inter", system-ui, sans-serif;
  color: #151225;
  font-size: 13.5px;
  line-height: 1.35;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  white-space: normal;
}
.kf-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 15px;
  max-width: 290px;
}
.kf-t {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.kf-sub {
  display: block;
  font-size: 12.5px;
  color: #6b6680;
}
.kf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
}
.kf-chip i {
  font-size: 18px;
}
.kf--lilac { background: #ede9fe; color: #5b21b6; }
.kf--mint { background: #d1fae5; color: #047857; }
.kf--sky { background: #e0f2fe; color: #0369a1; }
.kf--peach { background: #ffedd5; color: #c2410c; }
.kf--violet { background: #7c3aed; color: #fff; }
.kf--green { background: #dcfce7; color: #15803d; }
.kf-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.kf-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex: 0 0 auto;
}
.kf-score > div {
  flex: 1;
  min-width: 0;
}
.kf-ring {
  --p: 80;
  --s: 40px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#16a34a calc(var(--p) * 1%), #ece9f5 0);
  position: relative;
  flex: 0 0 auto;
}
.kf-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 50%;
}
.kf-ring b {
  position: relative;
  font-size: 13px;
}
.kf-ringcard {
  flex-direction: column;
  padding: 14px 20px;
  gap: 8px;
}
.kf-ringcard .kf-ring {
  background: conic-gradient(#7c3aed calc(var(--p) * 1%), #ece9f5 0);
}
.kf-ringcard .kf-ring b {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
}
.kf-ringcard .kf-ring::before {
  inset: 6px;
}
.kf-bubble {
  background: #7c3aed;
  color: #fff;
  border-radius: 18px 18px 6px 18px;
  padding: 11px 15px;
  max-width: 270px;
  font-size: 14px;
  font-weight: 500;
}
.kf-voice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.kf-voice > i {
  font-size: 18px;
}
.kf-wave {
  display: flex;
  gap: 3px;
  align-items: center;
}
.kf-wave i {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}
.kf-wave i:nth-child(3n) { height: 16px; }
.kf-wave i:nth-child(4n) { height: 12px; }
.kf-wave i:nth-child(5n) { height: 20px; }
.kf-quote {
  align-items: flex-start;
}
.kf-quote > i {
  color: #16a34a;
  font-size: 18px;
}
.kf-quote q {
  quotes: none;
  font-size: 13.5px;
  color: #3f3a55;
  border-left: 3px solid #c4b5fd;
  padding-left: 10px;
}
.kf-suggest {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: #f6f3ff;
  border: 1.5px solid #c4b5fd;
}
.kf-suggest span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6d28d9;
  font-weight: 700;
  font-size: 12px;
}
.kf-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
}
.kf-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  animation: ka-pulse 1.6s ease-in-out infinite;
}
@keyframes ka-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
.kf-search {
  border: 1.5px solid #ddd6fe;
  font-weight: 600;
  font-size: 14px;
}
.kf-search i {
  color: #7c3aed;
  font-size: 18px;
}
.kf-bars {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 250px;
}
.kf-bars > div {
  display: grid;
  grid-template-columns: 92px 1fr 24px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.kf-bars i {
  height: 8px;
  border-radius: 8px;
  background: #efecf7;
  overflow: hidden;
}
.kf-bars u {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}
.kf-bars b {
  font-size: 13px;
  text-align: right;
}
.kf-stat {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 18px;
}
.kf-stat b {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.kf-stat em {
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #15803d;
  margin-left: 6px;
  letter-spacing: 0;
}
.kf-salary {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 230px;
}
.kf-salary b {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
}
.kf-salary i {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 10px;
  background: #efecf7;
  margin-top: 6px;
}
.kf-salary u {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  bottom: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #c4b5fd, #7c3aed);
}
.kf-salary s {
  position: absolute;
  left: 52%;
  top: -5px;
  width: 4px;
  height: 20px;
  border-radius: 3px;
  background: #16a34a;
  box-shadow: 0 0 0 3px #fff;
}

/* Theme stage */
.ka-pos img {
  display: block;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Navigation */
.ka-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ka-steps {
  flex: 1;
  display: flex;
  gap: 5px;
}
.ka-step {
  flex: 1;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.ka-step i {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}
.ka-step i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.ka-step.is-done i::after {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.5);
}
.ka-step.is-active i::after {
  animation: ka-progress var(--ka-dur, 7000ms) linear forwards;
}
.ka-show.is-paused .ka-step.is-active i::after {
  animation-play-state: paused;
}
.ka-step:hover i {
  background: rgba(255, 255, 255, 0.32);
}
.ka-step:focus-visible,
.ka-pause:focus-visible,
.ka-banner a:focus-visible,
.ka-banner button:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
  border-radius: 6px;
}
@keyframes ka-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.ka-pause {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
}
.ka-pause:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Banner */
.ka-banner {
  z-index: 1500;
  color: #fff;
  background: linear-gradient(90deg, #4c1d95, #7c3aed 45%, #6d28d9);
}
.ka-banner[hidden] {
  display: none;
}
.ka-banner__in {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ka-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.ka-banner__t {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
.ka-banner__cta {
  flex: 0 0 auto;
  background: #fff;
  color: #4c1d95;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.ka-banner__cta:hover {
  color: #4c1d95;
  background: #f5f3ff;
}
.ka-banner__x {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
}
.ka-banner__x:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Desktop: full-bleed canvas */
@media (min-width: 992px) {
  body.ka-auth {
    background:
      radial-gradient(900px 700px at 16% 52%, rgba(124, 58, 237, 0.42), transparent 62%),
      radial-gradient(820px 620px at 92% 0%, rgba(76, 29, 149, 0.55), transparent 66%),
      linear-gradient(160deg, #070611 0%, #120c26 55%, #070611 100%);
    background-attachment: fixed;
  }
  body.ka-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(75% 70% at 60% 45%, #000, transparent 85%);
    mask-image: radial-gradient(75% 70% at 60% 45%, #000, transparent 85%);
  }

  .ka-shell {
    position: relative;
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    min-height: 100vh;
  }
  .ka-form {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 32px 8px calc(32px + var(--ka-banner-h)) 48px;
    min-height: 100vh;
  }
  body.ka-auth .auth-container {
    background: #fff;
    border-radius: 22px;
    padding: 30px 32px 26px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .ka-show {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
  }
  .ka-stage {
    position: absolute;
    inset: 0 0 var(--ka-banner-h) 0;
  }
  .ka-theme {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .ka-copy {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(700px, 84%);
    text-align: center;
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, -46%);
    transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
  }
  .ka-theme.is-active .ka-copy {
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.7s ease 0.1s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s, filter 0.7s ease 0.1s;
  }
  .ka-h {
    font-size: clamp(40px, min(4.5vw, 8vh), 80px);
  }
  .ka-s {
    font-size: clamp(15px, 1.2vw, 18px);
  }

  .ka-pos {
    position: absolute;
    opacity: 0;
    transform: translateY(22px) scale(0.88) rotate(var(--r, 0deg));
    transition: opacity 0.3s ease, transform 0.35s ease;
  }
  .ka-theme.is-active .ka-pos {
    opacity: 1;
    transform: rotate(var(--r, 0deg));
    transition: opacity 0.6s ease var(--d), transform 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) var(--d);
  }
  .ka-bob {
    animation: ka-bob 7s ease-in-out infinite;
  }
  .ka-pos--f1 .ka-bob { animation-duration: 6.4s; animation-delay: -1.2s; }
  .ka-pos--f2 .ka-bob { animation-duration: 8.2s; animation-delay: -3.1s; }
  .ka-pos--f3 .ka-bob { animation-duration: 7.3s; animation-delay: -2.2s; }
  .ka-pos--hero .ka-bob { animation-duration: 9s; }
  @keyframes ka-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  .ka-pos--hero img {
    width: clamp(200px, 26vh, 290px);
  }
  .ka-theme--a .ka-pos--hero { top: max(9%, 78px); right: 5%; --r: 3deg; }
  .ka-theme--a .ka-pos--f1 { top: 14%; left: 8%; --r: -4deg; }
  .ka-theme--a .ka-pos--f2 { bottom: 17%; left: 5%; --r: 3deg; }
  .ka-theme--a .ka-pos--f3 { bottom: 8%; right: 9%; --r: -2deg; }
  .ka-theme--b .ka-pos--hero { bottom: -7%; left: 9%; --r: -3deg; }
  .ka-theme--b .ka-pos--f1 { top: 12%; left: 9%; --r: 3deg; }
  .ka-theme--b .ka-pos--f2 { top: 11%; right: 7%; --r: -3deg; }
  .ka-theme--b .ka-pos--f3 { bottom: 15%; right: 5%; --r: 2deg; }

  .ka-nav {
    position: absolute;
    z-index: 3;
    top: 26px;
    left: 32px;
    width: min(300px, 40%);
  }

  body.ka-auth .kapek-lang-toolbar {
    top: 22px;
    right: 26px;
    box-shadow: none !important;
  }
  body.ka-auth .kapek-lang-toolbar .btn {
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
  }
  body.ka-auth .kapek-lang-toolbar .btn.btn-primary {
    background: #fff;
    border-color: #fff;
    color: #4c1d95;
  }

  .ka-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 64px;
    display: flex;
    justify-content: center;
  }
}

@media (min-width: 992px) and (max-width: 1279.98px) {
  .ka-shell {
    grid-template-columns: 450px minmax(0, 1fr);
  }
  .ka-form {
    padding-left: 32px;
  }
  .ka-pos--f2 {
    display: none;
  }
  .ka-copy {
    width: 88%;
  }
  .ka-h {
    font-size: clamp(36px, 4.4vw, 52px);
  }
}

@media (min-width: 992px) and (max-width: 1139.98px) {
  .ka-pos--f1,
  .ka-pos--f3 {
    display: none;
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .ka-pos--f2 {
    display: none;
  }
  .ka-pos--hero img {
    width: clamp(190px, 25vh, 240px);
  }
}

/* Tablet and phone: form first, then the showcase */
@media (max-width: 991.98px) {
  .ka-form {
    display: flex;
    justify-content: center;
    padding: 64px 22px 28px;
  }
  .ka-show {
    position: relative;
    margin: 0 12px 12px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    background:
      radial-gradient(520px 380px at 90% 0%, rgba(124, 58, 237, 0.5), transparent 70%),
      linear-gradient(160deg, #070611 0%, #120c26 60%, #070611 100%);
  }
  .ka-stage {
    display: grid;
  }
  .ka-theme {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    padding: 28px 22px 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  }
  .ka-theme.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s;
  }
  .ka-eyebrow {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .ka-eyebrow > i {
    display: none;
  }
  .ka-h {
    font-size: 32px;
    margin-top: 14px;
  }
  .ka-s {
    font-size: 15px;
    margin: 12px 0 0;
  }
  .ka-pos--f1,
  .ka-pos--f2,
  .ka-pos--f3 {
    display: none;
  }
  .ka-pos--hero {
    margin-top: 22px;
    display: flex;
    justify-content: center;
  }
  .ka-pos--hero .ka-bob {
    width: min(440px, 100%);
  }
  .ka-pos--hero img {
    width: 100%;
    border-radius: 16px;
  }
  .ka-nav {
    padding: 14px 22px 22px;
  }
  .ka-banner {
    position: relative;
    margin: 0 12px 12px;
    border-radius: 18px;
    padding: 16px 52px 16px 16px;
  }
  .ka-banner__in {
    flex-wrap: wrap;
    gap: 10px;
  }
  .ka-banner__x {
    top: 14px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ka-copy,
  .ka-theme.is-active .ka-copy,
  .ka-pos,
  .ka-theme.is-active .ka-pos,
  .ka-theme,
  .ka-theme.is-active {
    transition: none !important;
    filter: none !important;
  }
  .ka-bob,
  .kf-live i {
    animation: none !important;
  }
  .ka-step.is-active i::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* Chat 49: sign-up protection */
.ka-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ka-ts:not(:empty) { margin: 0 0 14px; }
.ka-err { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13.5px; line-height: 1.45; }
.ka-hint { display: flex; gap: 6px; margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #f5f3ff; border: 1px solid #ddd6fe; color: #5b21b6; font-size: 12.5px; line-height: 1.45; }
.ka-hint[hidden] { display: none; }
.ka-hint.is-req { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
