/* =============================================================
   NOVA LAUNCHER
   Floating "Meet Nova" link, bottom-right on every page.
   Light surface on purpose: the site is dark, so a bright
   cream button with a brand-gradient ring stands out at once.
   All classes are prefixed .nl- so nothing else is affected.
   ============================================================= */

.nl{
  --nl-orange:#FD5902;
  --nl-cream:#FCF9E8;
  --nl-blue:#AACFDF;
  --nl-teal:#075056;
  --nl-surface:#FFFDF6;      /* button + card background */
  --nl-ink:#0b0c10;          /* main text on the light surface */
  --nl-muted:#5a606c;        /* secondary text on the light surface */
  --nl-ease:cubic-bezier(.16,1,.3,1);

  position:fixed;
  right:calc(22px + env(safe-area-inset-right, 0px));
  bottom:calc(22px + env(safe-area-inset-bottom, 0px));
  z-index:9990; /* above content and the sticky nav, below lightboxes (99999) */
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:14px;
  font-family:inherit;
  line-height:1.4;
  pointer-events:none;
}
.nl > *{ pointer-events:auto; }
.nl *,.nl *::before,.nl *::after{ box-sizing:border-box; }
.nl p{ margin:0; padding:0; }

.nl svg{ display:block; }
.nl-go svg path,
.nl-card-link svg path,
.nl-card-x svg path{
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* ---------------------------------------------------------------
   Launcher button
   --------------------------------------------------------------- */
.nl-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  height:64px;
  padding:7px;
  border-radius:999px;
  background:linear-gradient(135deg, #ffffff 0%, var(--nl-cream) 100%);
  border:1px solid rgba(253,89,2,.35);
  box-shadow:
    0 0 0 5px rgba(253,89,2,.14),
    0 18px 40px -12px rgba(253,89,2,.65),
    0 10px 28px -10px rgba(0,0,0,.6);
  color:var(--nl-ink) !important;
  text-decoration:none !important;
  cursor:pointer;
  animation:nl-in .7s var(--nl-ease) .6s both, nl-breathe 2.4s ease-in-out 1.4s 4;
  transition:box-shadow .3s ease, transform .3s var(--nl-ease), border-color .3s ease;
}
@keyframes nl-in{ from{ opacity:0; transform:translateY(20px) scale(.85); } }

/* glowing halo: breathes a few times after load to draw the eye */
@keyframes nl-breathe{
  50%{
    box-shadow:
      0 0 0 10px rgba(253,89,2,.22),
      0 0 46px 8px rgba(253,89,2,.55),
      0 10px 28px -10px rgba(0,0,0,.6);
  }
}

/* attention ring: ripples out 3 times after load, then stops */
.nl-btn::before{
  content:"";
  position:absolute; inset:-1px;
  border-radius:inherit;
  border:2px solid var(--nl-orange);
  opacity:0;
  pointer-events:none;
  animation:nl-ping 2.4s ease-out 1.4s 3;
}
@keyframes nl-ping{
  0%  { opacity:.85; transform:scale(1); }
  100%{ opacity:0;   transform:scale(1.45); }
}

.nl-btn:focus-visible{
  outline:3px solid var(--nl-blue);
  outline-offset:5px;
}

/* the orb: brand gradient ring + Nova icon on a dark core */
.nl-orb{
  position:relative;
  width:50px; height:50px;
  flex-shrink:0;
  border-radius:50%;
}
.nl-orb-ring{
  position:absolute; inset:0;
  border-radius:50%;
  background:conic-gradient(from 0deg, var(--nl-orange), var(--nl-cream), var(--nl-blue), var(--nl-teal), var(--nl-orange));
  animation:nl-spin 6s linear infinite;
}
@keyframes nl-spin{ to{ transform:rotate(360deg); } }
.nl-orb-core{
  position:absolute; inset:3px;
  display:grid; place-items:center;
  border-radius:50%;
  background:#0b0c11;
}
.nl .nl-orb-core img{
  display:block;
  width:24px; height:24px;
  max-width:none;
  object-fit:contain;
}
.nl-orb-fallback{ display:none !important; width:22px; height:22px; }
.nl-orb-fallback path{ fill:var(--nl-orange); }
.nl-no-img img{ display:none !important; }
.nl-no-img .nl-orb-fallback{ display:block !important; }

/* "AI" badge */
.nl-badge{
  position:absolute;
  top:-6px; right:-9px;
  padding:3px 5px;
  border-radius:6px;
  background:var(--nl-orange);
  box-shadow:0 0 0 2px #fff;
  color:#fff;
  font-size:9.5px;
  font-weight:700;
  line-height:1;
  letter-spacing:.05em;
}

/* label + arrow: slide out on hover / focus / the load-time peek */
.nl-label{
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:0;
  padding-left:0;
  opacity:0;
  overflow:hidden;
  white-space:nowrap;
  transition:max-width .5s var(--nl-ease), padding .5s var(--nl-ease), opacity .25s ease;
}
.nl-label-t{
  font-size:15.5px;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--nl-ink);
}
.nl-label-s{
  margin-top:1px;
  font-size:12px;
  font-weight:600;
  color:var(--nl-muted);
}
.nl-go{
  display:grid; place-items:center;
  width:0; height:42px;
  margin-left:0;
  flex-shrink:0;
  border-radius:50%;
  background:var(--nl-orange);
  color:#fff;
  opacity:0;
  overflow:hidden;
  transition:width .5s var(--nl-ease), margin .5s var(--nl-ease), opacity .25s ease, background .2s ease;
}
.nl-go svg{ width:18px; height:18px; flex-shrink:0; }

