/* World Hunger Fund - App page. Same palette as the rest of the site (charcoal + gold). */
.whf-app-page {
  --whf-dark: #2e2e2e;
  --whf-gold: #e0c072;
  --whf-gold-deep: #c9a24f;
  --whf-gold-soft: #f3e6c4;
  --whf-paper: #f7f5f0;
  --whf-text: #4a4a4a;
  background: #fff;
}

/* This page starts on white, so give the menu bar a solid background (other pages sit on a dark photo). */
.whf-app-page #menu-0 .navbar { background-color: var(--whf-dark) !important; }

/* ---------- Top section ---------- */
.app-hero { padding: 150px 0 70px; background: #fff; overflow: hidden; }
.app-hero__title {
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--whf-dark);
  font-size: 2.6rem; line-height: 1.2; letter-spacing: -0.5px;
  max-width: 620px; margin: 0 auto 50px; text-align: left;
}
.app-hero__row {
  display: flex; align-items: center; justify-content: center; gap: 70px;
  max-width: 1000px; margin: 0 auto;
}

/* Phone with the two soft shapes behind it (20% larger on wide screens; normal size from tablets down) */
.app-hero__visual { position: relative; flex: 0 0 auto; width: 456px; height: 504px; display: flex; align-items: center; justify-content: center; }
.app-hero__phone { position: relative; z-index: 2; width: 246px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22)); }

/* The still picture shows first; the video fades in over the phone's screen once it starts playing.
   The numbers place the video exactly on the screen of app-phone.webp. */
.app-phone__still { display: block; width: 100%; height: auto; }
.app-phone__video {
  position: absolute; left: 6.07%; top: 2.46%; width: 87.71%; height: 94.8%;
  object-fit: cover; border-radius: 13.04% / 6%; background: transparent;
  opacity: 0; transition: opacity 0.5s ease;
}
.app-phone__video.is-playing { opacity: 1; }
.app-blob { position: absolute; z-index: 1; border-radius: 58% 42% 46% 54% / 52% 38% 62% 48%; }
.app-blob--front {
  width: 360px; height: 336px; left: 36px; top: 72px;
  background: linear-gradient(140deg, var(--whf-dark) 0%, #4a3f2c 45%, var(--whf-gold-deep) 100%);
  transform: rotate(-8deg);
}
.app-blob--back {
  width: 360px; height: 348px; left: 84px; top: 132px;
  background: var(--whf-gold-soft);
  transform: rotate(12deg);
}

.app-hero__text { flex: 0 1 380px; }
.app-hero__lead { font-family: 'Montserrat', sans-serif; font-size: 1.35rem; line-height: 1.5; color: var(--whf-dark); margin: 0 0 26px; }
.app-btn {
  display: inline-block; padding: 13px 30px; border-radius: 30px;
  background: var(--whf-gold); color: var(--whf-dark); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; box-shadow: 0 6px 16px rgba(201, 162, 79, 0.35); transition: background 0.2s, transform 0.2s;
}
.app-btn:hover, .app-btn:focus { background: var(--whf-dark); color: #fff; text-decoration: none; transform: translateY(-2px); }

/* ---------- Download Now ---------- */
.app-download { padding: 20px 0 90px; background: #fff; }
.app-download__box {
  max-width: 640px; margin: 0 auto; padding: 44px 30px; text-align: center;
  background: var(--whf-paper); border: 1px solid #e6e1d4; border-radius: 14px;
}
.app-download__title { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--whf-dark); font-size: 2rem; margin: 0 0 6px; }
.app-download__text { color: var(--whf-text); margin: 0 0 26px; }
.app-stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.app-store { display: inline-block; text-decoration: none; transition: transform 0.2s; }
.app-store:hover, .app-store:focus { transform: translateY(-2px); text-decoration: none; }
.app-store__badge { height: 54px; width: auto; display: block; }
.app-store__badge--google { height: 80px; margin: -13px 0; }   /* Google's badge has built-in padding */

/* Stand-in buttons until the official badges are added */
.app-store__stand-in {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-width: 170px; height: 54px; padding: 0 20px; border-radius: 9px;
  background: #000; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.05;
}
.app-store__stand-in small { font-weight: 400; font-size: 0.68rem; letter-spacing: 0.3px; margin-bottom: 2px; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 860px) {
  .app-hero { padding-top: 120px; }
  .app-hero__title { font-size: 2rem; text-align: center; margin-bottom: 30px; }
  .app-hero__row { flex-direction: column; gap: 30px; }
  .app-hero__text { flex-basis: auto; max-width: 440px; text-align: center; }
  .app-hero__lead { font-size: 1.15rem; }
  /* back to the normal phone size */
  .app-hero__visual { width: 380px; height: 420px; }
  .app-hero__phone { width: 205px; }
  .app-blob--front { width: 300px; height: 280px; left: 30px; top: 60px; }
  .app-blob--back { width: 300px; height: 290px; left: 70px; top: 110px; }
}
@media (max-width: 420px) {
  .app-hero__visual { transform: scale(0.85); margin: -30px 0; }
  .app-hero__title { font-size: 1.7rem; }
}
