/* =================================================================
   Shared layout fixes and motion for /, /pricing and /global.
   Loaded after each page's own <style>, so equal selectors win here.
   ================================================================= */

/* Hero: line the laptop and the copy up with the header's 1280px
   container, instead of spanning the full window. The tint still runs
   to the left edge. Below 1000px the page's own stacked layout applies. */
@media (min-width:1001px){
  .hero{grid-template-columns:minmax(24px,1fr) minmax(0,580px) minmax(0,652px) minmax(24px,1fr)}
  .hero .visual{grid-column:1/3;justify-content:flex-end;padding:44px 40px 56px 24px}
  .hero .mac{width:min(540px,100%)}
  .hero .copy{grid-column:3;padding:36px 0 36px 44px}
  .hero .copy-inner{max-width:none}
}

/* The empty error line left a gap above the form's footer row. */
#fbody .err:empty{min-height:0;margin-top:0}

/* Header picks up a soft shadow once the page scrolls under it. */
.bp-top{transition:box-shadow .25s ease}
.bp-top.scrolled{box-shadow:0 8px 24px -16px rgba(22,24,46,.35)}

@media (prefers-reduced-motion:no-preference){
  /* Hero entrance */
  .hero .copy-inner>*{animation:bp-up .7s cubic-bezier(.2,.7,.2,1) both}
  .hero .copy-inner>:nth-child(2){animation-delay:.08s}
  .hero .copy-inner>:nth-child(3){animation-delay:.16s}
  .hero .copy-inner>:nth-child(4){animation-delay:.24s}
  .hero .copy-inner>:nth-child(5){animation-delay:.32s}
  .hero .mac{animation:bp-up .9s cubic-bezier(.2,.7,.2,1) .1s both}
  .hero .float{animation:bp-pop .5s cubic-bezier(.2,.9,.3,1.3) .7s both,bp-bob 5s ease-in-out 1.4s infinite}

  /* Scroll reveal: site.js adds .rv to blocks below the fold and .in
     once they come into view. */
  html .rv{opacity:0;transform:translateY(18px);transition:opacity .6s ease var(--rv-d,0s),transform .6s cubic-bezier(.2,.7,.2,1) var(--rv-d,0s),translate .2s ease,box-shadow .2s ease,background .15s}
  html .rv.in{opacity:1;transform:none}

  /* Small hover lifts. These use `translate`, so they never fight the
     reveal's `transform`. */
  .btn{transition:background .15s,translate .2s ease,box-shadow .2s ease}
  .btn:hover:not(:disabled){translate:0 -1px;box-shadow:0 10px 20px -12px rgba(30,34,170,.55)}
  .btn:active{translate:none;box-shadow:none}
  .bp-cta{transition:background .15s,translate .2s ease}
  .bp-cta:hover{translate:0 -1px}
  .st,.col,.pr .ic{transition:translate .25s ease,scale .25s ease}
  .st:hover,.col:hover{translate:0 -3px}
  .pr:hover .ic{scale:1.08}
  .link svg,.findmore svg{transition:transform .2s ease}
  .link:hover svg,.findmore:hover svg{transform:translateX(3px)}

  /* FAQ: site.js slides each answer open and closed; the +/× badge
     turns and changes colour with it. */
  summary .pl{transition:transform .3s ease,background .3s ease}
  summary:hover .pl{scale:1.08}
  details.closing summary .pl{transform:none;background:var(--blue-tint)}
}

@keyframes bp-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes bp-pop{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@keyframes bp-bob{0%,100%{translate:0 0}50%{translate:0 -6px}}
