/* hp2: header login button (option 2) */
/* Header: login button */
.nav-right{gap:14px}
.nav-div{width:1px;height:28px;background:var(--line);margin:0 6px 0 10px}
.login.login-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;
  border:1.5px solid var(--blue);background:#EEF3FF;color:var(--blue);font-weight:600;font-size:15px;text-decoration:none;white-space:nowrap;
  transition:background .15s ease,color .15s ease}
.login.login-btn:hover{background:#DCE6FF;color:var(--blue-deep)}
.login.login-btn:active{background:#C9D8FF}
.login.login-btn:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.login.login-btn svg{flex:none}

@media (max-width:860px){
  .nav-right .login.login-btn{display:inline-flex;height:40px;padding:0 14px;font-size:14px}
  .nav-div{display:none}
}
@media (max-width:380px){
  .nav-right .login.login-btn span.lbl{display:none}
}
@media (prefers-reduced-motion:reduce){
  .login.login-btn{transition:none}
}

/* v3: true centring of the 3 menu links */
.header .nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.header .nav>.logo{justify-self:start}
.header .nav>nav{justify-self:center}
.header .nav>.nav-right{justify-self:end}

/* v3: AI orb continuous motion (as in the video: rings radiate out, orb breathes, sparkle turns) */
.ai-ring{display:block}
.ai-ring::after{content:"";position:absolute;inset:-3px;border-radius:50%;border:3px solid var(--blue);opacity:0}
.ai-ring{border-color:var(--blue);opacity:0;animation:ai-radiate 2.4s cubic-bezier(.2,.6,.3,1) infinite;will-change:transform,opacity}
.ai-ring::after{animation:ai-radiate-inner 2.4s cubic-bezier(.2,.6,.3,1) 1.2s infinite;will-change:transform,opacity}
@keyframes ai-radiate{0%{transform:scale(.72);opacity:.75}100%{transform:scale(1.55);opacity:0}}
@keyframes ai-radiate-inner{0%{transform:scale(1);opacity:.75}100%{transform:scale(2.1);opacity:0}}
[data-animate] .ai-orb,[data-animate].is-in .ai-orb,.ai-orb{animation:ai-breathe 2.4s ease-in-out infinite;will-change:transform}
@keyframes ai-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
.ai-spark{display:inline-block;line-height:1;animation:ai-spark 4.8s ease-in-out infinite;will-change:transform}
@keyframes ai-spark{0%{transform:rotate(0) scale(1)}25%{transform:rotate(90deg) scale(1.15)}50%{transform:rotate(180deg) scale(1)}75%{transform:rotate(270deg) scale(1.15)}100%{transform:rotate(360deg) scale(1)}}
@media (prefers-reduced-motion:reduce){
  .ai-ring,.ai-ring::after,.ai-orb,[data-animate] .ai-orb,[data-animate].is-in .ai-orb,.ai-spark{animation:none !important}
  .ai-ring{opacity:1;transform:none;border-color:rgba(11,79,255,.25)}
}

/* v3b: below 1024px use the drawer so the 3 links never sit off-centre */
@media (max-width:1023px){
  .header .menu,.header .nav-right .lang{display:none}
  .header .burger{display:flex}
  .nav-div{display:none}
}

/* v3b: AI rings must not create horizontal scroll */
.hero{overflow-x:clip}


/* ===== hp2 scroll motion (homepage only) ===== */
/* Hero stays fully visible so LCP is not delayed. Motion in the hero is the existing AI orb. */
.hero .match-card,
.hero .score-card,
.hero .id-card{
  opacity:1;
  transform:none;
  animation:none;
}

/* Undo shared entrance hides so content stays visible without JS. */
#plan[data-animate] .plan .step,
#video[data-animate] .scene-steps li,
#start[data-animate] .logo-lg,
#start[data-animate] .btn-row{
  opacity:1;
  transform:none;
  animation:none;
}

@keyframes hp2-in{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:none}
}
@keyframes hp2-in-lg{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}

