@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;
}

@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;
}

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: 118px;
  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: 30;
  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.875rem;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
  padding-top: 30px;
}
/* Text Animations */
#text-animations {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 5;
  display: none;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.text-block {
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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;
}

#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;
}

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

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

.timeline-img {
  width: 120%;
  height: auto;
  transform: translateX(36%);
  transition: transform 0.5s ease-in-out;
}

.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: 64px;
  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: 12px;
  line-height: 1.5;
  color: #ffffff;
  margin: 0 0 4px 0;
}

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

/* 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;
  }

  .final-body {
    font-size: 12px;
  }
}
