/* The site header.
 *
 * One header, on every page. It used to be pasted per page and edited in
 * place, so nineteen pages carried nineteen different navs: the legal and
 * support pages offered no route to Pricing at all, the comparison pages
 * disagreed with each other about whether the fourth link was Privacy or
 * Security, and only three pages had the Products menu that both products
 * are sold through.
 *
 * The markup lives in scripts/site-header.html and is stamped into every page
 * by scripts/apply-header.py; the styling lives here so the look can be
 * changed in one place. Pages are static and there is no build step, so the
 * markup really is duplicated -- scripts/check-header.py is what keeps the
 * copies honest.
 *
 * Deliberately no JavaScript. The Products menu opens on :hover for a mouse
 * and on :focus-within for a keyboard, so tabbing to it works on a site that
 * ships none.
 */

.msnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #E3E9E6;
}
.msnav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.msnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0A1410;
  flex: none;
}
.msnav-brand img { height: 28px; width: auto; display: block; }
.msnav-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
}
.msnav-wordmark span { color: #16C47A; }

.msnav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  color: #5C6B66;
  margin-left: 6px;
}
.msnav-link { color: #5C6B66; }
.msnav-link:hover { color: #0A1410; }
/* The page you are on, so the header says where you are rather than only
   where you could go. */
.msnav-link[aria-current="page"] { color: #0A1410; font-weight: 600; }

.msnav-spacer { flex: 1; }
.msnav-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.msnav-login { font-size: 14.5px; color: #16211D; font-weight: 500; }
.msnav-login:hover { color: #0A1410; }
.msnav-cta {
  font-size: 14.5px;
  font-weight: 600;
  color: #06110D;
  background: #16C47A;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
}
.msnav-cta:hover { background: #3BD693; }

/* Products menu */
.navprod { position: relative; display: flex; align-items: center; }
.navprod-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5C6B66;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
}
.navprod:hover .navprod-trigger,
.navprod:focus-within .navprod-trigger { color: #0A1410; }
.navprod-caret { transition: transform 160ms ease; }
.navprod:hover .navprod-caret,
.navprod:focus-within .navprod-caret { transform: rotate(180deg); }
.navprod-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}
.navprod:hover .navprod-menu,
.navprod:focus-within .navprod-menu { opacity: 1; visibility: visible; transform: none; }
.navprod-card {
  width: 380px;
  background: #FFFFFF;
  border: 1px solid #E3E9E6;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(10, 20, 16, .12);
  padding: 8px;
}
.navprod-item { display: flex; gap: 13px; padding: 13px 14px; border-radius: 10px; align-items: flex-start; }
.navprod-item:hover { background: #F3F8F5; }
.navprod-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EAF7F0;
  border: 1px solid #D4EDE0;
}
.navprod-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0A1410;
  line-height: 1.2;
}
.navprod-desc { display: block; font-size: 12.8px; line-height: 1.5; color: #5C6B66; margin-top: 4px; }

/* Narrow screens.
 *
 * The links come out rather than wrap or scroll: what somebody needs from a
 * header on a phone is the way home and the way to buy, and six section links
 * squeezed onto one line serve neither. Everything dropped here is still in
 * the footer of every page. */
@media (max-width: 900px) {
  .msnav-links { display: none; }
  .msnav-inner { gap: 16px; padding: 0 18px; }
}
@media (max-width: 420px) {
  .msnav-login { display: none; }
  .msnav-cta { padding: 9px 14px; font-size: 14px; }
}
