/* Compact, touch-friendly PWA install affordance and typography guardrails. */
[data-nx-install-slot][hidden] { display: none !important; }
.nx-install-app-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 16px; border:1px solid rgba(22,163,74,.25); border-radius:12px; background:#166534; color:#fff; font:700 14px/1.2 Inter,-apple-system,BlinkMacSystemFont,sans-serif; cursor:pointer; box-shadow:0 6px 18px rgba(22,101,52,.2); }
.nx-install-app-btn:hover { background:#15803d; }
.nx-install-app-btn:disabled { opacity:.65; cursor:wait; }
.nx-install-app-btn i { font-size:17px; }
.nx-install-slot-home { margin-top:12px; }
.nx-install-slot-dashboard { margin:0 0 16px; }

/* Compact variant of the same button for tight header/topbar real estate
   (public nav bar and the dashboard top bar), so it sits inline with the
   other icons instead of taking a full-size CTA's worth of space. */
.nx-install-slot-nav, .nx-install-slot-topbar { display:inline-flex; }
.nx-install-slot-nav .nx-install-app-btn,
.nx-install-slot-topbar .nx-install-app-btn {
  min-height:38px; padding:8px 14px; font-size:13px; border-radius:10px;
}
.nx-install-slot-nav .nx-install-app-btn i,
.nx-install-slot-topbar .nx-install-app-btn i { font-size:15px; }
/* On very narrow screens (mobile topbar), keep it to an icon-only tap
   target so it never crowds the logo/menu/notification/avatar cluster. */
@media (max-width: 420px) {
  .nx-install-slot-topbar .nx-install-app-btn { padding:8px; width:38px; }
  .nx-install-slot-topbar .nx-install-app-btn span { display:none; }
}

/* ============================================================
   INSTALL APP ANNOUNCEMENT BAR
   Slim promotional strip that sits above the main nav (see
   #nxHeaderStack in layouts/main.php). Only ever rendered once the
   browser raises beforeinstallprompt -- see pwa-install.js. Hides on
   scroll-down and reappears near the top / on scroll-up via the
   #nxHeaderStack transform handled in main.js.
   ============================================================ */
.nx-install-announce {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 8px 14px; background: #0E6C43; color: #fff;
  font: 600 13.5px/1.3 Inter,-apple-system,BlinkMacSystemFont,sans-serif;
  text-align: center;
  overflow: hidden;
  transform: translateY(-100%);
  transition: transform .38s cubic-bezier(.22,.9,.32,1);
}
.nx-install-announce.nx-install-announce-visible { transform: translateY(0); }
.nx-install-announce[hidden] { display: none !important; }
.nx-install-announce .nx-install-announce-text { display: flex; align-items: center; gap: 8px; }
.nx-install-announce .nx-install-announce-text i { font-size: 16px; }
.nx-install-announce .nx-install-app-btn {
  min-height: 32px; padding: 6px 14px; font-size: 12.5px; border-radius: 8px;
  background: #fff; color: #0E6C43; border-color: #fff;
}
.nx-install-announce .nx-install-app-btn:hover { background: rgba(255,255,255,0.9); }
.nx-install-announce-dismiss {
  background: none; border: none; color: rgba(255,255,255,0.85); font-size: 18px;
  line-height: 1; padding: 4px 6px; cursor: pointer;
}
@media (max-width: 480px) {
  .nx-install-announce { font-size: 12.5px; padding: 7px 10px; gap: 6px; }
}

/* ============================================================
   FOOTER APP-DOWNLOAD CARD
   A Play Store-style banner shown in the footer once the browser
   has raised beforeinstallprompt (same source of truth as the top
   announce bar) -- an app icon, name/pitch, and a "Download App
   Now" CTA. ============================================================ */
.nx-install-slot-footer[hidden] { display: none !important; }
.nx-install-slot-footer { margin: 8px 0 28px; }
.nx-install-footer-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(22,163,74,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 18px;
  flex-wrap: wrap;
}
.nx-install-footer-icon {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2); overflow: hidden;
}
.nx-install-footer-icon img { width: 48px; height: 48px; object-fit: contain; }
.nx-install-footer-copy { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; }
.nx-install-footer-copy strong { font-size: 15.5px; font-weight: 800; color: #fff; }
.nx-install-footer-copy span { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.72); }
.nx-install-footer-card .nx-install-app-btn {
  flex: 0 0 auto; min-height: 42px; padding: 10px 18px; font-size: 13.5px;
  border-radius: 12px; margin-left: auto;
}
@media (max-width: 575.98px) {
  .nx-install-footer-card { padding: 14px; gap: 12px; }
  .nx-install-footer-icon { width: 48px; height: 48px; }
  .nx-install-footer-icon img { width: 40px; height: 40px; }
  .nx-install-footer-card .nx-install-app-btn { flex: 1 1 100%; margin-left: 0; justify-content: center; }
}

/* ============================================================
   APP-LIKE TYPOGRAPHY
   Bigger, bolder text across the public site so it reads like a real
   mobile app rather than a marketing page -- most noticeable once the
   PWA is actually installed and running in standalone display-mode.
   ============================================================ */
.hp-hero-content h1, .hp-hero h1 { font-weight:900 !important; }
.hp-hero-content .subtitle, .hp-hero .subtitle {
  font-weight:600 !important; font-size:clamp(17px,2.4vw,20px) !important;
}
.hp-nav-links a { font-weight:700 !important; }
.hp-hero-stats .stat-number { font-weight:900 !important; }
.hp-hero-stats .stat-label { font-weight:700 !important; }
.hp-how-it-works h2, .section-header h2, .hp-hero-badge {
  font-weight:800 !important;
}
.nx-btn, .nx-btn-sm { font-weight:700 !important; }

@media (max-width: 767px) {
  .hp-hero-content h1, .hp-hero h1 { font-size:clamp(36px,9.5vw,48px) !important; }
  .hp-hero-content .subtitle, .hp-hero .subtitle { font-size:17px !important; }
  .hp-how-it-works h2, .section-header h2 { font-size:clamp(26px,7vw,32px) !important; }
}

/* Once launched as an installed app (standalone / fullscreen), push the
   scale and weight up further so it matches a native mobile-app feel. */
@media (display-mode: standalone), (display-mode: fullscreen) {
  body { font-weight:500; }
  .hp-hero-content h1, .hp-hero h1 { font-size:clamp(38px,10vw,52px) !important; }
  .hp-hero-content .subtitle, .hp-hero .subtitle { font-size:18px !important; font-weight:700 !important; }
  .nx-h3 { font-weight:800 !important; }
}
