/* mobile-pass-20261113: phone nav, hero captions, first-screen trim, tap targets, hero fade.
   Desktop (min-width 768 / 960) stays as batch 15 except the intended caption move and 44px toggles/links. */

/* 1. Watch stack: pill + Try-it under the Watch, centered on it */
.home-simple .hero-watchdemo{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}
/* Same chrome as .hero-shot .hero-watch in feature-demo.css, now that the pill lives under the Watch. */
.home-simple .hero-watchdemo .hero-watch{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  width:max-content;
  max-width:100%;
  margin:12px auto 0;
  min-height:44px;
  padding:6px 14px 6px 6px;
  background:#1b2736;
  border:1px solid #364858;
  border-radius:999px;
  box-sizing:border-box;
  line-height:1.2;
  text-align:left;
}
.home-simple .hero-watchdemo .hero-watch .watch-icon{
  flex:none;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#91c5d824;
  color:#91c5d8;
}
.home-simple .hero-watchdemo .hero-watch .watch-icon svg{
  display:block;
  width:16px;
  height:16px;
}
.home-simple .hero-watchdemo .hero-watch .watch-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
  min-width:0;
  line-height:1.2;
}
.home-simple .hero-watchdemo .hero-watch .watch-title{
  color:#edf3f7;
  font-size:12.5px;
  font-weight:600;
  white-space:nowrap;
}
.home-simple .hero-watchdemo .hero-watch .watch-sub{
  color:#adbdca;
  font-size:11px;
  font-weight:500;
  white-space:nowrap;
}
.home-simple .hero-try{
  margin:8px 0 0;
  font-size:0.8125rem;
  font-weight:550;
  line-height:1.4;
  color:var(--iq-muted);
  text-align:center;
  max-width:100%;
}
@media (min-width:960px){
  .home-simple #hero{
    overflow:visible;
  }
  /* JS sets margin-bottom / .hero-shot padding-bottom so device bodies stay aligned
     and the taller Watch captions do not overlap the next section. */
  .home-simple #hero .hero-watchdemo{
    margin:0;
  }
}

/* 2. Phone nav: shorter two-row bar, 44x44 hits, one link row, do not raise type */
@media (max-width:767px){
  .home-simple .nav,
  .home-simple header .nav,
  html body.iq-chrome>header .nav{
    padding-top:8px;
    padding-bottom:8px;
    row-gap:4px;
  }
  .home-simple .navlinks,
  html body.iq-chrome>header .navlinks{
    flex-wrap:nowrap;
    justify-content:space-between;
    gap:0;
    min-width:0;
  }
  /* Shrink-wrap the words so space-between gaps are even text-to-text.
     44px tap area comes from a ::before, not min-width (that centered short labels). */
  .home-simple .navlinks a,
  html body.iq-chrome>header .navlinks a{
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    position:relative;
    width:auto;
    min-width:0;
    min-height:44px;
    padding-left:0;
    padding-right:0;
    flex:0 0 auto;
  }
  .home-simple .navlinks a::before,
  html body.iq-chrome>header .navlinks a::before{
    content:"";
    position:absolute;
    top:50%;
    left:calc(var(--nav-gap, 0px) / -2);
    right:calc(var(--nav-gap, 0px) / -2);
    height:44px;
    margin-top:-22px;
  }
}

/* 3. Homepage first screen: small vertical trims on phones only */
@media (max-width:767px){
  .site-home main>.hero,
  .home-simple .hero,
  .home-simple #hero{
    padding-top:20px;
    padding-bottom:20px;
  }
  .home-simple .hero h1{
    margin-bottom:10px;
  }
  .home-simple .hero-lead{
    margin-bottom:4px;
  }
  .home-simple .hero-rating{
    margin:0 0 6px;
  }
  .home-simple .hero-actions{
    margin:0 0 10px;
  }
}

/* 4. App Store rating: keep type, 44px hit area */
.home-simple .hero-rating .rating-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  box-sizing:border-box;
}

/* 5. Pricing Monthly/Yearly toggle */
.plan-toggle button{
  min-height:44px;
}

/* 6. Features row download links */
/* Keep the live inline wrap (at 360 the Android label can break). Expand the tap area only. */
.fp-row-cta a{
  position:relative;
}
.fp-row-cta a::after{
  content:"";
  position:absolute;
  left:-2px;
  right:-2px;
  top:50%;
  height:44px;
  margin-top:-22px;
}

/* 7. Hero visible immediately on small screens (reduced-motion already skips the fade) */
@media (max-width:767px){
  html.has-motion #hero .motion-reveal{
    opacity:1;
    transform:none;
    transition:none;
  }
}
