/**
 * Shared LevelUp marketing aurora — matches homepage/index.html rainbow canvas + heading motion.
 */

:root {
  --lu-grass-1: #94d464;
  --lu-grass-2: #99f44e;
  --lu-grass-1-rgb: 148, 212, 100;
  --lu-grass-2-rgb: 153, 244, 78;
  --lu-heartbeat-1: #a63263;
  --lu-heartbeat-2: #d72f7d;
  --lu-heartbeat-1-rgb: 166, 50, 99;
  --lu-heartbeat-2-rgb: 215, 47, 125;
  --lu-sunset-1: #ff6d48;
  --lu-sunset-2: #ed763e;
  --lu-sunset-1-rgb: 255, 109, 72;
  --lu-sunset-2-rgb: 237, 118, 62;
  --lu-sunrise-1: #ed763e;
  --lu-sunrise-2: #ffcf55;
  --lu-sunrise-1-rgb: 237, 118, 62;
  --lu-sunrise-2-rgb: 255, 207, 85;
  --lu-dusk-rgb: 0, 107, 129;
  --lu-water-rgb: 78, 165, 241;
  --lu-sky-rgb: 112, 241, 252;
  --lu-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.lu-landing {
  overflow-x: hidden;
}

.lu-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  z-index: 1;
}

.LevelUPArora_background {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  overflow-x: clip;
}

.LevelUPArora_background__bg {
  position: absolute;
  inset: -140px -80px -220px -80px;
  pointer-events: none;
  z-index: 0;
}

.LevelUPArora_background__canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 0;
}

.LevelUPArora_background__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 18% 14%, rgba(11, 18, 32, 0.58), rgba(11, 18, 32, 0.18) 52%, rgba(11, 18, 32, 0) 78%),
    radial-gradient(900px 520px at 78% 12%, rgba(var(--lu-sunrise-2-rgb), 0.16), rgba(var(--lu-sunrise-2-rgb), 0) 62%),
    radial-gradient(900px 520px at 72% 88%, rgba(var(--lu-heartbeat-2-rgb), 0.14), rgba(var(--lu-heartbeat-2-rgb), 0) 64%),
    radial-gradient(900px 520px at 12% 88%, rgba(var(--lu-sunset-1-rgb), 0.12), rgba(var(--lu-sunset-1-rgb), 0) 64%),
    linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 22%);
  pointer-events: none;
}

.LevelUPArora_background__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 520px at 25% 25%, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0) 70%);
  opacity: 0.35;
  pointer-events: none;
}

.cg-sectionWhite {
  background: #fff;
  border-top: 1px solid rgba(11, 18, 32, 0.12);
  border-bottom: 1px solid rgba(11, 18, 32, 0.12);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  z-index: 20;
  isolation: isolate;
}

