/* Reusable AadiFit app-discovery CTA (inline + end-of-article) and the nav "Get the App" link.
   Markup: see js/app-cta.js header. Static in the page flow, never fixed or sticky, so it cannot cover content on mobile. */
.app-cta {
  --app-cta-red: #e53935;
  --app-cta-gold: #c8a96e;
  margin: 32px 0;
  padding: 20px 22px;
  border: 1px solid rgba(200, 169, 110, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.08), rgba(229, 57, 53, 0.04));
  color: #ede8de;
}
.app-cta__text { margin: 0 0 14px; font-size: 0.97rem; line-height: 1.6; color: rgba(237, 232, 222, 0.88); }
.app-cta__text strong { color: #fff; }
.app-cta__title { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; color: #fff; }
.app-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.app-cta__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px; border-radius: 10px;
  font-weight: 700; font-size: 0.92rem; line-height: 1.2; text-decoration: none;
}
.app-cta__btn--primary { background: var(--app-cta-red); color: #fff; }
.app-cta__btn--primary:hover { background: #c62828; }
.app-cta__btn:focus-visible, .app-cta__link:focus-visible { outline: 2px solid var(--app-cta-gold); outline-offset: 3px; }
.app-cta__link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--app-cta-gold); font-weight: 600; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px;
}
.app-cta__link:hover { color: #e0c78f; }
.app-cta__note { margin: 12px 0 0; font-size: 0.8rem; color: rgba(237, 232, 222, 0.6); }

/* Nav link, injected by js/app-cta.js */
.ac-nav .ac-nav-app {
  display: inline-flex; align-items: center; padding: 8px 14px; margin-right: 10px;
  border: 1px solid rgba(200, 169, 110, 0.5); border-radius: var(--radius, 10px);
  color: #c8a96e; font-weight: 700; font-size: 0.8rem; text-decoration: none; white-space: nowrap;
}
.ac-nav .ac-nav-app:hover { background: rgba(200, 169, 110, 0.12); }
/* The bar needs ~1240px for the links, this link and the assessment button, and the full-size link type
   (above 1200px) needs ~1340px. Up to 1240px reuse the existing hamburger + mobile menu (already used at
   <=768px), which carries the same "Get the App" link. From 1241px to 1340px keep the bar but extend the
   existing compact link type (site-chrome.css applies it at <=1200px) so the extra link does not overflow. */
@media (max-width: 1240px) { .ac-nav .ac-nav-app { display: none; } }
@media (min-width: 768.02px) and (max-width: 1240px) {
  .ac-nav .ac-nav-links { display: none; }
  .ac-nav .ac-hamburger { display: flex; }
}
@media (min-width: 1240.02px) and (max-width: 1340px) {
  .ac-nav .ac-nav-links { gap: 14px; }
  .ac-nav .ac-nav-links a { font-size: 0.92rem; }
}

@media (max-width: 520px) {
  .app-cta { padding: 18px 16px; }
  .app-cta__btn { width: 100%; }
}
