/**
 * AIM engagement layer: the "Wait a minute" popup (#523) and the note from the AIM team.
 * Both live outside .elementor-622, so they set their own font and tokens.
 */
.aim-wait,
.aim-bot {
  --aim-ink: #111827;
  --aim-soft: #4b5563;
  --aim-line: #e7e1d4;
  --aim-blue: #0b4fd6;
  --aim-blue-h: #0a3fae;
  --aim-yel: #ffd43b;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

/* ---------- "Wait a minute" popup ---------- */
.aim-wait {
  width: min(500px, calc(100vw - 24px));
}
.aim-wait-card {
  padding: 34px 32px 26px;
  color: var(--aim-ink);
  background: #fff;
  border: 2px solid var(--aim-ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--aim-ink);
}
.aim-wait[open] .aim-wait-card {
  animation: aim-rise 0.3s ease-out;
}
.aim-wait-eyebrow {
  margin: 0;
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--aim-yel);
  border-radius: 999px;
}
.aim-wait-card h2 {
  margin: 16px 0 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--aim-ink);
  text-wrap: balance;
}
.aim-wait-lead {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--aim-soft);
}
.aim-wait-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.aim-wait-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--aim-ink);
}
.aim-wait-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--aim-yel);
  border: 2px solid var(--aim-ink);
  border-radius: 50%;
}
.aim-wait-cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.aim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--aim-blue);
  border: 2px solid var(--aim-ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--aim-ink);
  text-decoration: none;
  cursor: pointer;
}
.aim-btn:hover {
  background: var(--aim-blue-h);
}
.aim-btn-link {
  padding: 6px 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--aim-soft);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
.aim-btn:focus-visible,
.aim-btn-link:focus-visible,
.aim-bot-x:focus-visible,
.aim-bot-btn:focus-visible {
  outline: 3px solid var(--aim-blue);
  outline-offset: 2px;
}
@keyframes aim-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- note from the AIM team ---------- */
.aim-bot {
  position: fixed;
  z-index: 66;
  left: 12px;
  right: 12px;
  bottom: 86px; /* clears the sticky mobile Apply bar */
  padding: 16px 18px 18px;
  color: var(--aim-ink);
  background: #fff;
  border: 2px solid var(--aim-ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--aim-ink);
}
.aim-bot[hidden] {
  display: none !important;
}
.aim-bot.is-in {
  animation: aim-rise 0.35s ease-out;
}
.aim-bot.is-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}
.aim-bot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}
.aim-bot-avatar {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--aim-yel);
  border: 2px solid var(--aim-ink);
  border-radius: 50%;
}
.aim-bot-head b {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}
.aim-bot-head small {
  display: block;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--aim-soft);
}
.aim-bot-bubble {
  margin: 12px 0 0;
  min-height: 70px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--aim-ink);
}
.aim-bot-bubble.is-swap {
  animation: aim-fade 0.3s ease-out;
}
@keyframes aim-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.aim-bot-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--aim-ink);
  background: #eef2f8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.aim-bot-x:hover {
  background: #dbe6fd;
}
.aim-bot-cta {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  animation: aim-fade 0.3s ease-out;
}
.aim-bot-cta[hidden] {
  display: none;
}
.aim-bot-btn {
  flex: 1;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  color: var(--aim-ink);
  background: #fff;
  border: 2px solid var(--aim-ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--aim-ink);
}
.aim-bot-btn.aim-primary {
  color: #fff;
  background: var(--aim-blue);
}
@media (min-width: 821px) {
  .aim-bot {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 380px;
  }
}
@media (max-width: 480px) {
  .aim-wait-card { padding: 28px 20px 22px; }
  .aim-wait-card h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .aim-wait-card,
  .aim-bot,
  .aim-bot-bubble,
  .aim-bot-cta {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- launcher: always on screen, reopens the note ---------- */
.aim-launcher {
  position: fixed;
  z-index: 65;
  right: 12px;
  bottom: 86px; /* clears the sticky mobile Apply bar */
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
  background: #fff;
  border: 2px solid #111827;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #111827;
  cursor: pointer;
}
.aim-launcher[hidden] {
  display: none !important;
}
.aim-launcher:hover {
  background: #fff4c2;
}
.aim-launcher:focus-visible {
  outline: 3px solid #0b4fd6;
  outline-offset: 2px;
}
.aim-launcher .aim-bot-avatar {
  width: 36px;
  height: 36px;
  font-size: 11px;
  background: #ffd43b;
  border: 2px solid #111827;
  border-radius: 50%;
}
@media (min-width: 821px) {
  .aim-launcher {
    right: 24px;
    bottom: 24px;
  }
}