.cg-sectionWhite h2,
.cg-sectionWhite .cg-footerTitle {
  background: linear-gradient(
    135deg,
    rgba(var(--lu-sky-rgb), 1) 0%,
    rgba(var(--lu-water-rgb), 1) 20%,
    rgba(var(--lu-grass-1-rgb), 1) 40%,
    rgba(var(--lu-grass-2-rgb), 1) 50%,
    rgba(var(--lu-heartbeat-2-rgb), 1) 60%,
    rgba(var(--lu-heartbeat-1-rgb), 1) 70%,
    rgba(var(--lu-sunset-1-rgb), 1) 85%,
    rgba(var(--lu-sunrise-1-rgb), 1) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: luAuroraTextGradient 12s ease-in-out infinite;
}

@keyframes luAuroraTextGradient {
  0% { background-position: 0% 50%; }
  33% { background-position: 100% 50%; }
  66% { background-position: 100% 100%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .cg-sectionWhite h2,
  .cg-sectionWhite .cg-footerTitle {
    animation: none;
    background-position: 0% 50%;
  }
}

.LevelUPArora_background h1,
.LevelUPArora_background h2,
.LevelUPArora_background h3 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* White cards on aurora sections keep dark readable text */
.LevelUPArora_background .cg-card h1,
.LevelUPArora_background .cg-card h2,
.LevelUPArora_background .cg-card h3 {
  color: var(--cg-ink, #0b1220);
  text-shadow: none;
}

.LevelUPArora_background .cg-card p,
.LevelUPArora_background .cg-card .cg-emotionalSub,
.LevelUPArora_background .cg-card .cg-muted,
.LevelUPArora_background .cg-card .cg-lead {
  color: var(--cg-muted, rgba(11, 18, 32, 0.72));
  text-shadow: none;
}

.LevelUPArora_background .cg-lead,
.LevelUPArora_background .cg-heroOpening,
.LevelUPArora_background .cg-emotionalSub {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.LevelUPArora_background .cg-muted,
.LevelUPArora_background .cg-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.LevelUPArora_background .cg-kicker {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.LevelUPArora_background .cg-btn--ghost {
  background: rgba(255, 255, 255, 0.88);
  color: var(--cg-ink, #0b1220);
  border-color: rgba(255, 255, 255, 0.35);
}

.LevelUPArora_background .cg-sectionInner,
.LevelUPArora_background .cg-wrap {
  position: relative;
  z-index: 2;
}

.cg-sectionWhite .cg-sectionInner,
.cg-sectionWhite .cg-wrap {
  position: relative;
  z-index: 2;
}

.cg-sectionWhite .cg-lead,
.cg-sectionWhite .cg-muted,
.cg-sectionWhite p {
  color: rgba(11, 18, 32, 0.88);
}

.cg-sectionWhite .cg-footerTitle {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.LevelUPArora_background .cg-faqBtn {
  color: var(--cg-ink, #0b1220);
}

.cg-sectionWhite .cg-belief {
  color: var(--cg-ink, #0b1220);
}

.cg-sectionWhite h3 {
  color: var(--cg-ink, #0b1220);
}

/* Site footer — matches homepage/index.html */
.lu-footer .cg-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.lu-footer {
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  padding: 56px 0 60px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  overflow: hidden;
  border-top: 1px solid rgba(11, 18, 32, 0.14);
}

.lu-footer__row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.lu-footer__links {
  display: block;
}

.lu-footer__linkList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.lu-footer__linkList a {
  display: inline-block;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.lu-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.lu-footer a:hover {
  color: rgba(255, 255, 255, 0.98);
}

.lu-footer__title {
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
}

.lu-footer__muted {
  color: rgba(255, 255, 255, 0.74);
}

.lu-footer__meta {
  display: grid;
  gap: 8px;
}

.lu-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lu-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(140%);
  transition: transform 220ms var(--lu-ease), background 220ms var(--lu-ease), border-color 220ms var(--lu-ease);
}

.lu-social a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.lu-social svg {
  width: 20px;
  height: 20px;
  opacity: 0.92;
}

.LevelUPArora_background:not([data-astro-src]) .LevelUPArora_background__astro {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.LevelUPArora_background[data-astro-src] {
  overflow: visible;
}

/* Fixed full-viewport ASTRO — static image, section clip-path on scroll (landing-astro-fixed.js) */
.LevelUPArora_background[data-astro-src] .LevelUPArora_background__astro {
  position: fixed;
  inset: 0;
  z-index: 1;
  clip-path: inset(100% 0 0 0);
  overflow: hidden;
  pointer-events: none;
}

body:not(.cm-home):not(.cm-site) .LevelUPArora_background[data-astro-src]:not([data-astro-scale]) .LevelUPArora_background__astroImg {
  width: var(--astro-w, min(680px, 65vw));
  height: auto;
  max-width: 98vw;
  max-height: 98vh;
}

.LevelUPArora_background[data-astro-src] .LevelUPArora_background__astroImg {
  position: absolute;
  left: var(--astro-x, 50%);
  top: var(--astro-y, 50%);
  width: var(--astro-size, 100vmin);
  height: var(--astro-size, 100vmin);
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(var(--astro-rot, -6deg));
  opacity: var(--astro-op, 0.18);
  pointer-events: none;
  user-select: none;
  filter: grayscale(1) contrast(1.12) drop-shadow(0 20px 52px rgba(11, 18, 32, 0.28));
  mix-blend-mode: screen;
}

/* Anchor bottom-right: cheer ASTRO spills past the viewport corner */
.LevelUPArora_background[data-astro-src][data-astro-anchor="bottom-right"] .LevelUPArora_background__astroImg {
  left: auto;
  top: auto;
  right: 0;
  bottom: 0;
  transform: translate(10%, 18%) rotate(var(--astro-rot, -6deg));
  transform-origin: bottom right;
}

.lu-footer .LevelUPArora_background__astro {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.lu-footer .LevelUPArora_background__astroImg {
  position: absolute;
  right: -3%;
  left: auto;
  top: 40%;
  bottom: auto;
  width: auto;
  height: min(105%, 520px);
  max-width: min(48vw, 440px);
  object-fit: contain;
  object-position: right center;
  opacity: 0.14;
  transform: translate(4%, -54%) rotate(-5deg);
  transform-origin: right center;
}

@media (min-width: 760px) {
  .lu-footer__row {
    grid-template-columns: 1.2fr 0.9fr 1fr;
    gap: 24px 36px;
    align-items: start;
    padding-right: clamp(160px, 32vw, 360px);
  }

  .lu-footer__links {
    justify-self: center;
  }

  .lu-footer__linkList {
    align-items: center;
    text-align: center;
  }

  .lu-social {
    justify-content: flex-end;
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 759px) {
  .lu-footer .LevelUPArora_background__astroImg {
    height: min(100%, 300px);
    max-width: min(58vw, 260px);
    opacity: 0.12;
  }

  .lu-footer__row {
    padding-right: clamp(80px, 24vw, 160px);
  }
}
