@font-face {
  font-family: 'Avenir Next';
  src: url(/c1c8ab3c46a1a885b272.woff) format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next';
  src: url(/1cb80b28950b86667f21.woff) format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next';
  src: url(/7345330cc284c32e1afd.woff) format('woff');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Avenir Next';
  src: url(/6f4ca33a27239d32d110.woff) format('woff');
  font-weight: 500;
  font-style: normal;
}

.hidden {
  display: none;
}

/* Landing Page */
#landing-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 900;
  background: #74C947;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#landing-page.landing-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2cqb 30px 0;
}

.landing-logo {
  width: 120px;
  height: auto;
  margin-bottom: 30px;
  filter: brightness(0) invert(1);
}

.landing-title {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 38px;
  line-height: 1.15;
  color: #000;
  margin: 0 0 16px;
}

.landing-subtitle {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  color: #000;
  margin: 0 0 20px;
}

.landing-cta {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-width: 130px;
}

.landing-cta:active {
  opacity: 0.85;
}

.landing-cta:disabled {
  cursor: default;
  opacity: 0.7;
}

.landing-cta .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cta-spin 0.6s linear infinite;
  vertical-align: middle;
}

.landing-qrcode-desktop {
  display: none;
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 26px;
  color: #000;
}

.landing-link-desktop {
  display: none;
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 20px;
  margin: -20px auto 20px auto;
  color: #000;
}
.landing-link-mobile {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  text-decoration: underline;
  margin-top: 20px; 
}
.landing-tc-link-desktop {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  text-decoration: underline;
  margin-top: -10px; 
  display: none;
}

@keyframes cta-spin {
  to { transform: rotate(360deg); }
}

.landing-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  object-fit: cover;
  object-position: bottom;
  max-height: 100%;
}

.landing-bg-desk {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  object-fit: cover;
  object-position: bottom;
  max-height: 100%;
  display: none;
}

#qrcode-img {
  display: none;
}

@media (min-width: 769px) {
  .landing-page {
    display: none;
  }
  .landing-bg {
    display: none;
  }
  .landing-cta {
    display: none;
  }
  .landing-subtitle {
    display: none;
  }
  .landing-title {
    max-width: 480px;
  }
  .landing-qrcode-desktop {
    display: block;
  }
  .landing-link-desktop {
    display: block;
  }
  .landing-tc-link-desktop {
    display: block;
  }
  .landing-link-mobile {
    display: none;
  }

  #qrcode-img {
    width: 15svw;
    height: 15svw;
    display: block;
    margin: 40px auto 20px auto;
  }

  .landing-logo {
    width: 200px;
    margin: 60px auto 80px auto;
  }

  .landing-bg-desk {
    display: block;
  }
}

body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: -1px 0px 0px 0px !important;
  padding: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 4;
  pointer-events: none;
}

#ui-overlay {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.ui-button {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.ui-button:active {
  transform: translateY(1px);
}

/* Error Overlay */
#error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#error-overlay.visible {
  opacity: 1;
}

#error-overlay-message {
  color: #ffffff;
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.5;
  text-align: center;
  padding: 24px 32px;
  max-width: 80vw;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
#error-overlay-message span  {
  color: #74C947;
}

#button-container {
  width: 40px;
  height: 40px;
  position: fixed;
  top: 126px;
  right: 18px;
  z-index: 10;
  transform: scale(0);
}

.replay-image {
  width: 100%;
  height: auto;
}

.disclaimer {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  margin: 0 auto 20px auto;
  display: block;
  text-decoration: underline;
  cursor: pointer;
  pointer-events: auto;
}

/* Disclosure Popup */
#disclosure-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #263027;
  border-radius: 30px 30px 0 0;
  padding: 60px 34px 60px 34px;
  transform: translateY(100%);
  pointer-events: auto;
}

#disclosure-close {
  position: absolute;
  top: 33px;
  right: 33px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

#disclosure-close img {
  width: 100%;
  height: 100%;
}

.disclosure-text {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 0.775rem;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
  padding-top: 30px;
}

.disclosure-text a {
  color: #ffffff;
  text-decoration: underline;
}

/* Privacy Banner */
#privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  padding: 8px 16px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#privacy-banner.privacy-banner-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

#privacy-banner-close {
  position: absolute;
  top: -32px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #000;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  padding: 4px 8px;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.privacy-banner-text {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 0.575rem;
  line-height: 1.4;
  color: #000;
  margin: 0;
}

.privacy-banner-text a {
  color: #000;
  text-decoration: underline;
}

@media (min-width: 769px) {
  #privacy-banner {
    padding: 36px 48px 28px;
  }

  .privacy-banner-text {
    font-size: 0.8rem;
    max-width: 900px;
    margin: 0 auto;
  }
}
/* Text Animations */
#text-animations {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  display: none;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
}

#camerafeed {
  z-index: 0;
  pointer-events: none;
}

.text-block {
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.text-block a {
  color: #ffffff;
  text-decoration: none;
  pointer-events: all;
}

.text-title {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400; /* Demi Bold */
  font-size: 1.1875rem;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  will-change: opacity;
}

.text-value {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.875rem;
  font-weight: 600; /* Demi Bold */
  line-height: 1;
  color: #ffffff;
  transform-origin: center center;
  will-change: transform;
}

.text-number,
.text-suffix {
  color: #ffffff;
  font-size: 1rem;
}


.text-prefix {
  color: #ffffff;
}

#dollars-value {
  font-size: 1.6rem;
  line-height: 1;
  width: 86px;
  height: 56px;
  border-radius: 28px;
  background-color: #191919;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

#dollars-value.dollars-value-step-animate {
  animation: dollars-value-step-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#dollars-value .text-number,
#dollars-value .text-suffix {
  font-size: 1.6rem;
}

.dollars-value-cta {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  white-space: nowrap;
}

@keyframes dollars-value-step-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.timeline-block {
  width: 100vw;
  height: auto;
  overflow: hidden;
}

.timeline-no-margin {
  margin: 0;
}

.timeline-img {
  width: 120%;
  height: auto;
  transform: translateX(36%);
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-0 {
  transform: translateX(15%);
} 
.timeline-1 {
  transform: translateX(-8.5%);
} 
.timeline-2 {
  transform: translateX(-32.5%);
} 
.timeline-3 {
  transform: translateX(-56.5%);
} 

/* Particle Explosion */
#particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.explosion-particle {
  position: absolute;
  width: 15px;
  height: 15px;
  background: #74C947;
  border-radius: 50%;
  box-shadow: 
    0 0 10px #74C947,
    0 0 20px #74C947,
    -1px 1px 0 #000000,
    -2px 2px 0 #000000;
  opacity: 1;
  will-change: transform, opacity;
}

/* Final Overlay */
#final-overlay {
  position: fixed;
  width: 100%;
  top: 0px;
  left: 0;
  z-index: 20;
  background: #191919;
  overflow: hidden;
  transform: translateY(-100%);
}

.final-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  text-align: center;
}

.acorns-logo {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
  filter: brightness(0) saturate(100%) invert(85%) sepia(22%) saturate(590%) hue-rotate(58deg) brightness(101%) contrast(90%);
}

.final-body {
  font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.final-body .highlight {
  color: #BCEAA3;
}

.final-body a {
  text-decoration: underline;
  color: #ffffff;
}

/* Responsive Typography */
@media (max-width: 768px) {
  #error-overlay-message {
    font-size: 1.2rem;
  }

  .text-title {
    font-size: 0.9rem;
  }

  .text-value {
    font-size: 2.2rem;
  }
}
