/* /assets/css/index-mobile.css
   Load AFTER index.css:
   <link rel="stylesheet" href="/assets/css/index.css"/>
   <link rel="stylesheet" href="/assets/css/index-mobile.css"/>
   Fixes: Log In / Join Now disappearing on phones, hero CTA below the fold,
   iOS 100vh bug, fixed-nav overlap with the notch. */

/* Always keep Log In + Join Now visible, on every screen size. */
@media (max-width: 900px) {
  nav {
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
  .nav-logo svg, .nav-logo img { width: 30px; height: 30px; }
  .nav-logo img.logo-on-dark, .nav-logo img.logo-on-light { width: auto; height: 32px; }
  .nav-logo-text { font-size: 1.1rem; }

  .nav-links { display: flex; gap: 10px; }
  /* hide the in-page anchors (first three items), keep the last two */
  .nav-links li:not(:nth-last-child(-n+2)) { display: none; }
  .nav-links a { font-size: .9rem; padding: 8px 6px; }
  .nav-links .nav-cta { padding: 9px 18px; }

  /* On the transparent state the plain "Log In" link must stay legible */
  nav:not(.scrolled) .nav-links a:not(.nav-cta) { color: #fff; font-weight: 600; }

  /* Headline and CTA first; phone mockup follows */
  .hero { min-height: 100vh; min-height: 100svh; padding: 96px 20px 56px; }
  .phone-mockup-wrap { order: 1; }
  .hero-subtitle { font-size: 1.02rem; margin-bottom: 28px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { justify-content: center; width: 100%; }
  .hero-stats { gap: 20px; margin-top: 32px; justify-content: space-between; }
  .stat-number { font-size: 1.5rem; }

  .verify-card { padding: 28px 22px; }
}

@media (max-width: 380px) {
  .nav-logo-text { display: none; }   /* keep both buttons on tiny phones */
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .phone-mockup, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
