/* ===============================
   Base
   =============================== */
body {
  font-family: 'PT Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #333;
}

header {
  background-color: #459158;
  color: white;
  padding: 1rem;
  text-align: center;
}

nav a {
  margin: 0 1rem;
  color: white;
  text-decoration: none;
}

main {
  padding: 2rem;
}

footer {
  background-color: #459158;
  color: white;
  text-align: center;
  padding: 1rem;
}

.logo {
  max-height: 120px;
  max-width: 100%;
}

.tagline {
  color: black;
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

/* ===============================
   App cards (Apps page)
   =============================== */
.app-entry {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin: 1rem auto;
  max-width: 400px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.app-entry h2 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
}
.app-entry a {
  text-decoration: none;
  color: #204f2c;
}
.app-entry a:hover {
  text-decoration: underline;
}
.app-entry p {
  color: #555;
  font-size: 1rem;
  margin: 0.5rem 0 0 0;
}

/* Logo sizes (shared) */
.app-logo {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}

/* ===============================
   Global section grid (used for card layouts)
   =============================== */
section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

main section {
  margin-bottom: 1.5rem;
}

/* Headings & Lists defaults */
main h2 {
  color: #204f2c;
  margin-top: 1rem;
  font-size: 1.5rem;
}
main h3 {
  margin-top: 0.75rem;
  color: #317a46;
  font-size: 1.2rem;
}
main ul {
  margin-left: 1.25rem;
  padding-left: 1rem;
  list-style-type: disc;
}

/* ===============================
   Hero (Home)
   =============================== */
.hero {
  text-align: center;
  background-color: #f0fdf4;
  padding: 3rem 1rem;
  border-bottom: 1px solid #ccc;
}
.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #204f2c;
}
.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

/* ===============================
   Teaser Section (Home)
   =============================== */
.teaser-section {
  text-align: center;
}
.teaser-section h3 {
  font-size: 1.75rem;
  color: #204f2c;
  text-align: center;
  margin-bottom: 1rem;
}
.teaser-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.teaser-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 180px;
  text-align: center;
}
.teaser-card img {
  width: 80px;
  height: auto;
  margin-bottom: 0.5rem;
}
.teaser-card p {
  font-weight: bold;
  color: #204f2c;
  margin: 0;
}

/* Coming Soon label (optional) */
.coming-soon {
  display: block;
  margin-top: 0.5rem;
  color: #888;
  font-style: italic;
  text-align: center;
  font-size: 2rem;
}

/* ===============================
   CRUCIAL FIX: Override global section flex
   for content sections on app detail pages
   =============================== */
.teaser-section,
.intro,
.what-is-it,
.features,
.who-is-it-for,
.why-choose,
.app-download {
  display: block !important;  /* stop flex layout here */
  padding: 0;
  gap: 0;
}

/* Force headings & lists to stack on detail pages */
.features > h2,
.features > h3,
.features > ul {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  margin: 0.75rem 0;
}
.features ul {
  list-style: disc;
  margin: 0 0 1rem 1.25rem;
  padding-left: 1rem;
}

/* ===============================
   App Download Section
   =============================== */
.app-download {
  display: block !important;
  text-align: center;
  margin: 2rem 0;
}

.app-download a,
.app-download h2 {
  display: block !important;
  width: 100%;
  text-align: center;
}

.appstore-badge {
  width: 180px;
  height: auto;
  display: block !important;
  margin: 0 auto 20px auto;
  max-width: 220px;
  transition: transform 0.2s ease;
}

.appstore-badge:hover {
  transform: scale(1.05);
}

.app-download h2 {
  color: #204f2c;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* ===============================
   Promo Video
   =============================== */
.promo-video {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.promo-video video {
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 768px) {
  header {
    padding: 0.5rem;
  }
  .logo {
    max-height: 80px;
    width: auto;
  }
  .tagline {
    font-size: 1.2rem;
    margin: 0.5rem 0;
  }
  nav a {
    display: inline-block;
    margin: 0.5rem 0.75rem;
    font-size: 1rem;
  }
  main {
    padding: 1rem;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .teaser-grid {
    flex-direction: column;
    align-items: center;
  }
  .teaser-card {
    max-width: 90%;
  }
  .app-entry {
    max-width: 90%;
  }
  .appstore-badge {
    max-width: 180px;
    margin-bottom: 1rem;
  }
  .app-download h2 {
    font-size: 1.4rem;
  }
  footer {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

.btn-primary {
  display: inline-block;
  background: #204f2c;
  color: #fff;
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  transition: background 0.2s ease;
}
.btn-primary:hover {
  background: #317a46;
}

/* --- GAN CTA button --- */
a.btn-gan {
  display: inline-block;
  background: #459158;
  color: #fff !important;
  padding: 18px 36px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem !important; /* force larger text */
  line-height: 1.4;
  transition: background 0.25s ease;
}
a.btn-gan:hover {
  background: #317a46;
}