/* t1423 hero sample: 3 readable beats, reserved caption, ring never on the email.
   Override only. Existing Outlook window, Do It glass, and Done / Undo stay. */

/* Reserved band under the site header: caption, then the docked ring, then the window.
   Heights are fixed from the first frame so the scene does not jump. */
#hero{
  --beat-head:56px;
  --beat-cap-h:28px;
  --beat-ring-slot:36px;
  --beat-gap:6px;
}
@media (max-width:759px){
  #hero{
    --beat-head:52px;
    --beat-cap-h:40px;
    --beat-ring-slot:40px;
    --beat-gap:6px;
  }
}

#hero .hero-beat-cap{
  position:absolute;
  left:0;
  right:0;
  top:calc(var(--beat-head) + var(--beat-gap));
  height:var(--beat-cap-h);
  margin:0;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  pointer-events:none;
  z-index:6;
  overflow:hidden;
  opacity:0;
  color:#1d1d1f;
  font-family:"Inter Tight",-apple-system,system-ui,sans-serif;
  font-style:normal;
  font-weight:500;
  font-size:16px;
  line-height:1.25;
  letter-spacing:-.014em;
  text-align:center;
  text-wrap:balance;
}
#hero .hero-beat-cap-txt{
  /* Avoid -webkit-box/line-clamp: it breaks RTL and left-aligns "Flow". */
  display:block;
  overflow:hidden;
  max-width:min(720px,100%);
  font-style:normal;
}
html[lang=he] #hero .hero-beat-cap,
html[lang=he] #hero .hero-beat-cap-txt{
  font-family:Heebo,"Inter Tight",sans-serif;
  font-style:normal;
  font-size:16.5px;
  letter-spacing:0;
}
html[data-theme=dark] #hero .hero-beat-cap{
  color:#F5F5F7;
}
@media (max-width:759px){
  #hero .hero-beat-cap{font-size:14.5px;padding:0 12px}
  html[lang=he] #hero .hero-beat-cap,
  html[lang=he] #hero .hero-beat-cap-txt{font-size:15px}
}

/* One caption only: the dock "reading the email" label would compete with the beat line. */
#hero .dock-label{opacity:0 !important;visibility:hidden}

/* Existing underline language, just readable: 2px, a bit more of Flow blue. Not a chip, not a glow. */
#hero{--ul:rgba(45,94,255,.62);--ul-done:rgba(45,94,255,.78)}
html[data-theme=dark] #hero{--ul:rgba(45,94,255,.72);--ul-done:rgba(110,155,255,.86)}
#hero .intent{
  background-size:calc(var(--u,0) * 100%) 2px;
}

/* Keep the pinned stage from leaking sideways on 320. */
#hero,#hero .stage{overflow-x:clip}

html[lang=he] #hero .hero-beat-cap{direction:rtl}
html:not([lang=he]) #hero .hero-beat-cap{direction:ltr}

/* Short phones: keep the reserved slot, but spend less height so Do It still fits. */
@media (max-width:759px) and (max-height:700px){
  #hero{
    --beat-cap-h:36px;
    --beat-ring-slot:32px;
    --beat-gap:4px;
  }
}

/* t1428-se-compact: on a short 320-wide phone the steps card must sit under the
   email, fully on screen, with reserved sizes from the first frame (no jump). */
@media (max-width:759px) and (max-height:700px){
  #hero .addin header{padding-top:8px;padding-bottom:6px}
  #hero .addin .intent-box{padding-top:6px;padding-bottom:6px;margin-bottom:4px}
  #hero .addin .intent-box .src{display:none}
  #hero .addin .plbl{margin:4px 0 2px}
  #hero .addin .steps{gap:0}
  #hero .addin .steps li{padding-top:3px;padding-bottom:3px}
  #hero .addin .foot{padding-top:6px;padding-bottom:8px}
  #hero .addin .doit{transform-origin:center bottom}
}
@media (max-width:359px) and (max-height:620px){
  #hero{
    --beat-cap-h:32px;
    --beat-ring-slot:28px;
    --beat-gap:2px;
  }
  #hero .addin header b{font-size:14px}
  #hero .addin .intent-box{padding-top:4px;padding-bottom:4px;margin-bottom:2px}
  #hero .addin .intent-s{font-size:14px;line-height:1.3}
  #hero .addin .steps li{font-size:12.5px;line-height:1.28;padding-top:1px;padding-bottom:1px}
  #hero .addin .foot{padding-top:4px;padding-bottom:6px}
}
