/* Plutonium shared header / navbar, ported from the main site
   (plutonium.pluto.security app/assets/plutonium.css: "Shared header /
   navbar", Figma navbar set 1548:55407, plus its .sr-only / skip-link
   helpers). Markup: the .header-outer block in mcp-scanner.html; behaviour:
   assets/plutonium-nav.js (the main site's header-nav.js). Keep these rules
   identical to the main site so both navbars stay pixel-matched; put
   scanner-only component adjustments in mcp-scanner.css instead. The root
   scale below is the scanner-wide responsive scale, not a navbar size. */

/* Shared wide-screen scale. All owned CSS lengths are rem-based at
   16px/rem. Keep the 1440px design at 16px, grow smoothly to 22.5px at 2560px,
   then cap. Root font sizing (instead of transform/zoom) preserves native
   browser zoom and text layout behaviour. */
html { font-size: 16px /* keep-px */; }
:root { --plutonium-chrome-gutter: clamp(1.5rem, 3.472222vw, 3.125rem); }
@media (min-width: 1440px) {
  html { font-size: clamp(16px /* keep-px */, calc(7.6428571429px /* keep-px */ + 0.5803571429vw), 22.5px /* keep-px */); }
}

html { scroll-padding-top: 6.875rem; }
a.nav-link { display: inline-flex; align-items: center; justify-content: center; }

/* ===== Shared header / navbar (Figma navbar set 1548:55407) =====
   Markup: index.html .header-outer (copied verbatim to every public page).
   Desktop (>1100px): logo + Inspect / Adopt / Harden / Book a demo + the
   "Powered by Pluto" pill, with the Inspect/Adopt/Harden mega-menu (.nav-mega,
   driven by assets/header-nav.js). <=1100px: the four links collapse into the
   .nav-menu dropdown opened by .nav-toggle; the mega-menu is not used. */
/* The shared chrome uses the full viewport with one capped responsive gutter.
   At the 1440 design width the gutter is 50px; it reaches 70.3125px at 2560.
   The account row uses this token plus the wordmark's inset. */
.header-outer {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 var(--plutonium-chrome-gutter);
  background: transparent;
}

.header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 5rem;
  padding: 1rem 1.5rem 1rem 2.625rem;
  background: #000;
  border: 0.125rem solid #000;
  border-top: 0;
  border-radius: 0 0 2.8125rem 2.8125rem;
}

