body, html {
  /* Remove forced full-height to avoid footer appearing pinned to viewport bottom */
  /* height: 100%; */
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  /* Remove fixed background to reduce repaint cost on scroll, especially mobile */
  background: linear-gradient(135deg, #2A3714 0%, #1a2408 50%, #0a0a0a 100%), url('/static/images/bg-test.png') no-repeat center center;
  background-size: cover;
  color: #F7F3E8;
  /* Do not force full viewport height so footer sits after content naturally */
  /* min-height: 100vh; */
  box-sizing: border-box;
  /* Footer is no longer fixed; no extra bottom padding needed */
  padding-bottom: 0;
}

/* Keep the nice fixed effect on larger screens only */
@media (min-width: 1024px) {
  body {
    background-attachment: fixed;
  }
}
.landing-container {
  /* Remove min-height: 100vh to let content flow naturally */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Remove justify-content: center to prevent footer sticking */
  padding: 60px 16px 40px 16px; /* increased top padding to center content visually */
  box-sizing: border-box;
  position: relative;
}
.headline {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 5.4em;
  color: #CC6A2A;
  margin: 0 0 16px 0;
  text-align: center;
  letter-spacing: 2px;
  text-shadow:
    -2px -2px 0 #fff,
     2px -2px 0 #fff,
    -2px  2px 0 #fff,
     2px  2px 0 #fff;
}
.subtitle {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}
.download-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}
.store-img {
  display: block;
  height: 56px;
  width: 200px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
.store-badge:nth-child(2) .store-img {
  height: 56px;
  width: 200px;
}
.main-image.mascot {
  width: 220px;
  max-width: 85vw;
  height: auto;
  margin: 16px auto 0 auto;
  display: block;
}
.mascot-up {
  position: relative;
  top: -20px;
}
.footer-pinned {
  position: static; /* not fixed; sits after content */
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  text-align: center;
  padding: 14px 0 4px 0;
}
.footer-links a {
  color: #F7F3E8;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
}
.footer-links a:hover {
  text-decoration: underline;
}
.copyright {
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Content page styles */
.content-container {
  background: #F7F3E8; /* cream */
  color: #222;
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  margin: 3rem auto 6rem auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.06);
}

.content-container h1 {
  color: #CC6A2A;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 2.5em;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.content-container h2 {
  color: #CC6A2A;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-container p, .content-container li {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.content-container a {
  color: #CC6A2A;
  text-decoration: underline;
}

.content-container a:hover {
  /* Keep link color consistent on hover to maintain readability */
  color: #CC6A2A;
}

/* Blog headline links: keep appearance the same on hover for readability */
.content-container h2 a,
.content-container h2 a:hover,
.content-container h2 a:focus,
.content-container h2 a:active {
  color: #CC6A2A;
  text-decoration: none;
}

@media (max-width: 700px) {
  .headline {
    font-size: 3.3em;
  }
  .download-links {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
  }
  .main-image.mascot {
    width: 140px;
    margin: 12px auto 0 auto;
  }
  .landing-container {
    padding: 40px 16px 60px 16px; /* reduced bottom padding on mobile */
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 60px;
  }
  /* Slightly more body padding on small screens for taller footer */
  body { padding-bottom: 0; }
  .app-icon {
    width: 100px;
    height: 100px;
    margin: 20px auto 20px auto;
  }
  .subtitle {
    font-size: 1.2em !important;
    margin-bottom: 30px;
  }
}