@media (prefers-reduced-motion:no-preference){
  html.js #plan[data-animate]:not(.is-in) .kicker,
  html.js #plan[data-animate]:not(.is-in) h2,
  html.js #plan[data-animate]:not(.is-in) .answer,
  html.js #plan[data-animate]:not(.is-in) .plan .step,
  html.js #video[data-animate]:not(.is-in) .kicker,
  html.js #video[data-animate]:not(.is-in) h2,
  html.js #video[data-animate]:not(.is-in) .answer,
  html.js #video[data-animate]:not(.is-in) .scene-steps li,
  html.js #video[data-animate]:not(.is-in) .transcript,
  html.js #start[data-animate]:not(.is-in) .logo-lg,
  html.js #start[data-animate]:not(.is-in) h2,
  html.js #start[data-animate]:not(.is-in) .btn-row,
  html.js .footer[data-animate]:not(.is-in) .foot-grid > *,
  html.js .footer[data-animate]:not(.is-in) .legal,
  html.js .footer[data-animate]:not(.is-in) .pay{
    opacity:0;
    transform:translateY(12px);
  }
  html.js #plan[data-animate]:not(.is-in) .plan,
  html.js #video[data-animate]:not(.is-in) .video-frame{
    opacity:0;
    transform:translateY(16px);
  }

  html.js #plan[data-animate].is-in .kicker,
  html.js #plan[data-animate].is-in h2,
  html.js #plan[data-animate].is-in .answer,
  html.js #plan[data-animate].is-in .plan .step,
  html.js #video[data-animate].is-in .kicker,
  html.js #video[data-animate].is-in h2,
  html.js #video[data-animate].is-in .answer,
  html.js #video[data-animate].is-in .scene-steps li,
  html.js #video[data-animate].is-in .transcript,
  html.js #start[data-animate].is-in .logo-lg,
  html.js #start[data-animate].is-in h2,
  html.js #start[data-animate].is-in .btn-row,
  html.js .footer[data-animate].is-in .foot-grid > *,
  html.js .footer[data-animate].is-in .legal,
  html.js .footer[data-animate].is-in .pay{
    animation:hp2-in .4s ease-out both;
  }
  html.js #plan[data-animate].is-in .plan,
  html.js #video[data-animate].is-in .video-frame{
    animation:hp2-in-lg .45s ease-out both;
  }

  /* Plan: heading, then the two cards, then the 3 steps on each side */
  html.js #plan[data-animate].is-in .kicker{animation-delay:0s}
  html.js #plan[data-animate].is-in h2{animation-delay:.06s}
  html.js #plan[data-animate].is-in .answer{animation-delay:.1s}
  html.js #plan[data-animate].is-in .plan.role-owner{animation-delay:.14s}
  html.js #plan[data-animate].is-in .plan.role-tenant{animation-delay:.22s}
  html.js #plan[data-animate].is-in .plan .step:nth-child(1){animation-delay:.26s}
  html.js #plan[data-animate].is-in .plan .step:nth-child(2){animation-delay:.34s}
  html.js #plan[data-animate].is-in .plan .step:nth-child(3){animation-delay:.42s}

  /* Video */
  html.js #video[data-animate].is-in .kicker{animation-delay:0s}
  html.js #video[data-animate].is-in h2{animation-delay:.06s}
  html.js #video[data-animate].is-in .answer{animation-delay:.1s}
  html.js #video[data-animate].is-in .scene-steps li:nth-child(1){animation-delay:.16s}
  html.js #video[data-animate].is-in .scene-steps li:nth-child(2){animation-delay:.24s}
  html.js #video[data-animate].is-in .scene-steps li:nth-child(3){animation-delay:.32s}
  html.js #video[data-animate].is-in .video-frame{animation-delay:.28s}
  html.js #video[data-animate].is-in .transcript{animation-delay:.4s}

  /* Final CTA */
  html.js #start[data-animate].is-in .logo-lg{animation-delay:0s}
  html.js #start[data-animate].is-in h2{animation-delay:.08s}
  html.js #start[data-animate].is-in .btn-row{animation-delay:.2s}

  /* Footer */
  html.js .footer[data-animate].is-in .foot-grid > *:nth-child(1){animation-delay:0s}
  html.js .footer[data-animate].is-in .foot-grid > *:nth-child(2){animation-delay:.08s}
  html.js .footer[data-animate].is-in .foot-grid > *:nth-child(3){animation-delay:.16s}
  html.js .footer[data-animate].is-in .foot-grid > *:nth-child(4){animation-delay:.24s}
  html.js .footer[data-animate].is-in .foot-grid > *:nth-child(5){animation-delay:.32s}
  html.js .footer[data-animate].is-in .legal{animation-delay:.36s}
  html.js .footer[data-animate].is-in .pay{animation-delay:.42s}
}