.nl.is-open .nl-label,
.nl-btn:focus-visible .nl-label{
  max-width:240px;
  padding:0 8px 0 14px;
  opacity:1;
}
.nl.is-open .nl-go,
.nl-btn:focus-visible .nl-go{
  width:42px;
  margin-left:6px;
  opacity:1;
}

@media (hover:hover) and (pointer:fine){
  .nl-btn:hover{
    border-color:var(--nl-orange);
    box-shadow:
      0 0 0 6px rgba(253,89,2,.2),
      0 22px 46px -12px rgba(253,89,2,.8),
      0 10px 28px -10px rgba(0,0,0,.6);
  }
  .nl-btn:hover .nl-label{
    max-width:240px;
    padding:0 8px 0 14px;
    opacity:1;
  }
  .nl-btn:hover .nl-go{
    width:42px;
    margin-left:6px;
    opacity:1;
    background:var(--nl-ink);
  }
}
.nl-btn:active{ transform:scale(.97); }


/* ---------------------------------------------------------------
   Intro card (opens on hover/focus, and on its own now and then)
   --------------------------------------------------------------- */
.nl-card{
  position:relative;
  width:316px;
  max-width:calc(100vw - 44px);
  padding:18px 18px 16px;
  border-radius:18px;
  background:var(--nl-surface);
  border:1px solid rgba(253,89,2,.25);
  box-shadow:
    0 30px 60px -18px rgba(0,0,0,.75),
    0 0 0 5px rgba(253,89,2,.08);
  color:var(--nl-ink);
  text-align:left;
  transform-origin:bottom right;
  opacity:0;
  transform:translateY(10px) scale(.96);
  transition:opacity .3s ease, transform .4s var(--nl-ease);
}
.nl-card[hidden]{ display:none; }
.nl-card.is-in{ opacity:1; transform:none; }

/* brand gradient edge */
.nl-card::before{
  content:"";
  position:absolute;
  left:-1px; right:-1px; top:-1px;
  height:5px;
  border-radius:18px 18px 0 0;
  background:linear-gradient(90deg, var(--nl-orange), var(--nl-blue), var(--nl-teal));
}
/* pointer toward the button */
.nl-card::after{
  content:"";
  position:absolute;
  right:25px; bottom:-7px;
  width:13px; height:13px;
  background:var(--nl-surface);
  border-right:1px solid rgba(253,89,2,.25);
  border-bottom:1px solid rgba(253,89,2,.25);
  transform:rotate(45deg);
}

.nl-card-kicker{
  display:flex; align-items:center; gap:8px;
  margin-top:4px !important;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--nl-muted);
}
.nl-card-tag{
  padding:3px 8px;
  border-radius:999px;
  background:var(--nl-orange);
  color:#fff;
  letter-spacing:.04em;
}
.nl .nl-card-title{
  margin:10px 0 6px;
  padding-right:18px;
  font-size:16.5px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.015em;
  color:var(--nl-ink);
}
.nl-card-text{
  font-size:13.5px;
  line-height:1.55;
  color:var(--nl-muted);
}
.nl-card-link{
  display:inline-flex; align-items:center; gap:6px;
  margin-top:14px;
  padding:9px 14px;
  border-radius:10px;
  background:var(--nl-ink);
  font-size:13.5px;
  font-weight:700;
  color:#fff !important;
  text-decoration:none !important;
  transition:gap .2s ease, background .2s ease;
}
.nl-card-link svg{ width:16px; height:16px; }
.nl-card-link:hover{ gap:9px; background:var(--nl-orange); color:#fff !important; }
.nl-card-link:focus-visible{ outline:2px solid var(--nl-orange); outline-offset:3px; }

.nl-card-x{
  position:absolute;
  top:12px; right:10px;
  width:32px; height:32px;
  display:grid; place-items:center;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--nl-muted);
  cursor:pointer;
  transition:background .2s ease, color .2s ease;
}
.nl-card-x svg{ width:16px; height:16px; }
.nl-card-x:hover{ background:rgba(11,12,16,.07); color:var(--nl-ink); }
.nl-card-x:focus-visible{ outline:2px solid var(--nl-orange); outline-offset:2px; }


/* ---------------------------------------------------------------
   Small screens
   --------------------------------------------------------------- */
@media (max-width:575.98px){
  .nl{
    right:calc(14px + env(safe-area-inset-right, 0px));
    bottom:calc(14px + env(safe-area-inset-bottom, 0px));
    gap:12px;
  }
  .nl-btn{ height:60px; padding:6px; }
  .nl-orb{ width:48px; height:48px; }
  .nl-card{ width:292px; max-width:calc(100vw - 28px); }
}


/* ---------------------------------------------------------------
   Accessibility + print
   --------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .nl-btn,.nl-btn::before,.nl-orb-ring{ animation:none !important; }
  .nl-btn,.nl-label,.nl-go,.nl-card,.nl-card-link{ transition:none !important; }
}
@media (forced-colors:active){
  .nl-btn,.nl-card{ border:1px solid CanvasText; }
  .nl-badge{ border:1px solid CanvasText; }
}
@media print{
  .nl{ display:none !important; }
}
