/* 01 — Header (prefix hd-) */

.hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 40px;
  background: transparent;
  color: var(--paper);
  transition: background-color 250ms var(--ease-out),
    color 250ms var(--ease-out),
    box-shadow 250ms var(--ease-out);
}

/* ---- brand ---- */

.hd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  border-radius: var(--r-pill);
}

.hd-brand:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.hd-lockup {
  display: block;
  /* hundred lockup (746:173) — 26px tall ≈ 112px wide */
  height: 26px;
  width: auto;
  flex: 0 0 auto;
  transition: color 250ms var(--ease-out);
}

/* ---- actions ---- */

.hd-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* over-hero (default) state: white text, translucent outline */
.hd .hd-btn-benefits {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.4);
}

.hd .hd-btn-benefits:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

/* base focus ring is ink — invisible over the dark hero, so lift it */
.hd:not(.hd-scrolled) .btn:focus-visible {
  outline-color: var(--paper);
}

/* ---- scrolled state ---- */

.hd-scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(24, 24, 20, 0.06);
}

.hd-scrolled .hd-btn-benefits {
  color: var(--ink);
  border-color: var(--line);
}

.hd-scrolled .hd-btn-benefits:hover {
  border-color: var(--muted);
}

/* ---- responsive ---- */

@media (max-width: 599px) {
  .hd {
    padding: 12px 16px;
  }

  .hd-actions {
    gap: 8px;
  }

  .hd .btn {
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd,
  .hd-lockup {
    transition: none;
  }
}
