/* ===================================================================
   hero.css — hero SHELL only (headline, eyebrow, cta) + collaboration cursor
   Owns: .hero, .hero-inner, .hero-eyebrow, .hero h1/.sub, .hero-cta,
         .collab-cursor
   Feeds live in css/feeds.css; the IF/THEN card lives in css/composer.css.
   Paired with js/composer.js (which drives the cursor).
   =================================================================== */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:132px 20px 88px;
  overflow:hidden;
  isolation:isolate;
}
/* mask the strip under the fixed nav so feed cards (css/feeds.css, negative
   z-index) never show through its translucent background */
.hero::before{
  content:"";position:absolute;top:0;left:0;right:0;height:80px;
  background:var(--bg);z-index:1;pointer-events:none;
}

/* hero content */
.hero-inner{position:relative;z-index:2;width:100%;max-width:920px;text-align:center;display:flex;flex-direction:column;align-items:center}
/* @keyframes pulse kept — used by the composer live dot (css/composer.css) */
@keyframes pulse{50%{opacity:.4;transform:scale(.8)}}
.hero h1{
  font-family:var(--disp);
  font-weight:700;
  font-size:clamp(38px,6.4vw,74px);
  line-height:1.02;
  letter-spacing:-0.02em;
  margin-bottom:22px;
}
.hero h1 .em{color:var(--text)}
.hero p.sub{font-size:clamp(16px,2vw,19px);line-height:1.55;color:var(--muted);max-width:620px;margin:0 auto}

.hero-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:36px}

/* figma-style collaboration cursor (positioned/animated by js/composer.js) */
.collab-cursor{position:fixed;left:0;top:0;z-index:55;pointer-events:none;transform:translate(-140px,-140px);opacity:0;transition:opacity .45s ease;will-change:transform}
.collab-cursor.on{opacity:1}
.collab-cursor .ptr{display:block;filter:drop-shadow(0 2px 5px rgba(0,0,0,.5));transition:transform .12s ease}
.collab-cursor.click .ptr{transform:scale(.78)}
.collab-cursor .cur-tag{position:absolute;left:16px;top:18px;background:var(--cursor);color:#fff;font-family:var(--body);font-weight:600;font-size:12px;letter-spacing:0;text-transform:none;padding:4px 12px;border-radius:999px;white-space:nowrap;box-shadow:0 6px 18px rgba(0,0,0,.42)}

/* ---- responsive ----
   On shorter desktop/laptop viewports (720-800px tall is common), the hero's
   headline + subtext + composer card + CTA row overflowed the fold — the CTA
   buttons sat well below the visible area. Trims spacing only (never the
   headline/subtext type scale) so the whole hero, buttons included, fits one
   screen. Viewports 900px+ tall already fit and are untouched. */
@media(max-height:800px){
  .hero{padding:84px 20px 56px}
  .hero h1{margin-bottom:14px}
  .hero-cta{margin-top:20px}
}
/* ---- phone tier ----
   Portrait phones are tall enough that the max-height trim above never fires,
   so the hero kept desktop padding AND stayed vertically centered — on ~740px
   screens the centered stack overflowed upward and the headline slid under the
   fixed nav. Top-align the hero and drop the forced 100vh so it flows from just
   below the nav and grows naturally; widen side padding so the display headline
   isn't edge-to-edge. */
@media(max-width:600px){
  .hero{min-height:auto;justify-content:flex-start;padding:80px 20px 44px}
  .hero h1{max-width:340px;margin-bottom:14px;font-size:clamp(38px,11vw,46px);line-height:1}
  .hero p.sub{max-width:340px;font-size:15px;line-height:1.5}
  .hero-cta{width:100%;max-width:360px;margin-top:16px;gap:10px;flex-direction:column}
  .hero-cta .btn{width:100%}
}
/* ---- tablet / iPad tier (601–1240px) ----
   The ambient side feeds don't fit here (hidden; the composer shows the active
   camera inline instead), and that inline preview makes the hero stack taller.
   With justify-content:center + min-height:100vh a tall stack overflowed a short
   iPad — landscape especially: the headline slid under the fixed nav and the CTA
   row ("Curious? Join Waitlist") fell below the fold. Top-align + natural height
   so the whole section 1 (headline → waitlist) flows from below the nav and is
   never centered-overflowed. Placed after the max-height:800 block so it wins on
   tablet widths while that block still governs short desktops (>1240). */
@media(max-width:1240px) and (min-width:601px){
  .hero{min-height:auto;justify-content:flex-start;padding:112px 24px 64px}
}
