/* ================================
   LEO / WEBPUNKZ MOBILE-FIRST POPUP
================================ */

:root {
  --leo-bg: #05070b;
  --leo-bg-soft: #0b1018;
  --leo-card: #101722;
  --leo-card-2: #151d2b;
  --leo-border: rgba(255, 255, 255, 0.12);
  --leo-text: #ffffff;
  --leo-muted: #a8b3c7;
  --leo-soft: #dce7f7;
  --leo-accent: #35f2b4;
  --leo-accent-2: #38bdf8;
  --leo-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

/* CTA BUTTON */
.leo-audit-btn {
  appearance: none;
  border: 0;
  outline: 0;
  cursor: pointer;

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

  width: 100%;
  max-width: 340px;

  padding: 16px 24px;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--leo-accent), var(--leo-accent-2));
  color: #031015;

  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;

  box-shadow: 0 18px 45px rgba(53, 242, 180, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.leo-audit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(56, 189, 248, 0.28);
}

/* POPUP BASE */
.leo-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.leo-popup.is-open {
  display: block;
}

.leo-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.82);
  backdrop-filter: blur(12px);
}

/* MOBILE-FIRST SHEET */
.leo-popup__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  max-height: 94vh;
  overflow-y: auto;

  background:
    radial-gradient(circle at top left, rgba(53, 242, 180, 0.13), transparent 34%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.13), transparent 34%),
    linear-gradient(180deg, #0d121b 0%, #05070b 100%);

  border: 1px solid var(--leo-border);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;

  color: var(--leo-text);
  box-shadow: var(--leo-shadow);

  padding: 22px 16px 24px;

  animation: leoSheetUp 0.28s ease forwards;
}

@keyframes leoSheetUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CLOSE BUTTON */
.leo-popup__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  z-index: 5;

  width: 42px;
  height: 42px;

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

  border-radius: 999px;
  border: 1px solid var(--leo-border);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;

  font-size: 30px;
  line-height: 1;
  cursor: pointer;

  backdrop-filter: blur(10px);
}

/* HEADER */
.leo-popup__header {
  padding: 4px 4px 16px;
  text-align: left;
}

.leo-popup__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;

  border-radius: 999px;
  border: 1px solid rgba(53, 242, 180, 0.32);
  background: rgba(53, 242, 180, 0.08);

  color: var(--leo-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.leo-popup__header h2 {
  margin: 0 0 12px;

  color: #ffffff;
  font-size: clamp(31px, 10vw, 46px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.leo-popup__header p {
  margin: 0;
  color: var(--leo-muted);
  font-size: 15.5px;
  line-height: 1.58;
}

/* TRUST BAR */
.leo-popup__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;

  margin: 8px 0 14px;
}

.leo-popup__trust div {
  padding: 13px 8px;

  border-radius: 18px;
  border: 1px solid var(--leo-border);
  background: rgba(255, 255, 255, 0.055);

  text-align: center;
}

.leo-popup__trust strong {
  display: block;

  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.leo-popup__trust span {
  display: block;
  margin-top: 5px;

  color: var(--leo-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* GHL FORM CARD */
.leo-popup__form-card {
  overflow: hidden;

  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #ffffff;

  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

#leo-ghl-audit-form {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
  background: #ffffff;
}

/* WHAT HAPPENS NEXT */
.leo-popup__next {
  margin-top: 14px;
  padding: 16px;

  border-radius: 22px;
  border: 1px solid var(--leo-border);
  background: rgba(255, 255, 255, 0.045);
}

.leo-popup__next-title {
  margin: 0 0 14px;

  color: var(--leo-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.leo-popup__step {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  margin-top: 12px;
}

.leo-popup__step span {
  flex: 0 0 auto;

  color: var(--leo-accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.leo-popup__step p {
  margin: 0;

  color: var(--leo-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* LOCK PAGE SCROLL */
body.leo-popup-open {
  overflow: hidden;
}

/* TABLET / DESKTOP */
@media (min-width: 768px) {
  .leo-audit-btn {
    width: auto;
  }

  .leo-popup {
    align-items: center;
    justify-content: center;
  }

  .leo-popup.is-open {
    display: flex;
    padding: 28px;
  }

  .leo-popup__sheet {
    position: relative;
    inset: auto;

    width: min(760px, 100%);
    max-height: 92vh;

    border-radius: 32px;
    border-bottom: 1px solid var(--leo-border);

    padding: 28px;
  }

  .leo-popup__close {
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .leo-popup__header {
    padding-right: 58px;
  }

  #leo-ghl-audit-form {
    height: 720px;
  }
}

/* LARGER DESKTOP */
@media (min-width: 1100px) {
  .leo-popup__sheet {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 22px;
    align-items: start;
  }

  .leo-popup__header,
  .leo-popup__trust,
  .leo-popup__next {
    grid-column: 1;
  }

  .leo-popup__form-card {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 22px;
  }

  .leo-popup__header {
    padding: 24px 10px 10px;
  }

  .leo-popup__header h2 {
    font-size: 54px;
  }

  .leo-popup__trust {
    margin-top: 8px;
  }

  .leo-popup__next {
    margin-top: 0;
  }

  #leo-ghl-audit-form {
    height: 740px;
  }
}