/* NexoSEOPAGO polish layer: loaded last on every page. */

:root {
  --nx-lime: #d9ff71;
  --nx-violet: #7657ff;
  --nx-ink: #101117;
  --nx-ice: #70e3ff;
}

/* ---------- Mobile drawer (menu open) ---------- */
@media (max-width: 950px) {
  html body .nav-wrap.nav-wrap .menu.menu {
    padding-top: 84px !important;
    background: #15161c !important;
  }

  /* Primary CTA: full-width, aligned with the links, brand accent */
  html body .nav-wrap.nav-wrap .menu.menu a.button.button {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: calc(100% - 48px) !important;
    margin: 22px 24px 0 !important;
    padding: 16px 20px !important;
    border-radius: 14px !important;
    background: var(--nx-lime) !important;
    color: var(--nx-ink) !important;
    border: 0 !important;
    box-shadow: 0 10px 26px rgba(217, 255, 113, .18) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }
  html body .nav-wrap.nav-wrap .menu.menu a.button.button:hover,
  html body .nav-wrap.nav-wrap .menu.menu a.button.button:focus-visible {
    background: #e8ff9a !important;
    color: var(--nx-ink) !important;
  }

  /* Theme toggle inside the drawer: ghost button, aligned */
  html body .nav-wrap.nav-wrap .menu.menu button.theme-toggle.theme-toggle {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: calc(100% - 48px) !important;
    height: 52px !important;
    margin: auto 24px 0 !important;
    padding: 0 18px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    color: #f5f5f8 !important;
    font: 700 15px 'DM Sans', system-ui, sans-serif !important;
    cursor: pointer;
  }
  html body .nav-wrap.nav-wrap .menu.menu button.theme-toggle.theme-toggle:hover {
    background: rgba(255, 255, 255, .12) !important;
  }
  html body .nav-wrap.nav-wrap .menu.menu button.theme-toggle.theme-toggle span {
    display: inline !important;
  }
  html body .nav-wrap.nav-wrap .menu.menu button.theme-toggle.theme-toggle svg {
    flex: 0 0 auto;
  }
}

/* ---------- Button micro-interaction (all modes) ---------- */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .45) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform .8s cubic-bezier(.2, .75, .2, 1);
  pointer-events: none;
}
.button:hover::after {
  transform: translateX(120%);
}

/* ---------- Scroll progress ---------- */
.nx-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--nx-violet), var(--nx-ice), var(--nx-lime));
  z-index: 70;
  pointer-events: none;
}

/* ---------- Scroll reveal (only when JS runs and motion is allowed) ---------- */
html.nx-motion .nx-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .8s ease var(--nx-d, 0ms),
    transform .9s cubic-bezier(.2, .75, .2, 1) var(--nx-d, 0ms);
  will-change: opacity, transform;
}
html.nx-motion .nx-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .nx-progress { display: none; }
  html.nx-motion .nx-reveal { opacity: 1; transform: none; transition: none; }
  .button::after { display: none; }
}

/* ---------- Pricing: three plans ---------- */
.plan-grid.plan-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .plan-grid.plan-grid-3 { grid-template-columns: 1fr; }
}


/* ---------- Buttons: no sheen at rest, brand CTA in night mode ---------- */
.button::after { opacity: 0; transition: transform .8s cubic-bezier(.2,.75,.2,1), opacity .3s ease; }
.button:hover::after { opacity: 1; }
html body.night-mode a.button,
html body.night-mode .button {
  background: var(--nx-lime) !important;
  color: var(--nx-ink) !important;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(217, 255, 113, .14) !important;
}
html body.night-mode a.button:hover,
html body.night-mode .button:hover {
  background: #e8ff9a !important;
  color: var(--nx-ink) !important;
}

/* ---------- Header: no white band at the top; transparent over the hero ---------- */
/* whitespace between the fixed header and <main> was creating an 18px line box */
body { display: flex; flex-direction: column; }
body > * { flex-shrink: 0; }
