/* The header CTA takes over only after the hero CTA leaves the viewport. */
.top .bar .header-pilot-cta{display:inline-flex;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-12px);transition:opacity .24s ease,transform .32s var(--ease),visibility 0s linear .32s}
.top .bar .header-pilot-cta.is-visible{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);transition-delay:0s}
.apply-grid>.ap-next{margin:0;max-width:none;align-self:center}
.apply-grid .pilot-section-cta{margin-top:24px}
html.pilot-modal-open,html.pilot-modal-open body{overflow:hidden}
html.pilot-modal-open body{position:fixed;top:var(--pilot-scroll-offset,0px);left:0;right:0}
html{scrollbar-gutter:stable}
.pilot-modal{position:fixed;inset:0;margin:auto;padding:0;width:min(680px,calc(100% - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);border:1px solid rgba(255,255,255,.85);border-radius:26px;background:var(--card);color:var(--ink);box-shadow:0 32px 100px rgba(31,29,36,.28);overflow:visible}
.pilot-modal::backdrop{background:rgba(31,29,36,.56);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
.pilot-modal-shell{display:flex;flex-direction:column;max-height:calc(100vh - 34px);max-height:calc(100dvh - 34px);overflow:hidden;border-radius:25px}
.pilot-modal[open] .pilot-modal-shell{animation:pilot-modal-in .24s var(--ease) both}
.pilot-modal-head{display:flex;align-items:flex-start;gap:20px;flex:none;padding:clamp(20px,4vw,32px) clamp(20px,4vw,32px) 22px}
.pilot-modal-head>div{flex:1;min-width:0}
.pilot-modal-head h2{margin:0;font-size:clamp(28px,4vw,38px);letter-spacing:-.035em;line-height:1.1}
.pilot-modal-head p{margin:10px 0 0;font-size:16px;line-height:1.5;color:var(--ink-2);max-width:42ch}
.pilot-modal-close{display:grid;place-items:center;flex:none;width:44px;height:44px;margin:-7px -7px 0 0;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink-2);cursor:pointer;transition:background .2s,color .2s}
.pilot-modal-close:hover{background:var(--paper-3);color:var(--ink)}
.pilot-modal-close svg{width:20px;height:20px}
.pilot-modal-close:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.pilot-modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 clamp(20px,4vw,32px) clamp(20px,4vw,32px)}
.pilot-modal #form{margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.pilot-modal .pleira-select-menu{max-height:min(260px,40vh)}
@keyframes pilot-modal-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:980px){
  header.top{top:0}
  .top .bar{max-width:none;margin:0;border-radius:0}
  .top .nav{top:100%;left:0;right:0;border-radius:0}
  .hero #round{display:none}
}
@media(max-width:520px){
  .top .bar{padding-left:12px;gap:4px}
  .top .bar .logo img{height:26px}
  .top .bar .header-pilot-cta{font-size:13px;padding:0 12px;min-height:40px;white-space:nowrap}
  .top .bar .menu-btn{width:40px;height:40px;flex:none}
  .pilot-modal{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:22px}
  .pilot-modal-shell{max-height:calc(100dvh - 22px);border-radius:21px}
  .pilot-modal-head{gap:12px;padding-bottom:18px}
  .pilot-modal .form-foot{flex-direction:column;align-items:stretch}
  .pilot-modal .form-foot small{max-width:none}
  .pilot-modal .form-foot .btn{justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .top .bar .header-pilot-cta{transition:none}
  .pilot-modal[open] .pilot-modal-shell{animation:none}
}
