/* Homepage CRO + motion, 2026-11-17. Homepage only. */
.hp-hero { position: relative; overflow: hidden; }
.hp-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hp-hero > .gx-wrap { position: relative; z-index: 1; }
.hp-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform, opacity;
}
.hp-hero-blob-a {
  width: 42rem;
  height: 42rem;
  top: -12rem;
  left: 18%;
  background: radial-gradient(circle, rgba(20, 184, 166, .28), rgba(20, 184, 166, 0) 68%);
}
.hp-hero-blob-b {
  width: 28rem;
  height: 28rem;
  right: -6rem;
  top: 12%;
  background: radial-gradient(circle, rgba(11, 27, 58, .16), rgba(11, 27, 58, 0) 70%);
}

.hp-hero-map {
  position: absolute;
  right: -2%;
  top: 8%;
  width: min(34rem, 48%);
  opacity: .95;
}
@media (max-width: 959px) {
  /* Keep the glow; hide the map so it never sits under the headline */
  .hp-hero-map { display: none; }
}
.hp-map-svg { width: 100%; height: auto; display: block; }
.hp-map-sweep {
  position: absolute;
  inset: 6% 8% 10% 8%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 68%, rgba(20, 184, 166, .28) 78%, transparent 90%);
  mix-blend-mode: multiply;
  -webkit-mask: radial-gradient(circle, transparent 28%, #000 30% 70%, transparent 72%);
  mask: radial-gradient(circle, transparent 28%, #000 30% 70%, transparent 72%);
}
.hp-map-pin { transform-origin: center; transform-box: fill-box; }

html.gx-motion .hp-hero-blob-a { animation: hp-blob 12s ease-in-out infinite alternate; }
html.gx-motion .hp-hero-blob-b { animation: hp-blob 15s ease-in-out infinite alternate-reverse; }
html.gx-motion .hp-map-sweep { animation: hp-sweep 6.5s linear infinite; }
html.gx-motion .hp-map-pin { animation: hp-pin 2.8s ease-in-out infinite; }
html.gx-motion .hp-map-pin:nth-child(2) { animation-delay: .4s; }
html.gx-motion .hp-map-pin:nth-child(3) { animation-delay: .8s; }
html.gx-motion .hp-map-pin:nth-child(4) { animation-delay: 1.2s; }
html.gx-motion .hp-map-pin:nth-child(5) { animation-delay: 1.6s; }

@keyframes hp-blob {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: .75; }
  to { transform: translate3d(3%, 4%, 0) scale(1.08); opacity: 1; }
}
@keyframes hp-sweep { to { transform: rotate(360deg); } }
@keyframes hp-pin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@keyframes hp-rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}

html.gx-motion .hp-eyebrow { animation: hp-rise .7s cubic-bezier(.22, 1, .36, 1) both; }
html.gx-motion .hp-lead { animation: hp-rise .7s .12s cubic-bezier(.22, 1, .36, 1) both; }
html.gx-motion .hp-mcta { animation: hp-rise .7s .18s cubic-bezier(.22, 1, .36, 1) both; }
html.gx-motion .hp-trust { animation: hp-rise .7s .22s cubic-bezier(.22, 1, .36, 1) both; }
html.gx-motion .hp-zip-slot { animation: hp-rise .7s .28s cubic-bezier(.22, 1, .36, 1) both; }
html.gx-motion .hp-alt { animation: hp-rise .7s .32s cubic-bezier(.22, 1, .36, 1) both; }
html.gx-motion .hp-scan { animation: hp-rise .8s .16s cubic-bezier(.22, 1, .36, 1) both; }
html.gx-motion .hp-hero-map { animation: hp-rise .9s .08s cubic-bezier(.22, 1, .36, 1) both; }

/* Scroll reveal: only after html.gx-motion is set in <head>, so no-JS stays visible */
html.gx-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
html.gx-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Button shine + hover */
.hp-hero .gx-btn-p,
.hp-sticky .gx-btn-p,
.gx-cta .gx-btn-t,
.gx-cta .gx-btn-p,
#what-you-get .gx-btn-p,
#how-it-works .gx-btn-p,
#inside .gx-btn-p,
#who .gx-btn-p,
#trust .gx-btn-p {
  position: relative;
  overflow: hidden;
}
.hp-hero .gx-btn-p::after,
.hp-sticky .gx-btn-p::after,
.gx-cta .gx-btn-t::after,
#what-you-get .gx-btn-p::after,
#how-it-works .gx-btn-p::after,
#inside .gx-btn-p::after,
#who .gx-btn-p::after,
#trust .gx-btn-p::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .hp-hero .gx-btn-p:hover::after,
  .hp-sticky .gx-btn-p:hover::after,
  .gx-cta .gx-btn-t:hover::after,
  #what-you-get .gx-btn-p:hover::after,
  #how-it-works .gx-btn-p:hover::after,
  #inside .gx-btn-p:hover::after,
  #who .gx-btn-p:hover::after,
  #trust .gx-btn-p:hover::after {
    transform: translateX(130%);
    transition: transform .55s ease;
  }
  .hp-gs-c,
  #trust .gx-card,
  .hp-scan {
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .hp-gs-c:hover,
  #trust .gx-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -22px rgba(11, 27, 58, .35);
  }
}

.gx-pl-amt {
  font-variant-numeric: tabular-nums;
  min-width: 3.2ch;
  display: inline-block;
}

/* Sticky bar: keep primary scan, add compact See plans */
@media (max-width: 719px) {
  .hp-sticky {
    display: flex;
    align-items: center;
    gap: .75rem;
  }
  .hp-sticky .gx-btn { width: auto; flex: 1 1 auto; }
  .hp-sticky-sec {
    flex: none;
    font-weight: 700;
    color: var(--gx-p, #0f766e);
    text-decoration: none;
    font-size: .92rem;
    padding: .45rem .15rem;
    white-space: nowrap;
  }
  .hp-sticky-sec:hover { text-decoration: underline; }
}

#trust .gx-ctas { justify-content: center; margin-top: 1.75rem; }

@media (prefers-reduced-motion: reduce) {
  .hp-hero-blob,
  .hp-map-sweep,
  .hp-map-pin,
  .hp-eyebrow,
  .hp-lead,
  .hp-mcta,
  .hp-trust,
  .hp-zip-slot,
  .hp-alt,
  .hp-scan,
  .hp-hero-map,
  [data-reveal],
  .hp-gs-c,
  #trust .gx-card,
  .hp-scan {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hp-hero .gx-btn-p::after,
  .hp-sticky .gx-btn-p::after,
  .gx-cta .gx-btn-t::after { display: none; }
}