.header-logo {
  flex: none;
  min-width: 8.9375rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.25rem;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0.5rem 1.375rem;
  background: transparent;
  border: none;
  border-radius: 6.25rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25rem;
  text-transform: capitalize;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .15s ease, color .15s ease;
}
/* Inspect / Adopt / Harden are <button> triggers: same look as the links. */
button.nav-link { -webkit-tap-highlight-color: transparent; }
/* Mobile-only inline copy of a trigger's mega-menu links (header-nav.js). */
.nav-sub { display: none; }
.nav-link:hover,
.nav-link.is-open { background: #f8f872; color: #000; }
.nav-link:focus-visible,
.btn-sneak-peak:focus-visible,
.header-logo:focus-visible,
.nav-toggle:focus-visible { outline: 0.125rem solid #f8f872; outline-offset: 0.125rem; }
.nav-book-demo { color: #3acba0; text-transform: uppercase; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  flex: none;
}
.nav-toggle-icon { width: 1.375rem; height: 1.375rem; display: block; }

/* Desktop: the links are plain flex children of .header-nav. */
.nav-menu { display: contents; }

.btn-sneak-peak {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 3rem;
  padding: 0.5rem 1.75rem 0.5rem 1.375rem;
  background: #fff;
  border: none;
  border-radius: 6.25rem;
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25rem;
  letter-spacing: 0.09rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn-sneak-peak:hover { background: #f5f5f4; }
.btn-sneak-peak-logo { display: block; width: 6.57775rem; height: 2rem; flex: none; }
/* Legacy two-layer logo (pages not yet on the shared markup, and the
   contact button inside the ecosystem views). */
.pluto-logo-wrap { position: relative; width: 6.5625rem; height: 2rem; display: inline-block; }
.pluto-logo { position: absolute; inset: 0; width: 100%; height: 100%; }
.pluto-logo-inner { position: absolute; top: 35%; left: 19.5%; width: 62%; height: 30%; }

/* ---- Mega-menu (Figma 1548:55406 / 55404 / 55403) ----
   One 687px panel, 10px under the bar. Its right edge tracks the open item
   (the items are right-aligned, so offsets from the bar's right edge keep the
   Figma positions at every desktop width). Offsets are measured inside the
   bar's 2px border. The three 635px slides sit on a
   track; only the active one is visible. */
.nav-mega {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 27.96875rem;
  width: 42.9375rem;
  padding: 1.5625rem;
  background: #fff;
  border: 0.0625rem solid #000;
  border-radius: 0.75rem;
  box-shadow: 0.25rem 0.25rem 0 0 #000;
  overflow: hidden;
  transition: right .22s ease;
}
.nav-mega[hidden] { display: none; }
.nav-mega[data-active="adopt"] { right: 20.21875rem; }
.nav-mega[data-active="harden"] { right: 12.46875rem; }
.nav-mega.no-anim, .nav-mega.no-anim .nav-mega-track { transition: none; }
.nav-mega-track {
  display: flex;
  gap: 1.75rem;
  width: calc(39.6875rem * 3 + 1.75rem * 2);
  transition: transform .22s ease;
}
.nav-mega[data-active="adopt"] .nav-mega-track { transform: translateX(-41.4375rem); }
.nav-mega[data-active="harden"] .nav-mega-track { transform: translateX(-82.875rem); }
.nav-mega-slide {
  flex: 0 0 39.6875rem;
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  min-height: 8.5rem;
}
.nav-mega-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.nav-mega-sep { flex: none; width: 0.0625rem; background: #ebe4e2; }
.nav-mega-links { flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.5rem; }

/* ---- Step header shared by the mega-menu and the three-moves cards ---- */
.step-head { display: flex; align-items: flex-end; gap: 1rem; }
.step-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.277875rem;
  height: 3.277875rem;
  border-radius: 0.3160625rem;
}
.step-tile img { width: 1.777875rem; height: 1.777875rem; display: block; }
.step-tile-inspect { background: #fdf2d4; }
.step-tile-adopt { background: #eaf9d2; }
.step-tile-harden { background: #ddf5fa; }
.step-titles { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; min-width: 0; }
.step-name {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.5rem;
  color: #000;
}
.step-question {
  margin: 0;
  padding: 0.3125rem 0.9375rem;
  background: #000;
  border: 0.0625rem solid #000;
  border-radius: 0.75rem 3.125rem 3.125rem 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.26875rem;
  letter-spacing: 0.00875rem;
  color: #fff;
}
.step-line {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.26875rem;
  letter-spacing: 0.00875rem;
  color: #111013;
}

/* Cream pill (Figma component 170: default / hover) */
.cream-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding: 0.4375rem 0.9375rem;
  background: #fdf2d4;
  border: 0.0625rem solid #000;
  border-radius: 6.25rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.cream-pill img { width: 1rem; height: 1rem; display: block; flex: none; }
.cream-pill:hover { background: #f9e6b3; }
.cream-pill:focus-visible { outline: 0.125rem solid #000; outline-offset: 0.125rem; }
.cream-pill-coming-soon {
  cursor: default;
  color: #78716c;
  background: #f5f2e9;
  border-color: #a8a29e;
}
.cream-pill-coming-soon:hover { background: #f5f2e9; }
.cream-pill-coming-soon img { opacity: .55; filter: grayscale(1); }
.nav-soon-badge {
  display: inline-flex;
  min-height: 1.125rem;
  align-items: center;
  margin-left: 0.125rem;
  padding: 0.0625rem 0.375rem;
  color: #000;
  background: #ffff78;
  border: 0.0625rem solid #000;
  border-radius: 6.25rem;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 0.75rem;
  letter-spacing: 0.03rem;
}

@media (max-width: 1100px) {
  :root { --plutonium-chrome-gutter: 1rem; }
  .header-outer { padding: 0 1rem; }
  .header { height: auto; min-height: 4rem; padding: 0.75rem 0.875rem 0.75rem 1.375rem; gap: 0.5rem; border-radius: 0 0 1.75rem 1.75rem; }
  .header-logo { min-width: 0; font-size: 1.375rem; }
  .nav-toggle { display: inline-flex; }
  .nav-mega { display: none !important; }
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    position: absolute;
    top: calc(100% + 0.625rem);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.625rem;
    background: #000;
    border: 0.125rem solid #000;
    border-radius: 1.25rem;
    box-shadow: 0.25rem 0.25rem 0 #000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: max-height .22s ease, opacity .18s ease, visibility 0s linear .22s;
  }
  .nav-menu.open { max-height: min(40rem, calc(100vh - 6rem)); overflow-y: auto; opacity: 1; pointer-events: auto; visibility: visible; transition: max-height .22s ease, opacity .18s ease; }
  .nav-menu .nav-link { width: 100%; height: auto; justify-content: flex-start; padding: 0.75rem 0.875rem; border-radius: 0.875rem; text-align: left; }
  .nav-menu .nav-sub:not([hidden]) { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.25rem 0.875rem 0.75rem; }
  .nav-menu .nav-sub .cream-pill { height: auto; min-height: 2.25rem; white-space: normal; }
  .btn-sneak-peak { height: 2.5rem; padding: 0.375rem 1.125rem 0.375rem 1rem; font-size: 0.8125rem; letter-spacing: 0.0625rem; gap: 0.5rem; }
  .btn-sneak-peak-logo, .btn-sneak-peak .pluto-logo-wrap { width: 5.125rem; height: 1.5625rem; }
}
@media (max-width: 600px) {
  .header { padding: 0.625rem 0.625rem 0.625rem 1.125rem; }
  .header-logo { font-size: 1.1875rem; }
  .header-nav { gap: 0.25rem; }
  .btn-sneak-peak { padding: 0.375rem 0.75rem; }
  .btn-sneak-peak > span:first-child { display: none; }
  .btn-sneak-peak-logo, .btn-sneak-peak .pluto-logo-wrap { width: 4.75rem; height: 1.4375rem; }
}
@media (max-width: 360px) {
  :root { --plutonium-chrome-gutter: 0.625rem; }
  .header-outer { padding: 0 0.625rem; }
  .header-logo { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-mega, .nav-mega-track, .nav-menu, .nav-link, .cream-pill { transition: none !important; }
}

.sr-only {
  position: absolute !important;
  width: 0.0625rem; height: 0.0625rem; padding: 0; margin: -0.0625rem;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Sitewide "Skip to content" (same look as /skill/ .skill-skip-link): hidden
   above the viewport until it takes keyboard focus. header-nav.js moves focus
   to the target <main>, which gets tabindex=-1 and no focus ring of its own. */
.skip-link {
  position: fixed;
  top: 0.625rem;
  left: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.625rem 1.125rem;
  border: 0.125rem solid #000;
  border-radius: 6.25rem;
  background: #fff;
  color: #000;
  font: 700 1rem/1.2 'Poppins', sans-serif;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); outline: 0.125rem solid #000; outline-offset: 0.125rem; }
main[tabindex="-1"]:focus { outline: none; }
