/* ─────────────────────────────────────────────────────────────────────────
   Shared page header — Figma 2333:1467 (Header) / 2333:1390 (Navigation).

   This is the SAME Navigation component the homepage hero uses, in its
   light-background variant: no glass surface, navy link text. Chip
   geometry (6px group padding, 14px group radius, 40px chips at 8px
   radius, 13px Inter Semi Bold) is identical and must stay in sync with
   the .section-hero__nav-* rules in sections/homepage/hero.css.

   The nav is chrome: sizes are flat rem, NOT min(rem, vw). The Figma
   component holds one size across the whole desktop range; scaling it
   with the viewport would make it drift away from the hero nav on the
   homepage, which sits at the same flat sizes.

   The desktop header is 92px tall (py 20 + a 50px logo) with 150px side
   padding on the 1440 canvas. Below lg the group collapses into the
   hamburger drawer.
   ───────────────────────────────────────────────────────────────────────── */

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 87.5rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  padding-block: 1.25rem;
}

.page-header__logo {
  display: block;
  flex-shrink: 0;
}

.page-header__logo img {
  display: block;
  width: auto;
  height: 2.25rem;
  object-fit: contain;
}

.page-header__nav {
  display: flex;
  align-items: center;
}

/* Padding 6 / radius 14 come straight from the component. There is no
   background here (unlike the hero's glass variant) — the chips sit
   directly on the white page. */
.page-header__nav-group {
  display: none;
  align-items: center;
  flex-shrink: 0;
  padding: 0.375rem;
  border-radius: 0.875rem;
}

.page-header__nav-link {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding-inline: 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-navy, #001f3e);
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: -0.019em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.page-header__nav-link:hover {
  opacity: 0.7;
}

/* Royal (#183a73), not navy — the component uses --brand/color/royal. */
.page-header__nav-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding-inline: 1.25rem;
  border-radius: 0.5rem;
  background: var(--color-yellow, #dbe64c);
  color: #183a73;
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: -0.019em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.page-header__nav-signup:hover {
  opacity: 0.88;
}

.page-header__nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-navy, #001f3e);
  cursor: pointer;
  padding: 0.5rem;
}

/* The drawer OVERLAYS the page rather than sitting in normal flow. In flow
   it pushed every section down by its own height the moment it opened,
   which read as the page jumping. Needs the positioning context below and
   an opaque background, since it now sits over live content. */
.page-header {
  /* Anchors the header across cross-document View Transitions so the chrome
     stays put while the body cross-fades, instead of blinking out and in. The
     name must be unique per document: this partial renders once per page, and
     the homepage and About use their own header partials, so no collision. */
  view-transition-name: page-header;
  position: relative;
  z-index: 50;
}

.page-header__mobile-nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white, #fff);
  border-top: 1px solid rgb(0 31 62 / 10%);
  box-shadow: 0 0.5rem 1rem rgb(0 20 40 / 8%);
}

.page-header__mobile-link {
  color: var(--color-navy, #001f3e);
  font-family: var(--font-primary, "Inter", sans-serif);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.019em;
  text-decoration: none;
}

.page-header__mobile-link--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 2.75rem;
  padding-inline: 1.5rem;
  border-radius: 0.5rem;
  background: var(--color-yellow, #dbe64c);
  color: #183a73;
}

.page-header__nav-link:focus-visible,
.page-header__nav-signup:focus-visible,
.page-header__nav-toggle:focus-visible,
.page-header__mobile-link:focus-visible {
  outline: 3px solid var(--color-yellow, #dbe64c);
  outline-offset: 3px;
  border-radius: 0.125rem;
}

/* ── Desktop ──────────────────────────────────────────────────────────── */

@media (width >= 64rem) {
  .page-header__inner {
    padding-inline: min(9.375rem, 10.4167vw);
  }

  .page-header__logo img {
    height: 3.125rem;
  }

  .page-header__nav-group {
    display: inline-flex;
  }

  .page-header__nav-toggle,
  .page-header__mobile-nav {
    display: none;
  }
}

/* ── Overlay variant (gradient heroes) ───────────────────────────────────
   Opt-in via `(dict "overlay" true)`. The site has more than one nav
   treatment: pages with a gradient hero (Features Overview, and the
   homepage via its own .section-hero__nav-* rules) put a glass pill ON the
   gradient, while the white-page layouts keep the solid bar.

   Same glass component as the homepage nav — the ONLY difference is the
   corner radius: homepage uses radius 14 with radius-8 chips, this frame
   (Figma 2001:2911) is a full pill:
     nav pill  h 60, radius 50, 1px solid #fff, backdrop-blur 50,
               linear-gradient(165.18deg, #fff/0.32 0%, #fff/0.08 100%),
               shadow 0 4px 4px rgb(0 0 0 / 25%)
     links     white, Inter Semi Bold 13, -0.019em
     Sign Up   h 45, radius 50, #dbe64c bg, #001932 text
     logo      white lockup
   "Log in" is kept here even though this Figma frame predates it — the chip
   exists on the newer frames and must not vanish on one page.

   The header is taken out of flow so the hero starts at the top of the page;
   the hero's own top padding reserves the room. */
.page-header--overlay {
  position: absolute;
  inset-inline: 0;
  top: 0;
  background: transparent;
  z-index: 50;
}

.page-header--overlay .page-header__nav-group {
  /* Geometry matches the homepage nav (.section-hero__nav-pill): padding 6,
     radius 14. Only the GLASS is specific to the overlay — it sits on a
     gradient hero, so it keeps the white hairline, blur and shadow.

     This used to be a full pill (h 60, radius 50) taken from Figma frame
     2001:2911, which left Features as the only page with a rounded nav while
     every other page was boxy. The Figma frames disagree with each other;
     the homepage treatment is the one the site standardises on. */
  padding: 0.375rem;
  border: 1px solid #fff;
  border-radius: 0.875rem;
  background-image: linear-gradient(
    165.18deg,
    rgb(255 255 255 / 32%) 0%,
    rgb(255 255 255 / 8%) 100%
  );
  box-shadow: 0 0.25rem 0.25rem rgb(0 0 0 / 25%);
  backdrop-filter: blur(3.125rem);
}

.page-header--overlay .page-header__nav-link {
  color: #fff;
}

.page-header--overlay .page-header__nav-signup {
  /* h 40 / radius 8, same chip as every other page. */
  height: 2.5rem;
  border-radius: 0.5rem;
  color: #001932;
}

.page-header--overlay .page-header__nav-toggle {
  color: #fff;
}
