/* Hallmark · component: landing topbar actions · genre: modern-minimal
 * states: default · hover · focus-visible · active
 * The pair of actions a stranger looks for. They live in the right corner, they
 * read as one control group, and the paid action is the only filled thing in the
 * bar. Tokens only.
 */

/* The anchors take the slack so the actions are pinned right on every width. */
.topbar:has(.mfo-anchors) .mfo-anchors { margin-right: auto; }

.mfo-nav-signin,
.mfo-nav-cta {
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding-inline: .95rem;
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: 650;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out),
              background-color var(--dur-micro) var(--ease-out),
              border-color var(--dur-micro) var(--ease-out),
              box-shadow var(--dur-micro) var(--ease-out);
}

/* Sign in is quiet: a returning customer knows where it is. */
.mfo-nav-signin {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}
.mfo-nav-signin:hover {
  border-color: var(--line-strong);
  background: var(--bg-hover);
  color: var(--ink);
}
.mfo-nav-signin:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mfo-nav-signin:active { transform: translateY(1px); }

/* Create account is the one filled control in the bar. */
.mfo-nav-cta {
  margin-left: .3rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.mfo-nav-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 34%, transparent);
}
.mfo-nav-cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mfo-nav-cta:active { transform: translateY(1px); box-shadow: none; }

/* Below the anchors' breakpoint the row is just wordmark + the two actions, so
   they keep full labels rather than shrinking into ambiguity. */
@media (max-width: 420px) {
  .mfo-nav-signin { padding-inline: .6rem; }
  .mfo-nav-cta { padding-inline: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mfo-nav-signin,
  .mfo-nav-cta { transition-duration: 0ms; }
  .mfo-nav-signin:active,
  .mfo-nav-cta:active { transform: none; }
}
