/* =========================================================
   FOOTER SNI - LANDING GI
   ========================================================= */

.footer-dev--app {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 14px 24px 16px;

  color: #949494;
  background: #101010;
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  font-family: inherit;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.footer-dev--app .footer-dev__line {
  width: min(100%, 1120px);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.footer-dev--app .footer-dev__credit {
  color: #8f8f8f;
  white-space: nowrap;
}

/* =========================================================
   SNI / TRIGGER
   ========================================================= */

.footer-dev--app .dev-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.footer-dev--app .dev-trigger {
  margin: 0;
  padding: 0;

  color: #f2f2f2;
  background: transparent;
  border: 0;

  font: inherit;
  font-weight: 800;
  line-height: inherit;
  white-space: nowrap;

  cursor: pointer;

  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.footer-dev--app .dev-trigger:hover,
.footer-dev--app .dev-trigger:focus-visible,
.footer-dev--app .dev-trigger[aria-expanded="true"] {
  color: #40d8cb;
  outline: none;
}

/* =========================================================
   POPOVER SNI
   ========================================================= */

.footer-dev--app .dev-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 1500;

  width: min(330px, calc(100vw - 32px));
  padding: 17px;

  color: #f1f1f1;
  background: rgba(18, 18, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;

  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  text-align: left;

  transform: translateX(-50%) translateY(8px) scale(0.98);

  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.footer-dev--app .dev-popover.is-open .dev-bubble {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateX(-50%) translateY(0) scale(1);
}

.footer-dev--app .dev-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;

  width: 14px;
  height: 14px;

  background: rgba(18, 18, 18, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);

  transform: translateX(-50%) rotate(45deg);
}

.footer-dev--app .dev-bubble__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.footer-dev--app .dev-bubble__brand img {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;

  border-radius: 50%;
  object-fit: cover;
}

.footer-dev--app .dev-bubble__brand > span,
.footer-dev--app .dev-bubble__brand strong,
.footer-dev--app .dev-bubble__brand small,
.footer-dev--app .dev-bubble__description,
.footer-dev--app .dev-bubble__links {
  display: block;
}

.footer-dev--app .dev-bubble__brand strong {
  margin-bottom: 3px;

  color: #fff;
  font-size: 12px;
  line-height: 1.3;
}

.footer-dev--app .dev-bubble__brand small {
  color: #9d9d9d;
  font-size: 10px;
}

.footer-dev--app .dev-bubble__description {
  margin-bottom: 14px;

  color: #c4c4c4;
  font-size: 11px;
  line-height: 1.55;
}

.footer-dev--app .dev-bubble__links {
  display: flex;
  gap: 8px;
}

.footer-dev--app .dev-bubble__links a {
  flex: 1;
  min-height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 12px;

  color: #f1f1f1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;

  font-size: 10px;
  font-weight: 750;
  text-decoration: none;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.footer-dev--app .dev-bubble__links a:hover,
.footer-dev--app .dev-bubble__links a:focus-visible {
  color: #08201e;
  background: #40d8cb;
  border-color: #40d8cb;
  outline: none;

  transform: translateY(-1px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {
  .footer-dev--app {
    padding: 13px 16px 18px;
  }

  .footer-dev--app .footer-dev__line {
    flex-direction: column;
    gap: 2px;
  }

  .footer-dev--app .footer-dev__credit {
    white-space: normal;
  }

  .footer-dev--app .dev-bubble {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 82px;

    width: auto;

    transform: translateY(8px) scale(0.98);
  }

  .footer-dev--app .dev-popover.is-open .dev-bubble {
    transform: translateY(0) scale(1);
  }

  .footer-dev--app .dev-bubble::after {
    display: none;
  }
}

@media (max-width: 380px) {
  .footer-dev--app .dev-bubble__links {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-dev--app .dev-trigger,
  .footer-dev--app .dev-bubble,
  .footer-dev--app .dev-bubble__links a {
    transition: none;
  }
}
